> ## Documentation Index
> Fetch the complete documentation index at: https://docs.atlaso.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Atlaso Gateway

> One API, your provider keys, and memory you control.

Atlaso adds memory to OpenAI-format model calls. Save your provider keys, create
one Atlaso key, and send Chat Completions requests through Atlaso. Your provider
bills you directly, with no Atlaso markup. These calls never use Atlaso credit.
Saving, keeping and using memories is free forever. Credits pay only for
Atlaso learning: the AI clean-up that turns saved messages into clean memories,
for Gateway calls and Plugin messages alike.

At \$0.00 in Atlaso credit, the AI clean-up of saved messages waits, for Gateway
calls and Plugin messages alike. Saving, recall, Ambient Memory, Ask and own-key
model calls keep working. See [Credits and learning](https://docs.atlaso.ai/account/credits-and-learning.md).

## What happens on a call

1. Atlaso checks your key and its limits.
2. When memory is on, it looks up relevant facts and adds a memory note.
3. It calls the selected model with your saved provider key and returns the answer.
4. It records usage, timing, model, provider and memory IDs, without prompt or answer text.
5. On a key set to **Use and learn** that uses your own memory, it saves the newest
   user message as a memory after the answer is sent. Atlaso's AI then cleans it.

You choose **Use only**, **Off**, or **Use and learn**. New keys that use your own
memory start on **Use and learn**: like the Atlaso Plugin, they save the messages
a person types, after the Plugin's worth-keeping check, with recognised secrets
blacked out. They never save the model's reply. Saving is free. Atlaso's AI
then cleans each saved message, as it does for the Plugin, and the clean-up
uses Atlaso credit. Choose **Use only** to recall without saving. See
[Learning from calls](https://docs.atlaso.ai/gateway/memory.md#learning-from-calls).

> [!WARNING]
>
> A new key uses your own memory and learns from the messages sent through it.
> For a shared app, set the key's **Memory for** to **Each user of my app** and
> send each user's ID. Do not use owner memory for a
> shared app. See [one memory for each app user](https://docs.atlaso.ai/gateway/memory.md#one-memory-for-each-app-user).

## Nothing hidden

Replies include `x-atlaso-memory`, `x-atlaso-paid-by: own_key`, and `x-request-id`.
Chat Completions and Responses replies also name the call, the provider and model that answered, and the
call's cost and cache use (see [per-call cost and cache](https://docs.atlaso.ai/gateway/caching-and-savings.md#per-call-cost-and-cache)).
Use the dashboard's Activity view for call details, including provider, model,
usage and cost when available. These are catalog-based costs; your provider's
invoice can reflect your own pricing agreement. Missing usage is not a zero bill.

For models with several hosts, Atlaso can retry or switch to the next eligible
host before a successful answer starts. It uses your saved keys and records and
prices each attempt separately. `x-atlaso-provider` names the host that answered.
See [routing and retry limits](https://docs.atlaso.ai/gateway/errors.md#limits-and-transient-provider-failures) for the
conditions and controls.
Where Atlaso knows a provider rejects a setting, it refuses the call before
sending it, with a 400 `unsupported_parameter` error that names the setting.
Otherwise the provider's own error is passed back. A setting the provider accepts but
ignores is sent as given, and the reply names it in `x-atlaso-ignored-params`
(for example `temperature,top_p`).
[Errors](https://docs.atlaso.ai/gateway/errors.md) explain what to change and when retrying can cost money.

> [card] [Two-minute first call](https://docs.atlaso.ai/gateway/quickstart.md)
>
> Save a test fact, then recall it in a separate call.

> [card] [Move from another gateway](https://docs.atlaso.ai/gateway/migrate-from-another-gateway.md)
>
> Change the connection settings and check compatibility.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.