# API overview

> Gateway base addresses, the list of endpoints and which request format fits a model.

## Base URL

OpenAI-compatible tools and SDKs (base URL already includes `/v1`):
https://llmbox.cc/v1

## Endpoints

| Endpoint | Description |
| --- | --- |
| `POST /v1/chat/completions` | [Chat Completions](https://llmbox.cc/en/docs/chat-completions) — base OpenAI format, streaming supported |
| `POST /v1/responses` | [Responses](https://llmbox.cc/en/docs/responses) — Codex format, streaming supported |
| `POST /v1/embeddings` | [Embeddings](https://llmbox.cc/en/docs/embeddings) — text vectors, billed per input token |
| `POST /v1/images/generations` | [Image generation](https://llmbox.cc/en/docs/images), billed per image |
| `POST /v1/videos` | [Create a video job](https://llmbox.cc/en/docs/videos): 202 + id for polling; billed per second on completion |
| `GET /v1/videos/{id}` | Video job status |
| `GET /v1/videos/{id}/content` | Download the finished video — after GET /v1/videos/{id} reports status completed |
| `POST /v1/text-to-speech/{voice_id}` | [Text to speech](https://llmbox.cc/en/docs/audio) (and `/stream`) in the ElevenLabs format, billed per character |
| `POST /v1/speech-to-text` | [Speech to text](https://llmbox.cc/en/docs/audio#speech-to-text), billed per second of audio |
| `POST /v1/speech-to-speech/{voice_id}` | [Voice changer](https://llmbox.cc/en/docs/audio#voice-changer) (and `/stream`), billed per second of audio |
| `POST /v1/sound-generation` | [Sound effects](https://llmbox.cc/en/docs/audio#sound-effects), billed per second of audio |
| `POST /v1/music` | [Music](https://llmbox.cc/en/docs/audio#music) (and `/v1/music/stream`), billed per second of audio |
| `POST /v1/audio/speech` | [Text to speech in the OpenAI format](https://llmbox.cc/en/docs/audio#openai-compatible-paths), billed per character |
| `POST /v1/audio/transcriptions` | [Transcription in the OpenAI format](https://llmbox.cc/en/docs/audio#openai-compatible-paths), billed per second of audio |
| `GET /v1/voices` | [Voices](https://llmbox.cc/en/docs/audio#voices); likewise `GET /v2/voices`, `GET /v1/voices/{voice_id}`, `GET /v1/shared-voices`, free |
| `GET /v1/models` | [Model catalog](https://llmbox.cc/en/docs/models) (key optional; with a key it also lists models opened to your account) |
| `GET /v1/models/{id}` | [A single model](https://llmbox.cc/en/docs/models) by ID (an ID with a slash — as is or with `%2F`); unavailable — `404 model_not_found` |
| `GET /v1/balance` | [Current balance](https://llmbox.cc/en/docs/pricing#check-your-balance) (by API key) |

The ElevenLabs-format audio endpoints also take the key in the `xi-api-key`
header — that is how the ElevenLabs SDK sends it. The base URL for that SDK has
no `/v1` (see [Audio](https://llmbox.cc/en/docs/audio)).

Every request is authorized with a key — see [Keys and authentication](https://llmbox.cc/en/docs/authentication).
Every response carries an `x-request-id` header — the same id as `request_id`
in an error body; include it when contacting support.

## Request format and model

The gateway does not translate between request formats: a request to
`/v1/chat/completions` or `/v1/responses` reaches the model's
provider in the same format. So a model answers on an endpoint only if its
provider supports that format. If a model returns an error on one text
endpoint, try another — `/v1/chat/completions` is the most widely supported.

The model type must match the endpoint: an image model on the chat endpoint (and
vice versa) gets `404 model_not_found`, just like a model that does not exist.

## What the gateway changes in a request

Only supported parameters reach the model, and client identifiers are replaced
with the gateway's — see [Request parameters](https://llmbox.cc/en/docs/params). Your request
headers (for example, `OpenAI-Beta`) are not passed to the
provider. Send the full conversation history with every request: the gateway
keeps no provider-side state.
