Introduction
OctaLabs gives you one API for text, embedding, image and video models. It is compatible with the OpenAI and Anthropic formats, so the official openai and anthropic SDKs work by changing only the base URL and API key.
How it works
- One API key for every model. You call a model by its ID; routing to a provider is handled on our side.
- Prepaid USDT balance. No subscription. Every request is paid from your balance.
- Pay as you go. Text models are billed per input and output token, embeddings per token, images per image and video per second, at the listed prices.
- Official usage. Charges come from the usage the model provider reports. The one case that is settled differently, a stream we have to cut ourselves, is described in Billing & balance.
Available endpoints
Customer API keys can only call endpoints whose usage can be measured exactly. Anything else is rejected before it runs, at no cost.
- POST/v1/chat/completionsAvailable
OpenAI Chat Completions format with function calling, streaming and non-streaming, for every text model.
- POST/v1/messagesAvailable
Anthropic Messages format with tools, images and documents, streaming and non-streaming, for models that support the Anthropic format.
- POST/v1/messages/count_tokensAvailable
Counts the input tokens of a Messages request. Free.
- POST/v1/responsesAvailable
OpenAI Responses format, stateless, streaming and non-streaming, for models in the OpenAI format.
- POST/v1/embeddingsAvailable
Billed per embedding token.
- POST/v1/images/generationsAvailable
Also /v1/images/edits and /v1/images/variations. Billed per image.
- POST/v1/videos/generationsAvailable
Billed per second of video.
- GETAvailable
/v1/models
Lists the models your key can use, in the OpenAI format. Prices and API formats per model are on the Models & Pricing page.
Next steps
- Quickstart: from sign-up to your first request.
- Authentication and Base URL: how to connect an SDK.
- Billing & balance: how funds are held and charged.
- Limits & fields: parameters supported for customer API keys.
- Account API: read prices, balance and ledger, and create USDT top-ups from your own scripts.