chat
Send a chat completion in the OpenAI format. The gateway selects the route and the model.
| Method | Path |
|---|---|
| POST | /v1/chat/completions |
The gateway speaks the OpenAI API and the Anthropic Messages API. This page lists every surface that a client can call.
https://gateway.example.com
Send your client key in the Authorization: Bearer header. The Anthropic surface also accepts the x-api-key header.
Most surfaces use a route. The page `Connect a client` tells how to select one.
An administrator can turn off a surface. A surface that is off answers 404 with the code surface_disabled.
Send a chat completion in the OpenAI format. The gateway selects the route and the model.
| Method | Path |
|---|---|
| POST | /v1/chat/completions |
Send a message in the Anthropic Messages format. Claude Code uses this surface.
| Method | Path |
|---|---|
| POST | /v1/messages |
| POST | /v1/messages/count_tokens |
Create embeddings. Name a concrete embedding model; the gateway does not route this surface.
| Method | Path |
|---|---|
| POST | /v1/embeddings |
Check text with a moderation model. Name a concrete moderation model.
| Method | Path |
|---|---|
| POST | /v1/moderations |
List the routes your key can use, plus auto. Each route is shown as a model name.
| Method | Path |
|---|---|
| GET | /v1/models |
Check text against the configured guardrails without a model call.
| Method | Path |
|---|---|
| POST | /v1/guard |
Ask which route a prompt goes to, and why, without a model call.
| Method | Path |
|---|---|
| POST | /v1/classify |
Use the OpenAI Responses API: create, read, cancel and delete a response.
| Method | Path |
|---|---|
| POST | /v1/responses |
| GET | /v1/responses/{id} |
| DELETE | /v1/responses/{id} |
| POST | /v1/responses/{id}/cancel |
| GET | /v1/responses/{id}/input_items |
Generate, edit and vary images. Edits and variations are multipart: name a concrete model.
| Method | Path |
|---|---|
| POST | /v1/images/generations |
| POST | /v1/images/edits |
| POST | /v1/images/variations |
Make speech from text, or a transcript or translation from audio. Transcription is multipart.
| Method | Path |
|---|---|
| POST | /v1/audio/speech |
| POST | /v1/audio/transcriptions |
| POST | /v1/audio/translations |
Sort a list of documents by relevance to a query.
| Method | Path |
|---|---|
| POST | /v1/rerank |
Upload, list, read and delete files. Only the key that uploaded a file can use it.
| Method | Path |
|---|---|
| POST | /v1/files |
| GET | /v1/files |
| GET | /v1/files/{id} |
| GET | /v1/files/{id}/content |
| DELETE | /v1/files/{id} |
Submit, list, read and cancel batches. Use the same key that uploaded the input file.
| Method | Path |
|---|---|
| POST | /v1/batches |
| GET | /v1/batches |
| GET | /v1/batches/{id} |
| POST | /v1/batches/{id}/cancel |
Mount the company tools as an MCP server (revision 2026-07-28). Use your client key.
| Method | Path |
|---|---|
| any | /mcp |
| any | /mcp/{mount} |
| GET | /.well-known/oauth-protected-resource |
| GET | /.well-known/oauth-protected-resource/mcp |
| GET | /.well-known/oauth-protected-resource/mcp/{mount} |
| GET | /oauth/callback |
Call a declared REST tool in its own HTTP shape. The gateway adds the credential.
| Method | Path |
|---|---|
| any | /connect/{server} |
| any | /connect/{server}/{path} |