Ziztu API

The Ziztu API is a REST API at https://getziztu.com/api/v1. Send an API key, create a project, let the Director plan it and make frames and clips, with a max_credits cap on every paid call.

For AI agents: the documentation index is at /llms.txt, and every page here has a markdown version at the same address with .md added.

Updated

Auth and base URL

Base URL: https://getziztu.com/api/v1. The OpenAPI 3.1 spec is at https://getziztu.com/openapi.json.

  1. Open the Studio at getziztu.com/app and sign in. Open Settings, then API keys.
  2. Name the key (for example "Claude Code") and pick its scopes: read to look around, generate to plan and make things, export to download films.
  3. Copy the key. It starts with sk_sakuga_ and is shown once.

Send the key on every request, in either header:

Headers
Authorization: Bearer sk_sakuga_your_key
X-API-Key: sk_sakuga_your_key

Use one of the two. A key acts as your account and spends its credits.

Scopes: read for every GET, generate for every change including paid generation, export for renders and downloads. A key can hold any of them. You can have up to 20 active keys.

Spend safety

Every call that costs credits needs max_credits. The call is refused if the real price is higher, and nothing is started. To see the price first, add dry_run: true:

POST /api/v1/projects/:pid/generate/frames
{
  "max_credits": 2000,
  "dry_run": true
}

Returns { "quote": ... } and starts nothing. Drop dry_run to run it. The same body works on animate and music.

  • max_credits is required on every call that costs credits: first frames, clips, music and Studio app runs. If the price is higher, the call is refused before anything starts.
  • Above 5,000 credits, add confirm: true. A bigger spend needs a second, explicit yes.
  • Ask the price first. dry_run: true or the quote tool returns the exact credits and starts nothing. The quote also lists any shot that is blocked, and why.
  • Retries are safe with an Idempotency-Key header: the same key and body returns the first answer instead of running twice.
  • Scope the key. A key without generate cannot start paid work. Make a read key for an agent that should only look.
  • Revoke it any time under Settings, API keys. It stops working at once.

To compare video API pricing across providers before you pick a model value, see the per second prices in our price index.

A full session with curl

From a new project to an exported film. Replace PID, MID and JID with the ids in the replies.

From a new project to an export
BASE=https://getziztu.com/api/v1
AUTH="Authorization: Bearer $ZIZTU_TOKEN"
JSON='Content-Type: application/json'

# 1. Check the key and the balance
curl -s $BASE/credits -H "$AUTH"

# 2. Create a project (9:16 for a vertical micro drama)
curl -sX POST $BASE/projects -H "$AUTH" -H "$JSON" \
  -d '{"name":"Dough letter","aspect":"9:16"}'
PID=...   # the id in the reply

# 3. Ask the Director to plan it. The reply has an id and proposed actions
curl -sX POST $BASE/projects/$PID/director/chat -H "$AUTH" -H "$JSON" \
  -d '{"message":"Plan a 60 second micro drama about a baker who finds a love letter in the dough"}'
MID=...   # message.id in the reply

# 4. Apply the free actions: the cast, the places and the shots
curl -sX POST $BASE/projects/$PID/director/messages/$MID/apply-all -H "$AUTH"

# 5. Price the first frames. Nothing is spent
curl -sX POST $BASE/projects/$PID/generate/frames -H "$AUTH" -H "$JSON" \
  -d '{"max_credits":9990,"dry_run":true}'

# 6. Make them, within a cap. The Idempotency-Key makes a retry safe
curl -sX POST $BASE/projects/$PID/generate/frames -H "$AUTH" -H "$JSON" \
  -H 'Idempotency-Key: frames-001' \
  -d '{"max_credits":2000}'

# 7. Poll a job
curl -s $BASE/jobs/$JID -H "$AUTH"

# 8. Export the film
curl -sX POST $BASE/projects/$PID/export -H "$AUTH"

Retrying a paid call with the same Idempotency-Key and body returns the first answer (with Idempotent-Replayed: true) instead of running again. Answers are kept for 24 hours.

Endpoints

The paths below are under https://getziztu.com/api/v1, except the API key routes. The OpenAPI spec has the request shapes.

Projects

MethodPathNotes
GET/projectsList all projects
POST/projects{ name, aspect?, presetId? }
GET/projects/:pidFull project + ?full=1 for raw document
PATCH/projects/:pidPartial update
DELETE/projects/:pidDeletes project and media

Characters and places

MethodPathNotes
POST/projects/:pid/characters{ name, description, color, looks, ... }
PATCH/projects/:pid/characters/:cid
DELETE/projects/:pid/characters/:cid
POST/projects/:pid/places{ name, description, time_of_day, weather, mood, ... }
PATCH/projects/:pid/places/:lid
DELETE/projects/:pid/places/:lid

Shots

MethodPathNotes
GET/projects/:pid/shotsAll shots in order
POST/projects/:pid/shots{ title, idea, duration, character_ids, place_id, ... }
PATCH/projects/:pid/shots/:sid
DELETE/projects/:pid/shots/:sid

Music tracks

MethodPathNotes
GET/projects/:pid/music
POST/projects/:pid/music{ name, start, length, prompt, model, ... }
PATCH/projects/:pid/music/:mid
DELETE/projects/:pid/music/:mid

Director AI

MethodPathNotes
POST/projects/:pid/director/planScene specs only: { text }
POST/projects/:pid/director/chatPlan or change the project in plain words: { message }. The reply has an id and proposed actions
POST/projects/:pid/director/messages/:mid/apply-allApply all free actions from a reply
POST/projects/:pid/director/messages/:mid/actions/:aid/applyApply one action

AI Script Writer

MethodPathNotes
GET/projects/:pid/scriptThe outline of every scene and the Fountain text: ?scenes=1,2&include_text=0&max_chars=
POST/script/draftWrite a draft: { idea?, format?, project_id?, name?, aspect?, plan_only?, plan_job_id?, story_plan?, replace_existing?, max_credits, confirm?, dry_run? }. Returns a job
GET/projects/:pid/script/jobs/:jidA job's steps, story plan and result: ?wait=
POST/projects/:pid/script/askAsk the editor or for a change: { message, scene?, scope?, max_credits, confirm?, dry_run? }. Returns the answer and proposed edits with ids
POST/projects/:pid/script/editsApply or reject proposals: { message_id, decision, edit_ids? }
POST/projects/:pid/script/doctorThe Script Doctor's notes: { scope?, scene?, lens?, focus?, max_credits, confirm?, dry_run? }
GET/projects/:pid/script/versionsThe saved versions, or ?compare=<id>&to=<id or now>
POST/projects/:pid/script/versions/:vid/restoreBring a version back; the script as it is now is saved first
POST/script/importFountain, Final Draft or plain text: { text, project_id?, name?, format?, mode?, replace_existing?, aspect? }
POST/projects/:pid/script/export{ format: fountain or pdf or fdx, title_page? }. Fountain comes back as text; pdf and fdx as a ten minute link on /api/v1/script-files/<token> (no sign-in, the token is the credential)
POST/projects/:pid/script/shotsA shot plan of some scenes as a Director message: { scenes?, max_credits, confirm?, dry_run? }; add it with the Director's apply-all

Paid generation

MethodPathNotes
POST/projects/:pid/generate/framesFirst-frame images. shot_ids?, count?, model?
POST/projects/:pid/generate/animateClips. shot_ids?
POST/projects/:pid/generate/musicMusic. track_ids?
POST/projects/:pid/generate/character-imagescharacter_id, kind?, count?, model?
POST/projects/:pid/generate/place-platesplace_id, count?, model?
POST/projects/:pid/generate/director-actionmessage_id, action_id
POST/projects/:pid/quoteExact price, no spend. { operation, ... }

Export and media

MethodPathNotes
POST/projects/:pid/exportStart ffmpeg export (free)
GET/projects/:pid/export/planLength, clips, drafts
GET/projects/:pid/media/:aid/fileDownload a media asset (needs export scope on SaaS)

Jobs

MethodPathNotes
GET/jobs?project_id=List jobs
GET/jobs/:jidSingle job
POST/jobs/:jid/cancelCancel a running job

Credits

MethodPathNotes
GET/creditsLocal: USD spent/budget. SaaS: credits + plan

Tools

MethodPathNotes
GET/toolsList all tools
POST/tools/recommend{ query } - AI-powered tool recommender
GET/tools/:tool/runsList runs
POST/tools/:tool/runsStart a run. { prompt, max_credits, settings?, ... }
GET/tools/:tool/runs/:pidRun status (gate, question, outputs)
POST/tools/:tool/runs/:pid/approveRaise budget: { max_credits, confirm? }
POST/tools/:tool/runs/:pid/stopStop a run
POST/tools/:tool/runs/:pid/messageSend text or answer a question
POST/tools/:tool/quoteQuote a run (no spend): { prompt, settings? }

API keys

MethodPathNotes
GET/api/account/api-keysList your keys
POST/api/account/api-keysCreate: { name, scopes?, rate_limit_per_min? }
DELETE/api/account/api-keys/:idRevoke

The API key routes work with a signed-in session, not with an API key. A key cannot make other keys.

Model ids

Set model on a shot (PATCH /projects/:pid/shots/:sid) to choose its video model, on POST /projects/:pid/generate/frames or character-images to choose the image model, and on a music track to choose the music model. Leave it out and the Director's pick or the default is used. dry_run and quote return the price of the choice first.

Video models: the model value of a shot

modelNameTakesPrice of a 5 second clip
seedance-2.5Seedance 2.5image to video, text to video, reference to video, first and last frame, sound. 4 to 30 seconds; 480p, 720p, 1080p.1370 to 14380 credits per 5 second clip
seedance-2-miniSeedance 2.0 Miniimage to video, text to video, reference to video, first and last frame, sound. 4 to 15 seconds; 480p, 720p.450 to 960 credits per 5 second clip
kling-3-proKling 3.0 Proimage to video, text to video, character elements next to a first frame, first and last frame, sound. 3 to 15 seconds; 1080p.2080 credits per 5 second clip
kling-3-stdKling 3.0 Standardimage to video, text to video, character elements next to a first frame, first and last frame, sound. 3 to 15 seconds; 720p.1560 credits per 5 second clip
kling-3-turboKling 3.0 Turboimage to video, text to video. 3 to 15 seconds; 720p Standard and 1080p Pro.1390 to 1740 credits per 5 second clip
kling-o3Kling O3image to video, text to video, reference to video, first and last frame, sound. 3 to 15 seconds; 720p Standard and 1080p Pro.1390 to 1740 credits per 5 second clip
kling-o1Kling O1image to video, reference to video, first and last frame. 3 to 10 seconds; 1080p.1390 credits per 5 second clip
kling-motionKling Motion Controlmotion transfer. 3 to 30 seconds (as long as the motion video); 720p Standard and 1080p Pro.1560 to 2080 credits per 5 second clip
h3-turboMiniMax H3 Max Turboimage to video, text to video, first and last frame. 1 to 15 seconds; 480p, 768p, 1080p.310 to 990 credits per 5 second clip
h3-max-refMiniMax H3 Max Referencesimage to video, reference to video, first and last frame. 1 to 15 seconds; 480p, 768p, 1080p.690 to 2050 credits per 5 second clip
h3-cameraMiniMax H3 Max Cameracamera moves. 1 to 15 seconds; 480p, 768p, 1080p.620 to 1980 credits per 5 second clip
or-h3-maxMiniMax H3 Max via OpenRouterimage to video, text to video, first and last frame. 5 to 15 seconds; 480p, 768p.620 to 990 credits per 5 second clip
or-h3-2kMiniMax H3 2K via OpenRouterimage to video, text to video, reference to video, first and last frame, sound. 5 to 15 seconds; 2K.1710 credits per 5 second clip
grok-1.5Grok Imagine Video 1.5image to video, text to video, reference to video. 1 to 15 seconds; 480p, 720p, 1080p.1020 to 3120 credits per 5 second clip
grok-1.5-liteGrok Imagine Video 1.5 Liteimage to video, text to video. 1 to 15 seconds; 480p, 720p, 1080p.280 to 1760 credits per 5 second clip
or-heygenHeyGen Videoimage to video, text to video, reference to video, sound. 5 to 15 seconds; 480p, 768p.250 to 450 credits per 5 second clip
flux-3-maxFLUX 3 Maximage to video, text to video, first and last frame, sound. 5 to 20 seconds; 720p, 1080p.2110 to 3590 credits per 5 second clip
gemini-omni-flashGemini Omni Flash 1.1image to video, text to video, first and last frame, sound. 3 to 10 seconds; 720p, 1080p.1240 to 1860 credits per 5 second clip
pixverse-v6PixVerse V6image to video, text to video, sound. 1 to 15 seconds; 720p, 1080p.750 to 1430 credits per 5 second clip
or-happyhorseHappyHorse 1.1image to video, text to video, reference to video, sound. 3 to 15 seconds; 720p, 1080p.1230 to 1580 credits per 5 second clip
or-veo-3.1Veo 3.1image to video, text to video, first and last frame, sound. 4 to 8 seconds; 720p, 1080p.4950 credits per 5 second clip
or-veo-3.1-fastVeo 3.1 Fastimage to video, text to video, first and last frame, sound. 4 to 8 seconds; 720p, 1080p.1240 to 1490 credits per 5 second clip
or-veo-3.1-liteVeo 3.1 Liteimage to video, text to video, first and last frame, sound. 4 to 8 seconds; 720p, 1080p.620 to 990 credits per 5 second clip
or-gen-4.5Runway Gen-4.5image to video, text to video. 2 to 10 seconds; 720p.1490 credits per 5 second clip
or-wan-3Wan 3.0image to video, text to video, reference to video, sound. 2 to 30 seconds; 480p, 720p, 1080p.620 to 2480 credits per 5 second clip
or-flux-3-videoFLUX 3 Videoimage to video, text to video, first and last frame, sound. 5 to 20 seconds; 720p, 1080p, 2K.2110 to 3470 credits per 5 second clip
vidu-q3-turboVidu Q3 Turboimage to video, text to video, first and last frame, sound. 1 to 16 seconds; 720p, 1080p.960 credits per 5 second clip

Text-only inserts on MiniMax H3 Max Turbo use h3-turbo-t2v. Each model takes the lengths and sizes in its row; a length it cannot make is rounded to the nearest one it can.

Image models: the model value of generate/frames

modelNameTakesPrice of one image
museMeta Muse Imagetext to image, image edit with reference images (up to 10). Up to 10 images a time.30 credits per image
gpt-image-2.5GPT Image 2.5text to image, image edit with reference images (up to 16). Up to 10 images a time.20 to 150 credits per image
gpt-image-2.5-sunburstGPT Image 2.5 Sunbursttext to image, image edit with reference images (up to 16). Up to 10 images a time.20 to 150 credits per image
seedreamSeedream 5 Flashtext to image, image edit with reference images (up to 10). Up to 6 images a time.70 credits per image
nano-banana-proNano Banana Protext to image, image edit with reference images (up to 14). Up to 4 images a time.380 to 750 credits per image
grok-image-2Grok Imagine Image 2.0text to image, image edit with reference images (up to 5). Up to 4 images a time.150 to 200 credits per image
ideogramIdeogram 4.5text to image. Up to 8 images a time.80 to 550 credits per image
nano-banana-2.1Nano Banana 2.1text to image, image edit with reference images (up to 10). Up to 4 images a time.150 credits per image
seedream-5-proSeedream 5.0 Protext to image, image edit with reference images (up to 10). Up to 4 images a time.170 credits per image
seedream-5-liteSeedream 5.0 Litetext to image, image edit with reference images (up to 6). Up to 4 images a time.90 credits per image
qwen-image-3Qwen-Image 3text to image, image edit with reference images (up to 3). Up to 4 images a time.190 credits per image
kling-image-o3Kling Image O3text to image, image edit with reference images (up to 9). Up to 4 images a time.70 credits per image
krea-3Krea 3text to image, image edit with reference images (up to 8). Up to 4 images a time.70 credits per image
recraft-4.1Recraft V4.1text to image. Up to 4 images a time.90 credits per image
flux-3-imageFLUX 3 Imagetext to image, image edit with reference images (up to 10). Up to 4 images a time.120 credits per image

Music models: the model value of a music track

modelNameTakesPrice
elevenlabsElevenLabs Musictext to music. Up to 10 minutes, billed by the minute.1490 credits per minute of music
lyriaGoogle Lyria 3.5text to music. About 60 seconds a cue.250 credits per score cue
minimax-songMiniMax Music 2lyrics to song. One song a time.80 credits per song

Credits are quotes from the billing code. At All access Max's price a credit is about $0.0009. Sound effects and voice lines are priced by length and have no model value.

Errors

An error
{
  "error": {
    "code": "over_max_credits",
    "message": "This would spend 1500 credits, more than max_credits (1000). Nothing more was started.",
    "max_credits": 1000,
    "needed": 1500
  }
}

Every error has a code you can switch on and a message you can show. Spend errors also carry the quote.

CodeHTTPWhat it means
unauthenticated401No API key was sent.
invalid_api_key401The key is not valid or was revoked.
insufficient_scope403The key lacks the scope the call needs (scope says which).
rate_limited429Too many requests. Wait for Retry-After seconds.
bad_request400A field is missing or wrong (field says which).
max_credits_required400A paid call came without max_credits. The error carries the quote and says what to send.
over_max_credits402The call would cost more than max_credits (needed is the price). Nothing was started.
confirm_required409The call is above 5,000 credits or needs a review. Send confirm: true.
blocked422One or more shots cannot run yet. Fix them, or send skip_blocked: true to run the rest.
nothing_to_do422There is nothing to make: every shot already has one, or none was named.
not_found404The project, shot, job or run does not exist for this account.
idempotency_key_reused422The Idempotency-Key was used with a different request.
idempotency_in_progress409A request with this Idempotency-Key is still running.
tool_unavailable503The Studio app is not available right now.

A paid call from an account with too few credits is refused with HTTP 402 before anything starts.

Rate limits

By default 120 requests a minute per key, and 30 paid POSTs a minute. A response carries X-RateLimit-Limit and X-RateLimit-Remaining. When you pass the limit you get HTTP 429 and a Retry-After header with the seconds to wait.

Other ways to use Ziztu

  • The Ziztu Chrome extension turns any text you select on a web page into a micro drama or anime scene. Its privacy policy says what it collects: nothing.
  • Ziztu for Notion sends a Reel Factory plan to a Notion board and updates each row when the reel is made.
  • The connectors add Ziztu to Claude, ChatGPT, Codex, Cursor and Grok.

Frequently asked questions

How do I get a Ziztu API key?

Sign in to the Studio, open Settings, then API keys. Name the key, pick its scopes (read, generate, export) and copy it. It is shown once and starts with sk_sakuga_.

How do I check a price before I spend?

Send dry_run: true with max_credits to a generate endpoint, or call the quote endpoint. You get the exact credits and nothing is started. Above 5,000 credits a real call also needs confirm: true.

Is there an OpenAPI spec?

Yes. https://getziztu.com/openapi.json is an OpenAPI 3.1 document, and the older copy at /api/v1/openapi.json still answers.

What are the rate limits?

By default 120 requests a minute per key and 30 paid requests a minute.

Can I use the API with my credits?

A key spends the credits of the account that made it. Start for $20 a month. Ziztu starts at $20 a month for 14,000 credits.

Which video models does the Ziztu API support?

Seedance 2.5 and 2.0 Mini, Kling 3.0 Pro, Standard and Turbo, Kling O3, O1 and Motion Control, MiniMax H3 Max Turbo, References and Camera, Grok Imagine Video 1.5 and Lite, and HeyGen Video. Set the shot's model value; the table on this page lists each id and its price.

How do I pick Seedance or Kling in the API?

Set model on the shot to seedance-2.5, seedance-2-mini, kling-3-pro, kling-3-std, kling-3-turbo, kling-o3, kling-o1 or kling-motion, then quote or run animate with max_credits. The price depends on the length and size.

  • Ziztu API errors and rate limitsThe Ziztu API answers every failure with a JSON error that has a code you can switch on and a message you can show.
  • Ziztu Clip MakerZiztu Clip Maker is an MCP server at https://getziztu.com/mcp/clips.
  • Ziztu PlannerZiztu Planner brings the Script Writer and the Director into Claude and other MCP clients.
  • Ziztu Reel StudioZiztu Reel Studio is an MCP server at https://getziztu.com/mcp/reel.
  • Ziztu MCP toolsThe Ziztu MCP server has 30 tools. Here they are grouped by what they do, in the order an agent uses them, each with its…
  • Ziztu YouTube StudioZiztu YouTube Studio is an MCP server at https://getziztu.com/mcp/youtube.
  • Ziztu OpenAPI specThe Ziztu API is described as one OpenAPI 3.1 document at https://getziztu.com/openapi.json.
  • Ziztu skills for agentsZiztu publishes two skills for AI agents under the MIT license: one writes micro drama series and episodes, the other writes…

Also on Ziztu

See all: Docs

Make a key and send your first call.

Start for $20 a month.