API compatibility
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. See Model names 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.
The earlier /api/llm-proxy/openai and /api/llm-proxy/anthropic routes still work. Other per-provider routes are removed and return HTTP 410. See Client routes.
Limitations
- Access is policy-bound. You can only call models an administrator has granted you through a Model Access Policy, and
/v1/modelsreturns 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 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_tokensormax_output_tokensunder 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.
- Audit logs can be exported. Administrators can create one-time or scheduled exports for LLM gateway audit logs. See Audit Log Export.
Related topics
- Configure providers and models — add providers and their keys
- Model Access Policies — grant users access to specific models
- Guardrails — block, redact or log content in model traffic
- Obot CLI Setup — install and configure the
obotCLI - Audit usage and costs — monitor token usage
- Audit Log Export — export LLM gateway audit logs