cheapmodel documentation center: unified access for text, image, audio, and video model APIs.
API Reference

cheapmodel API Reference

cheapmodel provides one account, one balance, and multiple API-compatible entry points for production model access. Use OpenAI, Anthropic, Google, and video task formats from the same console token.

Open Console View Models

Quick Start

Create a token in the console, choose a model from the model marketplace, and set the base URL for the protocol you want to use.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_CHEAPMODEL_KEY",
    base_url="https://cheapmodel.ai/v1",
)

response = client.chat.completions.create(
    model="gpt-5.5",
    messages=[{"role": "user", "content": "Hello from cheapmodel"}],
)

print(response.choices[0].message.content)
Authentication Send your cheapmodel token as Authorization: Bearer YOUR_CHEAPMODEL_KEY. The same token is used for all supported protocol formats.

Protocol Endpoints

ProtocolBase URLTypical use
OpenAI compatiblehttps://cheapmodel.ai/v1Chat, images, embeddings, model list, and most OpenAI SDK calls.
Anthropic compatiblehttps://cheapmodel.ai/v1/messagesClaude-style Messages API requests.
Google compatiblehttps://cheapmodel.ai/v1betaGemini-style generateContent requests.
Video APIhttps://cheapmodel.ai/video/v1
https://cheapmodel.ai/v1/video
Seedance 2.0 and Happy Horse asynchronous video tasks.

AI Model APIs

Video APIs

Video models use asynchronous task APIs. cheapmodel normalizes token authentication, task IDs, status queries, and account billing across supported video providers.

Seedance 2.0

Text, image, video, and audio reference inputs with token-based billing after task completion.

Happy Horse

Text-to-video, image-to-video, reference-to-video, and video editing with duration and resolution based billing.

curl https://cheapmodel.ai/video/v1/video/generations \
  -H "Authorization: Bearer YOUR_CHEAPMODEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedance-2-0-fast-260128",
    "prompt": "Two cats run and playfully chase each other",
    "size": "9:16",
    "duration": -1,
    "generate_audio": true,
    "watermark": false
  }'

Billing

Text and image models follow the model marketplace price table. Native video tasks are charged only after a provider task completes successfully, based on the provider usage returned by the task query.

Model familyBilling unitWhen charged
OpenAI-compatible textInput, output, and cache-hit tokens where supportedAt request completion
ImagesPer image or provider-reported usageAt request completion
Seedance 2.0USD usage-token pricing, rounded to two decimalsWhen task status is success
Happy HorseUSD per-second pricing by output resolution, rounded to two decimalsWhen task status is success