Make images, videos and sound from your code.
The Studio API runs the same models as Studio, on the same servers, at the same prices, paid from the same HP balance. Anything you can make on the Studio page, you can make here: images, videos, and voice-overs, dialogue and sound effects.
The API is for paid accounts: add HP once to make API keys.
Quick start
Base URL: https://maxcheapai.com/api/v1. Every request and answer is JSON, unless it uploads or downloads a file.
# 1. what does it cost?
curl https://maxcheapai.com/api/v1/quote \
-H "Authorization: Bearer $MCA_KEY" -H "Content-Type: application/json" \
-d '{"kind":"image","model":"nano-banana-2","prompt":"a red fox in fresh snow","aspect":"16:9","quality":"1k"}'
# 2. make it (the HP is taken now)
curl https://maxcheapai.com/api/v1/jobs \
-H "Authorization: Bearer $MCA_KEY" -H "Content-Type: application/json" \
-d '{"kind":"image","model":"nano-banana-2","prompt":"a red fox in fresh snow","aspect":"16:9","quality":"1k"}'
# 3. poll until "status" is "done" or "failed"
curl https://maxcheapai.com/api/v1/jobs/JOB_ID -H "Authorization: Bearer $MCA_KEY"
# 4. download the result
curl -L -o fox.png https://maxcheapai.com/api/v1/jobs/JOB_ID/file -H "Authorization: Bearer $MCA_KEY"
API keys
Make a key in Studio with the API button above your results (paid accounts; add HP once). A key starts with mca_ and is shown once, when you make it. We keep only a fingerprint of it, so a lost key can't be shown again: revoke it and make a new one. You can have 10 keys at a time, and revoking one stops it at once.
Send the key on every request, either way:
Authorization: Bearer mca_…
X-API-Key: mca_…
A key acts as your account: it spends your HP and sees your jobs (the same ones the Studio page shows). Keep it on your server, never in a web page or an app you hand out.
Send a User-Agent header that names your app (most HTTP clients do). Python's built-in urllib sends Python-urllib, which is refused with a 403 ("error code: 1010"): set your own, for example User-Agent: my-app/1.0.
Models and prices
GET/models
The models you can use right now, each with its servers, what each server takes, and its price in HP. This is the same list, with the same prices, the Studio page shows. It changes during the day (servers go down, prices move), so read it often instead of saving it. Optional: ?kind=image, ?kind=video, or ?kind=audio (also speech, dialogue, sfx). The audio models are in the same list; they are described below.
{
"models": [
{
"id": "seedance-2.0-pro", "name": "Seedance 2.0 Pro", "kind": "video",
"modes": ["t2v", "i2v"], "needsImage": false,
"servers": [
{
"id": "s1x9k2ab", "name": "SDBF", "featured": true,
"aspects": ["16:9", "9:16", "1:1"],
"qualities": ["480p", "720p"],
"pricing": "per_second",
"hp": { "480p": 3.2, "720p": 6.4 },
"durations": [5, 10],
"inputs": { "start": true, "end": true, "refs": 4, "maxImages": null, "videos": 0, "audios": 0 }
},
{ "id": "s0mq81zd", "name": "Server 1", "...": "..." }
]
}
],
"plan": "paid", "keepDays": 7,
"limits": { "image": 8, "video": 4, "promptMax": 5000, "uploadBytes": 10485760, "videoBytes": 52428800 }
}
| Field | Meaning |
|---|---|
servers[].id | The value to send as server. Servers are named the way Studio names them: SDBF, SB Standard, SB Ultra, then Server 1, Server 2, ... |
featured | The server "auto" prefers whenever it can make the job. |
down | The server failed recently; "auto" passes it over while another one fits. |
busyHours | The server is often overloaded during work hours: a job may take longer, or fail and give its HP back. |
pricing, hp | HP per quality: per result (per_generation) or per second of video (per_second). Any discount below is already in it. A server priced by length (per_length, the SB servers) has hpByLength: HP for one video by quality and length, e.g. { "720p": { "4": 50, "5": 62.5 } }, and hp is its dearest rate per second. |
hpFull, discount | The price before a special discount, and that discount (0.5 = −50%). |
upscaled | Video: the qualities made at 720p and upscaled (2k, 4k, and 1080p where the server has none of its own). 2K costs 2x and 4K 4x the 1080p price; an upscaled 1080p costs 1.5x the 720p price. No special discount is taken off them. SB Standard makes 480p and upscales its 720p (1.5x the 480p price), 1080p (1.5x its 720p), 2K and 4K (2x / 4x its 1080p); SB Ultra makes 720p and upscales its 1080p, 2K and 4K. |
discountByLength | [[fromSeconds, share], …]: a discount that grows with the video's length. Here hp is the full price, the share for your length comes off, and there is no discount field. /quote gives the price for your length. |
discountQualities | The qualities a discount is for, when it is only for some. |
lockedQualities | Qualities this account can't make with a server for now (free accounts make 1K images only). |
durations, refDurations, minLength, framesMaxDuration | Video lengths in seconds: the ones it makes, the only ones with reference images, the shortest per quality, and the longest with a start and end frame. |
inputs | What it takes besides the prompt: a start frame, an end frame, reference images (refs), images in all (maxImages, frames included), reference videos and sounds. A server that limits sound lengths also has audioSecondsTotal (the most seconds of sound in all) and audioSecondsMin (the shortest sound it takes). |
videoFee | Extra charge when you send reference videos: addHp, or multiplyUpTo [[upToSeconds, factor], …]. |
Check a price
POST/quote
What a job would cost, without making it or taking any HP. Send exactly what you would send to POST /jobs. It runs the same checks and the same pricing as a real job, so the price it gives is the price you pay, and a request it refuses would be refused as a job too.
Media don't have to be uploaded yet: in a quote, any string counts as one image, video or sound (only how many you send changes the price and the server).
POST /api/v1/quote
{ "kind": "video", "model": "seedance-2.0-pro", "prompt": "a paper boat on a river", "quality": "720p", "duration": 5, "refs": ["a", "b"] }
200
{
"hp": 32, "kind": "video", "model": "seedance-2.0-pro", "modelName": "Seedance 2.0 Pro",
"server": { "id": "s1x9k2ab", "name": "SDBF" },
"settings": { "aspect": "16:9", "quality": "720p", "duration": 5 },
"available": 120.5, "enough": true
}
With a special discount the answer also has hpFull and discount. available is the HP you can spend now and enough says if it covers the price. Leave server out (or send "auto") and the answer names the server the job would go to.
Uploads
POST/uploads
Start frames, end frames and reference media go in a job as addresses from this endpoint. Send the file's bytes as the body (any Content-Type; the file is recognized from its bytes).
curl https://maxcheapai.com/api/v1/uploads -H "Authorization: Bearer $MCA_KEY" --data-binary @cat.png
200 { "url": "https://maxcheapai.com/api/gen/in/Xk2…q.png" }
- Images: PNG, JPEG or WebP, up to 10 MB. Videos: MP4, MOV or WebM, up to 50 MB. Sounds: MP3, WAV, M4A or Ogg, up to 20 MB. For an MP3 or WAV the answer also has its length in
seconds. - Reuse one of your finished images without downloading it:
POST /uploads?from=JOB_IDwith no body. - Up to 60 uploads an hour. Uploads are deleted after 7 days.
Make a job
POST/jobs
| Field | Meaning |
|---|---|
kind | "image" or "video". Required. For sound, see Voice and sound. |
model | A model id from /models. Required. |
prompt | Up to 5,000 characters. Required. Point at your uploads with @image_1, @video_1, @audio_1 (counted in the order of refs, videos, audios). |
server | A server id from /models, or "auto" (the default): the featured server when it fits, else the cheapest one that can make exactly this job. |
aspect | One of the server's aspects. Default: its first. |
quality | One of the server's qualities (1k, 2k, 720p, low, …). Default: its first; Nano Banana defaults to 1K. |
duration | Video only: seconds, one of the server's durations. |
negative | Image only: what to leave out. |
start, end | Video only: first and last frame (upload addresses). An end frame needs a start frame. |
refs | Reference images (upload addresses). |
videos, audios | Video only: reference videos and sounds. A sound needs a reference image or video with it on some servers, and some limit the sounds' lengths (see inputs): a job outside them is refused with a 400 that says why. |
A server takes frames or references, not both. The HP is taken when the job is made; the answer has the job and your balance after it (also in the X-HP-Balance header).
200
{
"job": {
"id": "6f1c…", "kind": "image", "status": "queued",
"model": "nano-banana-2", "modelName": "Nano Banana 2",
"server": { "id": "s3kd02lm", "name": "Server 1" },
"prompt": "a red fox in fresh snow",
"settings": { "aspect": "16:9", "quality": "1k" },
"hp": 3.2, "refunded": false, "error": null,
"file": null, "thumb": null, "contentType": null, "size": null,
"createdAt": "2026-11-27T20:30:00.000Z", "doneAt": null, "expiresAt": null
},
"balance": 117.3
}
Status and polling
GET/jobs/{id}
One job, checked with the generator on the way. Poll it every 3 to 5 seconds for images and every 5 to 10 seconds for videos until status is done or failed. Jobs nobody polls still finish on their own.
| Status | Meaning |
|---|---|
waiting | In line for a free slot; place is its place (1 = next). Can be cancelled. |
queued | Sent, waiting to start. |
running | Being made. |
done | Ready: file (and thumb) are set. |
failed | Not made. error says why and the HP is back (refunded: true). |
expired | Done more than 7 days ago; its files are deleted. |
A job waits at most 30 minutes in line and runs at most an hour; after that it fails and its HP comes back.
GET/jobs
Your jobs, newest first, 60 at a time: { "jobs": [...], "next": "2026-11-27T19:58:00.000Z" }. For the next page send ?before= with next (an ISO time or milliseconds). Images, videos and sounds are in one list. Optional: ?kind=image, ?kind=video, or ?kind=audio (also speech, dialogue, sfx).
DELETE/jobs/{id}
A waiting job is cancelled and its HP comes back ({ "ok": true, "refunded": 6.4 }). A finished job is removed from your list. A job that is already running can't be stopped (409).
Results
GET/jobs/{id}/file · /jobs/{id}/thumb
The result and its thumbnail, with your key. Add ?download to get it as an attachment. Range requests work for videos. Results are kept for 7 days (expiresAt), then deleted, so download what you want to keep.
Voice and sound
Text to speech, dialogue with several voices, and sound effects, with ElevenLabs models. They use the same key, the same HP, and the same /models, /quote and /jobs calls as images and videos. Two things are different:
- One call, no polling.
POST /jobsanswers when the sound is ready, with"status": "done"and the MP3's address, or with an error. This takes a few seconds, and up to about a minute for long texts on Eleven v4, v3 and dialogue, so give your HTTP client a timeout of at least 90 seconds. - No servers, no uploads. Leave out
server,aspectandquality. Results are MP3 files (128 kbps, 44.1 kHz, mono).
# a voice-over: 56 characters on Eleven v4 Turbo = 0.56 HP, so the 1 HP minimum
curl https://maxcheapai.com/api/v1/jobs \
-H "Authorization: Bearer $MCA_KEY" -H "Content-Type: application/json" \
-d '{"kind":"speech","model":"eleven-v4-turbo","voice":"JBFqnCBsd6RMkjVDRZzb","text":"[warmly] Welcome back. Today we are making a paper boat."}'
# download it
curl -L -o welcome.mp3 https://maxcheapai.com/api/v1/jobs/JOB_ID/file -H "Authorization: Bearer $MCA_KEY"
The audio models
| Model id | Kind | Price | Limit per request | Notes |
|---|---|---|---|---|
eleven-v4 | speech | 2 HP / 100 characters | 1,000 characters | Featured, the default. The most expressive; reads audio tags. Long texts take up to a minute. |
eleven-v4-turbo | speech | 1 HP / 100 characters | 1,000 characters | Featured. v4's voice, about 4x faster. Reads audio tags. |
eleven-v3 | speech | 2 HP / 100 characters | 850 characters | Dramatic delivery with audio tags. stability snaps to 0, 0.5 or 1. |
eleven-multilingual-v2 | speech | 2 HP / 100 characters | 1,000 characters | Steady, natural narration in 29 languages. |
eleven-flash-v2.5 | speech | 1 HP / 100 characters | 1,000 characters | The fastest. Good for drafts and long reads. |
eleven-dialogue | dialogue | 2 HP / 100 characters | 1,000 characters across all lines, 24 lines | Several voices in one take, built on v3. Reads audio tags. |
eleven-sfx | sfx | 1 HP / second | 0.5 to 30 seconds, 450-character description | Featured. A sound from a description. Can loop. |
In /models each audio model looks like this (its servers list is empty):
{
"id": "eleven-v4-turbo", "name": "Eleven v4 Turbo", "kind": "speech", "featured": true,
"description": "v4's voice, about 4x faster. Audio tags.",
"pricing": "per_100_characters", "hpPer100Characters": 1, "minHp": 1,
"maxCharacters": 1000, "audioTags": true, "speed": "fast", "servers": [],
"settings": { "speed": { "min": 0.7, "max": 1.2, "default": 1 }, "stability": { "min": 0, "max": 1, "default": 0.5 } }
}
{ "id": "eleven-sfx", "name": "Sound effects", "kind": "sfx", "featured": true, "pricing": "per_second", "hpPerSecond": 1, "minHp": 1,
"maxPromptCharacters": 450, "seconds": { "min": 0.5, "max": 30, "default": 5 }, "loop": true, "servers": [] }
Audio tags are words in square brackets that the v4, v4 Turbo, v3 and dialogue models act out instead of reading, such as [whispers], [laughs], [sighs], [excited] or [sarcastic]. They count as characters.
POST/jobs · /quote (speech)
| Field | Meaning |
|---|---|
kind | "speech". Can be left out when model is a speech model. |
model | A speech model id. Default: eleven-v4. |
text | What to say, up to the model's maxCharacters (1,000; 850 on v3). Required. prompt works too. Longer texts are refused, not split: send them in parts. |
voice | A voice id from /voices. Required. |
speed | 0.7 to 1.2. Default 1. |
stability | 0 (more varied) to 1 (steadier). Default 0.5. On v3: 0, 0.5 or 1. |
POST/jobs · /quote (dialogue)
| Field | Meaning |
|---|---|
kind | "dialogue" (or "model": "eleven-dialogue"). |
lines | 1 to 24 lines, in order: [{ "text": "…", "voice": "VOICE_ID" }, …]. Up to 1,000 characters across all lines. Empty lines are skipped. |
POST /api/v1/jobs
{ "kind": "dialogue", "lines": [
{ "text": "[excited] Did you hear that?", "voice": "cgSgspJ2msm6clMCkdW9" },
{ "text": "[whispers] It came from the attic.", "voice": "JBFqnCBsd6RMkjVDRZzb" }
] }
POST/jobs · /quote (sound effects)
| Field | Meaning |
|---|---|
kind | "sfx" (or "model": "eleven-sfx"). |
prompt | The sound, described in up to 450 characters. Required. |
seconds | 0.5 to 30, in steps of 0.1. Default 5. duration works too. |
loop | true for a sound that loops without a seam (an engine, rain). Default false. |
The answer
A quote gives the price and what it counts, like an image or video quote:
POST /api/v1/quote
{ "kind": "sfx", "prompt": "heavy rain on a tin roof", "seconds": 12 }
200
{ "hp": 12, "kind": "sfx", "model": "eleven-sfx", "modelName": "Sound effects",
"settings": { "seconds": 12, "loop": false }, "available": 120.5, "enough": true }
A job answers once the sound is made. The job has text (speech), lines (dialogue) or prompt (sound effects) in place of an image's prompt, and the sound's length in seconds:
200
{
"job": {
"id": "9b2e…", "kind": "speech", "status": "done",
"model": "eleven-v4-turbo", "modelName": "Eleven v4 Turbo",
"text": "[warmly] Welcome back. Today we are making a paper boat.",
"settings": { "voice": "JBFqnCBsd6RMkjVDRZzb" },
"hp": 1, "refunded": false, "error": null,
"file": "https://maxcheapai.com/api/v1/jobs/9b2e…/file", "thumb": null,
"contentType": "audio/mpeg", "size": 61440, "seconds": 3.84,
"createdAt": "2026-11-29T22:10:00.000Z", "doneAt": "2026-11-29T22:10:02.000Z", "expiresAt": "2026-12-06T22:10:00.000Z"
},
"balance": 119.5
}
Audio jobs show up in GET /jobs and work with GET /jobs/{id}, /jobs/{id}/file (add ?download for an attachment) and DELETE /jobs/{id}, like any other job. They have no thumbnail. Results are kept for 7 days.
- Price: per character (or second) at the model's rate, so 250 characters on v4 cost 5 HP and on v4 Turbo 2.5 HP. Rounded up to 0.01 HP, at least 1 HP a job. Audio tags and spaces count as characters.
- At once: 6 audio jobs per account, the Studio page and the API together (
limits.audioin/account). Studio add-ons don't change it. - Failures: a job that fails answers
502 generation_refusedwith the failedjob, and its HP is back. When a long text on v4, v3 or dialogue takes too long, try a shorter text or v4 Turbo.
Voices
GET/voices
The voices for speech and dialogue, with a short preview of each. Send the id as voice. Every voice works on every speech model and in dialogue, and speaks the language of your text.
{ "voices": [
{ "id": "JBFqnCBsd6RMkjVDRZzb", "name": "George", "style": "Warm, Captivating Storyteller",
"gender": "male", "age": "middle aged", "accent": "british", "useCase": "narrative story", "preview": "https://…mp3" }
] }
The list today (read /voices for the current one):
| Voice id | Name | Style | Gender, age | Accent | Best for |
|---|---|---|---|---|---|
CwhRBWXzGAHq8TQ4Fs17 | Roger | Laid-Back, Casual, Resonant | male, middle aged | american | conversational |
EXAVITQu4vr4xnSDxMaL | Sarah | Mature, Reassuring, Confident | female, young | american | entertainment tv |
FGY2WhTYpPnrIDTdsKH5 | Laura | Enthusiast, Quirky Attitude | female, young | american | social media |
IKne3meq5aSn9XLyUdCD | Charlie | Deep, Confident, Energetic | male, young | australian | conversational |
JBFqnCBsd6RMkjVDRZzb | George | Warm, Captivating Storyteller | male, middle aged | british | narrative story |
N2lVS1w4EtoT3dr4eOWO | Callum | Husky Trickster | male, middle aged | american | characters animation |
SAz9YHcvj6GT2YYXdXww | River | Relaxed, Neutral, Informative | neutral, middle aged | american | conversational |
SOYHLrjzK2X1ezoPC6cr | Harry | Fierce Warrior | male, young | american | characters animation |
TX3LPaxmHKxFdv7VOQHJ | Liam | Energetic, Social Media Creator | male, young | american | social media |
Xb7hH8MSUJpSbSDYk0k2 | Alice | Clear, Engaging Educator | female, middle aged | british | informative educational |
XrExE9yKIg1WjnnlVkGX | Matilda | Knowledgable, Professional | female, middle aged | american | informative educational |
bIHbv24MWmeRgasZH58o | Will | Relaxed Optimist | male, young | american | conversational |
cgSgspJ2msm6clMCkdW9 | Jessica | Playful, Bright, Warm | female, young | american | conversational |
cjVigY5qzO86Huf0OWal | Eric | Smooth, Trustworthy | male, middle aged | american | conversational |
hpp4J3VqNfWAUOO0d1Us | Bella | Professional, Bright, Warm | female, middle aged | american | informative educational |
iP95p4xoKVk53GoZ742B | Chris | Charming, Down-to-Earth | male, middle aged | american | conversational |
nPczCjzI2devNBz1zQrb | Brian | Deep, Resonant and Comforting | male, middle aged | american | social media |
onwK4e9ZLuTAKqWW03F9 | Daniel | Steady Broadcaster | male, middle aged | british | informative educational |
pFZP5JQG7iQjIQuC4Bku | Lily | Velvety Actress | female, middle aged | british | informative educational |
pNInz6obpgDQGcFmaJgB | Adam | Dominant, Firm | male, middle aged | american | social media |
pqHfZKP75CvOlQylNhV4 | Bill | Wise, Mature, Balanced | male, old | american | advertisement |
Account and limits
GET/account
{ "id": "…", "email": "you@example.com", "plan": "paid", "hp": 120.5, "available": 120.5,
"limits": { "image": 12, "video": 6, "audio": 6, "addOns": 1 }, "running": { "image": 2, "video": 0, "audio": 0 } }
available is hp less what running Motion videos may still use. The API and the Studio page share every limit:
- Jobs at once: 8 images and 4 videos per account. Each Studio add-on (100,000 VND for 30 days, on the Add HP page) adds 4 images and 2 videos. Audio: 6 at once.
- New jobs: up to 12 a minute.
- Uploads: up to 60 an hour.
How pricing works
- Prices are in HP (1 HP = 50 VND) and are exactly the Studio page's: the API and the page share one price calculation, so the same request costs the same HP either way.
- Audio is priced per character or per second of sound (the audio models), at least 1 HP a job.
- A per-second price is multiplied by
duration. Reference videos can add avideoFee. Special discounts come off. The total is rounded up to 0.01 HP, once, for the whole job. POST /quotedoes all of this for you and is free to call.- The HP is taken when a job is made. A job that fails, times out or is cancelled while waiting gives it all back. If an image comes back smaller than the quality you paid for, or a 1080p, 2K or 4K video can't be upscaled and stays at 720p, you pay the smaller size's price and the rest comes back (the job's
hpshows what you paid in the end). - Prices follow the generators' own prices and can change during the day. Quote right before you make a job when the price matters.
Errors
Errors come with an HTTP status and a body like this. message is meant for people; branch on code.
{ "error": { "code": "insufficient_hp", "message": "This needs 6.4 HP and you have 2.1.", "need": 6.4, "balance": 2.1 } }
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The request doesn't fit the model or server (a quality it doesn't make, too many references, no prompt, a text over the model's characters, a voice not in /voices, …). The message says what to change. |
| 401 | unauthorized | No key, a wrong key, or a revoked key. |
| 403 | paid_only | The key's account is not a paid account. Add HP once. |
| 402 | insufficient_hp | Not enough HP. need and balance say how much. |
| 403 | locked | A quality the model doesn't offer for now. |
| 403 | forbidden | The account is suspended. |
| 404 | not_found | No such job or endpoint, or the file is not ready. |
| 409 | conflict | The job is still running, or you already have 10 keys. |
| 413 · 415 | too_large · unsupported_media | An upload that is too big or not a file type we take. |
| 429 | too_many_running | You have as many jobs of this kind running as your account allows (kind, max). Wait for one to finish. |
| 429 | rate_limited | Too many new jobs in a minute, or too many uploads in an hour. |
| 502 | generation_refused | The generator refused the job. Nothing was charged (the HP is back); job is included. |
| 503 | unavailable | Studio can't load its models or voices, or is switched off for a moment. Try again in a minute. |