> ## 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.

# Move from another gateway

> Move a Chat Completions client from another OpenAI-compatible gateway and check the differences.

If you call another OpenAI-compatible gateway with Chat Completions, change the
base URL, API key and model name.
Keep the `messages` shape and `choices[0].message.content` response access.
Save your provider credentials in Atlaso before sending a call.

| Setting | Atlaso value |
| - | - |
| Base URL | `https://api.atlaso.ai/v1` |
| Authentication | Your Atlaso key in `Authorization: Bearer` |
| Model | An exact ID from `GET /v1/models` |
| Route | `POST /v1/chat/completions` |

For a first parity check, set the key's memory to Off and compare the answers
with your old gateway. The sample already sends `x-atlaso-user`, so the same
code keeps working once memory is on for a key set to **Each user of my app**. A
**Me** key with memory on refuses `x-atlaso-user` (403 `memory_scope_owner`). Keep the same `x-atlaso-user` on every
call; omitting it skips per-user memory, or returns `user_id_required` when the
key requires memory.

```python theme={null}
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.atlaso.ai/v1",
    api_key=os.environ["ATLASO_KEY"],
    max_retries=0,
)
reply = client.chat.completions.create(
    model="openai/gpt-4o",
    messages=[{"role": "user", "content": "Say hello."}],
    extra_headers={"x-atlaso-user": "demo-user-42"},
)
print(reply.choices[0].message.content)
```

## Check model names

Use Atlaso catalog IDs such as `openai/gpt-4o` and
`anthropic/claude-opus-5.5`. Do not assume every alias or suffix carries over.
[Models](https://docs.atlaso.ai/gateway/models.md) describes exact matching and tool restrictions.

## Check provider routing options

For models with several hosts, Atlaso accepts `provider.order`, `provider.only`,
`provider.ignore` and `provider.allow_fallbacks`. Lists contain Atlaso host slugs,
not display names. Other routing fields get a 400 naming the unsupported field.
An empty `only` list means no filter. A host-specific catalog row pins the host.

Atlaso chooses from live, configured hosts with your enabled, working keys.
`order` takes precedence over catalog host order. After an eligible failure,
it can switch to the next host before an answer starts. `allow_fallbacks: false`
stops switching but still allows one retry on the selected host. See
[Errors](https://docs.atlaso.ai/gateway/errors.md) for eligible failures, wait times and the three-attempt
limit. `x-atlaso-provider` gives the API hostname of the host that answered (for
example `api.together.ai`), not its slug, so do not copy it into `provider.order`.
Each attempt has its own record and cost.

## Other differences to check

* **Billing:** Model calls use your saved provider keys, with no Atlaso markup,
  and never use Atlaso credit. Saving, keeping and using memories is free.
  [Credits pay only for Atlaso learning](https://docs.atlaso.ai/account/credits-and-learning.md), the AI
  clean-up of saved messages from Gateway calls and the Plugin.
* **Memory:** choose Off for an initial parity check. A new key for your own
  memory starts on **Use and learn**: it saves the messages sent through it,
  and Atlaso's AI cleans them using Atlaso credit. For a shared app, set
  **Memory for** to **Each user of my app** and follow the
  [memory guide](https://docs.atlaso.ai/gateway/memory.md).
* **Discovery:** `GET /v1/models` lists catalog prices, abilities and whether
  your saved keys can use each model. See [Models](https://docs.atlaso.ai/gateway/models.md).
* **Errors and retries:** multi-host routing can retry or switch before an answer
  starts. The example disables client retries, which are separate from Atlaso's
  routing attempts. Check
  [Errors](https://docs.atlaso.ai/gateway/errors.md), including errors inside an already-started stream.
* **Responses:** the Gateway also accepts `responses.create`. See
  [Responses API](https://docs.atlaso.ai/gateway/responses-api.md) for provider-specific limits.
* **Provider-native APIs:** use Chat Completions or Responses. Atlaso translates
  supported fields when the provider uses a different native format.


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