Getting started
CheaperGen API documentation
One REST API for official video and image generation models from ByteDance, Alibaba and MiniMax — priced below the official list. Submit a job, then poll it or receive a webhook. Switching models means changing one string.
Create with your AI agent
Ask Claude, ChatGPT, Cursor or Codex for a video or image and it makes it, paid from your balance. Paste this into your agent once.
Set up CheaperGen for me by following https:/
Build with your coding agent
Claude Code, Cursor or Codex writes the code that calls our API from your app, with the key in an env var and a free test.
Add CheaperGen video and image generation to this project by following https:/
Writing the code yourself? QuickstartNo code? Open the Studio
API key to first video in two minutes, with JavaScript, Python or cURL.
Bearer API keys, where to keep them and how to rotate them.
The async lifecycle: queued → running → succeeded or failed.
Get notified when a job finishes and verify the signature.
Every endpoint, parameter and response object.
All model endpoint IDs with prices and per-model API docs.
Base URL#
All endpoints live under a single versioned base URL. Requests and responses are JSON over HTTPS; amounts are in US dollars.
https://cheapergen.com/api/v1How it works#
- Submit a generation with
POST /api/v1/run/{endpoint}. The price is held from your prepaid balance and you get back a generation object withstatus: "queued"(HTTP 202). - Wait for it to finish: poll
GET /api/v1/generations/{id}every few seconds, or pass awebhook_urland we'll POST the result to you. See Generations. - Download the output from
output.video.urloroutput.images[].url. If the job fails, the hold is refunded automatically — you never pay for failed generations.
curl -X POST https://cheapergen.com/api/v1/run/bytedance/seedance-2.0-fast/text-to-video \
-H "Authorization: Bearer $CHEAPERGEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A slow dolly-in on a ceramicist shaping a vase at golden hour, dust in the light, shallow depth of field",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
}'Models#
Every model exposes one endpoint per task (for example text-to-video and image-to-video), and every endpoint takes the same request shape: the model's input fields plus an optional webhook_url. Browse the full list with prices on the Models page, or fetch it from GET /api/v1/models.
- Video: Seedance 2.0, Seedance 2.5, Seedance 2.0 Fast, Seedance 2.0 Mini, Kling 3.0, Kling 3.0 Omni, Kling 3.0 Turbo, Kling 4.0, Veo 3.1, Veo 3.1 Fast, Veo 3.1 Lite, Gemini Omni Flash, Wan 3.0, Wan 3.0 Prime, MiniMax H3, MiniMax H3 Max, MiniMax H3 Fast, Vidu Q3 Turbo, Vidu Q3 Pro, Vidu Q4, Grok Imagine Video 1.5, Grok Imagine Video 1.5 Lite, FLUX 3 Video, PixVerse V6, LTX-2.5, MAGI-2
- Image: Seedream 4.5, Seedream 5.0 Pro, Seedream 5.0 Lite, Seedream 5.0 Flash, Nano Banana Pro, Nano Banana 2.1, GPT Image 2.5, GPT Image 2.5 Flare, FLUX 3, FLUX 3 Image Klein, FLUX.2 [klein] 4B, FLUX.2 [pro], FLUX.2 [max], FLUX.2 [flex], FLUX.1 Kontext [pro], FLUX.1 Kontext [max], Grok Imagine Image 2.0, Qwen-Image 3.0 Pro, Qwen-Image 3.0, Z-Image Turbo, Krea 2 Turbo, MOSS Image
Conventions#
- Authenticate with
Authorization: Bearer cg_live_…— see Authentication. - Generation IDs start with
gen_. Timestamps are ISO 8601 in UTC. Money fields end in_usdand are decimal US dollars. - Errors always have the shape
{ "error": { "code", "message", "param" } }with a meaningful HTTP status — see Errors. - Unknown request parameters are rejected with
400 invalid_request, so typos never silently change your output. - Public endpoints (
/models,/quote) need no key and are safe to call from a browser.
For AI agents and LLMs#
A machine-readable summary of the API and every model is available at /llms.txt. Each model also has an API page with its full input schema, generated from the same catalog the API validates against.
Agents can also call CheaperGen directly: connect our hosted MCP server to Claude Code, ChatGPT, Codex, Cursor or VS Code, or install the CheaperGen agent skill. To have a coding agent add the API to your own project, paste the “coding agent” sentence above: it follows /agents/integrate.md.
Something unclear or missing? Email support@cheapergen.com — we read everything.




