Endpoints
Every path the gateway serves, under https://api.exoticrouter.com. Each lab’s API is spoken in its own format, so a request written for OpenAI, Anthropic or Google is sent as it is.
| Method | Path | Format | Models |
|---|---|---|---|
| POST | /v1/chat/completions |
Chat Completions | Every text model |
| POST | /v1/messages |
Anthropic Messages | Every text model (Claude natively) |
| POST | /v1/responses |
OpenAI Responses | Every text model (OpenAI natively) |
| POST | /v1beta/models/{model}:generateContent |
Gemini | The Gemini models |
| POST | /v1beta/models/{model}:streamGenerateContent |
Gemini, streamed | The Gemini models |
Images, video, voice and vectors
Section titled “Images, video, voice and vectors”| Method | Path | What it does |
|---|---|---|
| POST | /v1/images/generations |
Make an image |
| POST | /v1/images/edits |
Change an image |
| POST | /v1/videos |
Start a video |
| GET | /v1/videos/{id} |
A video’s status |
| GET | /v1/videos/{id}/content |
Download a finished video |
| POST | /v1/audio/speech |
Text to speech |
| POST | /v1/audio/transcriptions |
Speech to text |
| POST | /v1/embeddings |
Text to vectors |
| GET | /v1/files/{token} |
A generated image, by the link its answer carried |
Models and account
Section titled “Models and account”| Method | Path | What it does | Key |
|---|---|---|---|
| GET | /v1/models |
List the live models | Not needed |
| GET | /v1/models/{id} |
One model | Not needed |
| GET | /v1/balance |
The account’s balance | Needed |
Every other path needs a key, except a generated file’s link: the link itself is the permission, so anyone who has it can fetch the file.
What an answer carries
Section titled “What an answer carries”| Header | On | What it says |
|---|---|---|
x-request-id |
Every answer to a POST | An id for this one request, req_… |
x-ratelimit-limit-requests |
Answers to a valid key | The key’s requests per minute |
x-ratelimit-remaining-requests |
Answers to a valid key | How many requests the key can make right now |
retry-after |
429 and 503 | Seconds to wait before trying again |
access-control-allow-origin: * |
Everything | Any origin may read the answer |
Headers a lab’s own API would add, such as its rate-limit or organisation headers, are not passed back.
Limits
Section titled “Limits”- A request body may be up to 32 MiB. A larger one answers 413 in plain text.
- A prompt has to fit the model’s
context_length. One that does not answers 400context_length_exceededbefore anything is sent to the model. - There is no limit on requests in flight at once, only on requests per minute.
- Stream anything that takes long. A stream is kept open by the gateway while the model works; a request that waits in silence for minutes can be cut off on the way.
Not served
Section titled “Not served”The gateway serves the calls that produce an answer. The bookkeeping calls around them are not there and answer 404:
- Message batches.
- Fetching, cancelling or deleting a stored response, and stored chat completions.
- Gemini actions other than
generateContent,streamGenerateContentandcountTokens. - Audio translations, image variations, moderations, batches, file uploads and realtime sessions.
Where next
Section titled “Where next”- Chat Completions: The format every text model answers.
- Errors: What each status means and what to do about it.