---
title: "API compatibility"
version: "v0.28.0"
canonical: "https://docs.obot.ai/llm-gateway/compatibility"
unreleased: false
---

# API compatibility

<a id="obot-doc-supported-endpoints-and-formats"></a>

## Supported endpoints and formats

The gateway serves every model at one base URL, `https://<your-obot-host>/api/llm-proxy`, in the OpenAI Chat Completions, OpenAI Responses and Anthropic Messages formats. Any format works with any model, so Claude Code can use GPT models and the OpenAI SDK can use Claude.

| Endpoint                                      | Format                  |
| --------------------------------------------- | ----------------------- |
| `/v1/chat/completions`                        | OpenAI Chat Completions |
| `/v1/responses`, `/v1/responses/input_tokens` | OpenAI Responses        |
| `/v1/messages`, `/v1/messages/count_tokens`   | Anthropic Messages      |
| `/v1/models`                                  | The models you can use  |

Model names are `provider/model`, for example `openai/gpt-4.1`, `anthropic/claude-sonnet-4-5` or `bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0`. Bare provider model IDs such as `claude-sonnet-4-5` also work, as do undated Anthropic names and the `llm` and `llm-mini` [aliases](https://docs.obot.ai/v0.28.0/llm-gateway/how-it-works.md#obot-doc-using-model-aliases). See [Model names](https://docs.obot.ai/v0.28.0/llm-gateway/how-it-works.md#obot-doc-unified-gateway) for how a name that more than one provider serves is resolved.

Errors come back in the request's API format: Anthropic's error JSON for `/v1/messages` and for Anthropic clients (which send `anthropic-version`), and OpenAI's otherwise, so SDKs report them as they would the provider's own. This includes Obot's own refusals, such as HTTP 401 for a missing or invalid key, 403 for a model you may not use, and 404 for a model that isn't available.

<a id="obot-doc-deprecated-provider-endpoints"></a>

## Deprecated provider endpoints

**v0.28.1** restores the supported legacy operations described below. See [Upgrading from v0.27](https://docs.obot.ai/v0.28.0/llm-gateway/upgrade.md#obot-doc-client-routes) for migration guidance.

Use `/api/llm-proxy/v1` for new setups. Migrate existing clients to this endpoint with provider-qualified model names. The following provider base URLs retain supported inference and model-listing operations, but are deprecated and will be removed in a future release.

| Provider base URL                                                  | Current gateway provider |
| ------------------------------------------------------------------ | ------------------------ |
| `/api/llm-proxy/openai`                                            | `openai`                 |
| `/api/llm-proxy/anthropic`                                         | `anthropic`              |
| `/api/llm-proxy/generic-responses`                                 | `generic-responses`      |
| `/api/llm-proxy/aws-bedrock`, `/api/llm-proxy/aws-bedrock-api-key` | `bedrock`                |
| `/api/llm-proxy/azure`, `/api/llm-proxy/azure-entra`               | `azure`                  |

Supported paths are `v1/chat/completions`, `v1/responses`, `v1/responses/input_tokens`, `v1/messages`, `v1/messages/count_tokens` and `v1/models`; paths without the `v1/` prefix also work. AWS routes also accept paths such as `anthropic/v1/messages` and `openai/v1/responses`, and Azure routes accept `openai/v1/models`. These URLs support only the operations listed above; they do not restore every legacy operation.

Each route uses its corresponding current gateway provider. It prefers the imported key for that legacy credential family; if that key is absent, disabled, or does not support the requested model, it uses the provider's normal key pool. Azure and Bedrock authentication variants share a gateway provider but prefer their own imported keys. A selected key must still be enabled and support the requested model.

Bare model names resolve within the selected provider, including undated Anthropic aliases. Explicit model references must also match that provider initially. Model listings are limited to accessible models from the selected provider and use the gateway's response format: OpenAI-format lists include provider-qualified IDs, while Anthropic-format lists use bare IDs.

Gateway routing rules and fallbacks still apply and may change the serving model or provider after initial selection. A rule selecting a different provider or model clears the initial key selection; an explicit key selected by that rule takes precedence, and fallback attempts use their own credentials. Model access policies, audit logging, budgets and guardrails still apply; inference requests are not redirected. Both AWS legacy routes initially select `bedrock`; they do not automatically switch to `bedrock_mantle`.

<a id="obot-doc-limitations"></a>

## Limitations

- **Access is policy-bound.** You can only call models an administrator has granted you through a [Model Access Policy](https://docs.obot.ai/v0.28.0/functionality/model-access-policies.md), and `/v1/models` returns only those models. A request for a model you don't have access to is rejected.
- **Send the exact model name.** Use the model name shown on the [LLM Gateway page](https://docs.obot.ai/v0.28.0/llm-gateway/how-it-works.md#obot-doc-the-models-page) exactly as displayed.
- **Claude Code model discovery.** Gateway model discovery is off by default and requires Claude Code v2.1.129 or later.
- **Minimum output token limit for OpenAI-format providers.** A `max_tokens`, `max_completion_tokens` or `max_output_tokens` under 16 is raised to 16 for OpenAI and OpenAI-compatible providers, the smallest limit OpenAI's Responses API accepts. Anthropic models get the limit as sent.
- **Usage is recorded.** Requests count toward Obot [usage and budgets](https://docs.obot.ai/v0.28.0/llm-gateway/audit.md).
- **Audit logs can be exported.** Administrators can create one-time or scheduled exports for LLM gateway audit logs. See [Audit Log Export](https://docs.obot.ai/v0.28.0/configuration/audit-log-export.md).

<a id="obot-doc-related-topics"></a>

## Related topics

- [Configure providers and models](https://docs.obot.ai/v0.28.0/configuration/model-providers.md) — add providers and their keys
- [Model Access Policies](https://docs.obot.ai/v0.28.0/functionality/model-access-policies.md) — grant users access to specific models
- [Guardrails](https://docs.obot.ai/v0.28.0/functionality/guardrails.md) — block, redact or log content in model traffic
- [Obot CLI Setup](https://docs.obot.ai/v0.28.0/reference/cli-api.md) — install and configure the `obot` CLI
- [Audit usage and costs](https://docs.obot.ai/v0.28.0/llm-gateway/audit.md) — monitor token usage
- [Audit Log Export](https://docs.obot.ai/v0.28.0/configuration/audit-log-export.md) — export LLM gateway audit logs
