https://gateway.langdock.com. It speaks the OpenAI Chat Completions, OpenAI Responses and Anthropic Messages formats, and any enabled model works with any of them. Your requests run under your Langdock account, count toward your spend limit, and show up in your usage.
The Model Gateway is rolling out. If Create key in your account settings does not offer Model Gateway key yet, use the classic endpoints on
api.langdock.com with your personal API key instead.Before you start
- A Model Gateway key. Create one in Settings > Account > API keys with Create key > Model Gateway key. If the page says what is missing, for example access or a spend limit, ask your workspace admin to fix that step.
- At least one model enabled for API use that you can access. Available models on the same page lists them with the model name to send.
1. List your models
id from it as model in your requests. Each entry also lists the model’s context window and the operations it supports.
2. Send a request
- curl
- OpenAI SDK (Python)
- OpenAI SDK (TypeScript)
- Anthropic SDK (Python)
- Anthropic SDK (TypeScript)
/v1. The Anthropic SDKs add /v1/messages themselves, so their base URL has no /v1. For the Responses API, call client.responses.create(...) on the same OpenAI client.
3. Check the cost
The final usage object of every response includes an estimated cost in US dollars:"stream_options": { "include_usage": true } to get the usage, and the cost, in the last chunk. Responses returns it in response.completed and Messages in message_delta. The cost is an estimate at list price. What you are billed is settled afterwards and shown in your usage. Requests on a premium tier and models without a list price have no cost field.
Regions
If a model name exists in more than one region, either use the regional endpoint or the regional model name that
GET /v1/models returns.
Authentication
Send the key asAuthorization: Bearer <key> or as x-api-key: <key>, not both. Call the gateway from a server, a script or a local tool, never from a web page, where anyone could read the key.
What works where
Next steps
Connect coding tools
Claude Code, Codex, Cursor, GitHub Copilot, OpenCode and Claude Desktop
Limits and usage
Spend limits, rate limits, cached tokens and where to see your usage
Errors
What each error means and how to fix it
Which key do I need?
Model Gateway keys, Platform API keys, personal and workspace keys