llmboxDocumentationSign in
API · API overview

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

EndpointDescription
POST/v1/chat/completionsChat Completions — base OpenAI format, streaming supported
POST/v1/responsesResponses — Codex format, streaming supported
POST/v1/embeddingsEmbeddings — text vectors, billed per input token
POST/v1/images/generationsImage generation, billed per image
POST/v1/videosCreate a video job: 202 + id for polling; billed per second on completion
GET/v1/videos/{id}Video job status
GET/v1/videos/{id}/contentDownload the finished video — after GET /v1/videos/{id} reports status completed
POST/v1/text-to-speech/{voice_id}Text to speech (and /stream) in the ElevenLabs format, billed per character
POST/v1/speech-to-textSpeech to text, billed per second of audio
POST/v1/speech-to-speech/{voice_id}Voice changer (and /stream), billed per second of audio
POST/v1/sound-generationSound effects, billed per second of audio
POST/v1/musicMusic (and /v1/music/stream), billed per second of audio
POST/v1/audio/speechText to speech in the OpenAI format, billed per character
POST/v1/audio/transcriptionsTranscription in the OpenAI format, billed per second of audio
GET/v1/voicesVoices; likewise GET/v2/voices, GET/v1/voices/{voice_id}, GET/v1/shared-voices, free
GET/v1/modelsModel catalog (key optional; with a key it also lists models opened to your account)
GET/v1/models/{id}A single model by ID (an ID with a slash — as is or with %2F); unavailable — 404 model_not_found
GET/v1/balanceCurrent 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).

Every request is authorized with a key — see Keys and 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. 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.