Studio API · v1

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 }
}
FieldMeaning
servers[].idThe value to send as server. Servers are named the way Studio names them: SDBF, SB Standard, SB Ultra, then Server 1, Server 2, ...
featuredThe server "auto" prefers whenever it can make the job.
downThe server failed recently; "auto" passes it over while another one fits.
busyHoursThe server is often overloaded during work hours: a job may take longer, or fail and give its HP back.
pricing, hpHP 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, discountThe price before a special discount, and that discount (0.5 = −50%).
upscaledVideo: 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.
discountQualitiesThe qualities a discount is for, when it is only for some.
lockedQualitiesQualities this account can't make with a server for now (free accounts make 1K images only).
durations, refDurations, minLength, framesMaxDurationVideo 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.
inputsWhat 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).
videoFeeExtra 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_ID with no body.
  • Up to 60 uploads an hour. Uploads are deleted after 7 days.

Make a job

POST/jobs

FieldMeaning
kind"image" or "video". Required. For sound, see Voice and sound.
modelA model id from /models. Required.
promptUp to 5,000 characters. Required. Point at your uploads with @image_1, @video_1, @audio_1 (counted in the order of refs, videos, audios).
serverA server id from /models, or "auto" (the default): the featured server when it fits, else the cheapest one that can make exactly this job.
aspectOne of the server's aspects. Default: its first.
qualityOne of the server's qualities (1k, 2k, 720p, low, …). Default: its first; Nano Banana defaults to 1K.
durationVideo only: seconds, one of the server's durations.
negativeImage only: what to leave out.
start, endVideo only: first and last frame (upload addresses). An end frame needs a start frame.
refsReference images (upload addresses).
videos, audiosVideo 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.

StatusMeaning
waitingIn line for a free slot; place is its place (1 = next). Can be cancelled.
queuedSent, waiting to start.
runningBeing made.
doneReady: file (and thumb) are set.
failedNot made. error says why and the HP is back (refunded: true).
expiredDone 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 /jobs answers 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, aspect and quality. 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 idKindPriceLimit per requestNotes
eleven-v4speech2 HP / 100 characters1,000 charactersFeatured, the default. The most expressive; reads audio tags. Long texts take up to a minute.
eleven-v4-turbospeech1 HP / 100 characters1,000 charactersFeatured. v4's voice, about 4x faster. Reads audio tags.
eleven-v3speech2 HP / 100 characters850 charactersDramatic delivery with audio tags. stability snaps to 0, 0.5 or 1.
eleven-multilingual-v2speech2 HP / 100 characters1,000 charactersSteady, natural narration in 29 languages.
eleven-flash-v2.5speech1 HP / 100 characters1,000 charactersThe fastest. Good for drafts and long reads.
eleven-dialoguedialogue2 HP / 100 characters1,000 characters across all lines, 24 linesSeveral voices in one take, built on v3. Reads audio tags.
eleven-sfxsfx1 HP / second0.5 to 30 seconds, 450-character descriptionFeatured. 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)

FieldMeaning
kind"speech". Can be left out when model is a speech model.
modelA speech model id. Default: eleven-v4.
textWhat 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.
voiceA voice id from /voices. Required.
speed0.7 to 1.2. Default 1.
stability0 (more varied) to 1 (steadier). Default 0.5. On v3: 0, 0.5 or 1.

POST/jobs · /quote (dialogue)

FieldMeaning
kind"dialogue" (or "model": "eleven-dialogue").
lines1 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)

FieldMeaning
kind"sfx" (or "model": "eleven-sfx").
promptThe sound, described in up to 450 characters. Required.
seconds0.5 to 30, in steps of 0.1. Default 5. duration works too.
looptrue 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.audio in /account). Studio add-ons don't change it.
  • Failures: a job that fails answers 502 generation_refused with the failed job, 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 idNameStyleGender, ageAccentBest for
CwhRBWXzGAHq8TQ4Fs17RogerLaid-Back, Casual, Resonantmale, middle agedamericanconversational
EXAVITQu4vr4xnSDxMaLSarahMature, Reassuring, Confidentfemale, youngamericanentertainment tv
FGY2WhTYpPnrIDTdsKH5LauraEnthusiast, Quirky Attitudefemale, youngamericansocial media
IKne3meq5aSn9XLyUdCDCharlieDeep, Confident, Energeticmale, youngaustralianconversational
JBFqnCBsd6RMkjVDRZzbGeorgeWarm, Captivating Storytellermale, middle agedbritishnarrative story
N2lVS1w4EtoT3dr4eOWOCallumHusky Trickstermale, middle agedamericancharacters animation
SAz9YHcvj6GT2YYXdXwwRiverRelaxed, Neutral, Informativeneutral, middle agedamericanconversational
SOYHLrjzK2X1ezoPC6crHarryFierce Warriormale, youngamericancharacters animation
TX3LPaxmHKxFdv7VOQHJLiamEnergetic, Social Media Creatormale, youngamericansocial media
Xb7hH8MSUJpSbSDYk0k2AliceClear, Engaging Educatorfemale, middle agedbritishinformative educational
XrExE9yKIg1WjnnlVkGXMatildaKnowledgable, Professionalfemale, middle agedamericaninformative educational
bIHbv24MWmeRgasZH58oWillRelaxed Optimistmale, youngamericanconversational
cgSgspJ2msm6clMCkdW9JessicaPlayful, Bright, Warmfemale, youngamericanconversational
cjVigY5qzO86Huf0OWalEricSmooth, Trustworthymale, middle agedamericanconversational
hpp4J3VqNfWAUOO0d1UsBellaProfessional, Bright, Warmfemale, middle agedamericaninformative educational
iP95p4xoKVk53GoZ742BChrisCharming, Down-to-Earthmale, middle agedamericanconversational
nPczCjzI2devNBz1zQrbBrianDeep, Resonant and Comfortingmale, middle agedamericansocial media
onwK4e9ZLuTAKqWW03F9DanielSteady Broadcastermale, middle agedbritishinformative educational
pFZP5JQG7iQjIQuC4BkuLilyVelvety Actressfemale, middle agedbritishinformative educational
pNInz6obpgDQGcFmaJgBAdamDominant, Firmmale, middle agedamericansocial media
pqHfZKP75CvOlQylNhV4BillWise, Mature, Balancedmale, oldamericanadvertisement

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 a videoFee. Special discounts come off. The total is rounded up to 0.01 HP, once, for the whole job.
  • POST /quote does 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 hp shows 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 } }
StatusCodeMeaning
400invalid_requestThe 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.
401unauthorizedNo key, a wrong key, or a revoked key.
403paid_onlyThe key's account is not a paid account. Add HP once.
402insufficient_hpNot enough HP. need and balance say how much.
403lockedA quality the model doesn't offer for now.
403forbiddenThe account is suspended.
404not_foundNo such job or endpoint, or the file is not ready.
409conflictThe job is still running, or you already have 10 keys.
413 · 415too_large · unsupported_mediaAn upload that is too big or not a file type we take.
429too_many_runningYou have as many jobs of this kind running as your account allows (kind, max). Wait for one to finish.
429rate_limitedToo many new jobs in a minute, or too many uploads in an hour.
502generation_refusedThe generator refused the job. Nothing was charged (the HP is back); job is included.
503unavailableStudio can't load its models or voices, or is switched off for a moment. Try again in a minute.