Skip to main content

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/completions

    OpenAI Chat Completions format with function calling, streaming and non-streaming, for every text model.

    Available
  • POST
    /v1/messages

    Anthropic Messages format with tools, images and documents, streaming and non-streaming, for models that support the Anthropic format.

    Available
  • POST
    /v1/messages/count_tokens

    Counts the input tokens of a Messages request. Free.

    Available
  • POST
    /v1/responses

    OpenAI Responses format, stateless, streaming and non-streaming, for models in the OpenAI format.

    Available
  • POST
    /v1/embeddings

    Billed per embedding token.

    Available
  • POST
    /v1/images/generations

    Also /v1/images/edits and /v1/images/variations. Billed per image.

    Available
  • POST
    /v1/videos/generations

    Billed per second of video.

    Available
  • GET

    /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.

    Available

Next steps

Start with any balance,
however small.

Create a free accountSign in AI API · pay as you go