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.
- Open the Studio at getziztu.com/app and sign in. Open Settings, then API keys.
- Name the key (for example "Claude Code") and pick its scopes:
readto look around,generateto plan and make things,exportto download films. - Copy the key. It starts with
sk_sakuga_and is shown once.
Send the key on every request, in either header:
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:
{
"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_creditsis 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: trueor thequotetool returns the exact credits and starts nothing. The quote also lists any shot that is blocked, and why. - Retries are safe with an
Idempotency-Keyheader: the same key and body returns the first answer instead of running twice. - Scope the key. A key without
generatecannot start paid work. Make areadkey 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.
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
| Method | Path | Notes |
|---|---|---|
| GET | /projects | List all projects |
| POST | /projects | { name, aspect?, presetId? } |
| GET | /projects/:pid | Full project + ?full=1 for raw document |
| PATCH | /projects/:pid | Partial update |
| DELETE | /projects/:pid | Deletes project and media |
Characters and places
| Method | Path | Notes |
|---|---|---|
| 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
| Method | Path | Notes |
|---|---|---|
| GET | /projects/:pid/shots | All 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
| Method | Path | Notes |
|---|---|---|
| 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
| Method | Path | Notes |
|---|---|---|
| POST | /projects/:pid/director/plan | Scene specs only: { text } |
| POST | /projects/:pid/director/chat | Plan or change the project in plain words: { message }. The reply has an id and proposed actions |
| POST | /projects/:pid/director/messages/:mid/apply-all | Apply all free actions from a reply |
| POST | /projects/:pid/director/messages/:mid/actions/:aid/apply | Apply one action |
AI Script Writer
| Method | Path | Notes |
|---|---|---|
| GET | /projects/:pid/script | The outline of every scene and the Fountain text: ?scenes=1,2&include_text=0&max_chars= |
| POST | /script/draft | Write 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/:jid | A job's steps, story plan and result: ?wait= |
| POST | /projects/:pid/script/ask | Ask 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/edits | Apply or reject proposals: { message_id, decision, edit_ids? } |
| POST | /projects/:pid/script/doctor | The Script Doctor's notes: { scope?, scene?, lens?, focus?, max_credits, confirm?, dry_run? } |
| GET | /projects/:pid/script/versions | The saved versions, or ?compare=<id>&to=<id or now> |
| POST | /projects/:pid/script/versions/:vid/restore | Bring a version back; the script as it is now is saved first |
| POST | /script/import | Fountain, 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/shots | A 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
| Method | Path | Notes |
|---|---|---|
| POST | /projects/:pid/generate/frames | First-frame images. shot_ids?, count?, model? |
| POST | /projects/:pid/generate/animate | Clips. shot_ids? |
| POST | /projects/:pid/generate/music | Music. track_ids? |
| POST | /projects/:pid/generate/character-images | character_id, kind?, count?, model? |
| POST | /projects/:pid/generate/place-plates | place_id, count?, model? |
| POST | /projects/:pid/generate/director-action | message_id, action_id |
| POST | /projects/:pid/quote | Exact price, no spend. { operation, ... } |
Export and media
| Method | Path | Notes |
|---|---|---|
| POST | /projects/:pid/export | Start ffmpeg export (free) |
| GET | /projects/:pid/export/plan | Length, clips, drafts |
| GET | /projects/:pid/media/:aid/file | Download a media asset (needs export scope on SaaS) |
Jobs
| Method | Path | Notes |
|---|---|---|
| GET | /jobs?project_id= | List jobs |
| GET | /jobs/:jid | Single job |
| POST | /jobs/:jid/cancel | Cancel a running job |
Credits
| Method | Path | Notes |
|---|---|---|
| GET | /credits | Local: USD spent/budget. SaaS: credits + plan |
Tools
| Method | Path | Notes |
|---|---|---|
| GET | /tools | List all tools |
| POST | /tools/recommend | { query } - AI-powered tool recommender |
| GET | /tools/:tool/runs | List runs |
| POST | /tools/:tool/runs | Start a run. { prompt, max_credits, settings?, ... } |
| GET | /tools/:tool/runs/:pid | Run status (gate, question, outputs) |
| POST | /tools/:tool/runs/:pid/approve | Raise budget: { max_credits, confirm? } |
| POST | /tools/:tool/runs/:pid/stop | Stop a run |
| POST | /tools/:tool/runs/:pid/message | Send text or answer a question |
| POST | /tools/:tool/quote | Quote a run (no spend): { prompt, settings? } |
API keys
| Method | Path | Notes |
|---|---|---|
| GET | /api/account/api-keys | List your keys |
| POST | /api/account/api-keys | Create: { name, scopes?, rate_limit_per_min? } |
| DELETE | /api/account/api-keys/:id | Revoke |
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
| model | Name | Takes | Price of a 5 second clip |
|---|---|---|---|
seedance-2.5 | Seedance 2.5 | image 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-mini | Seedance 2.0 Mini | image 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-pro | Kling 3.0 Pro | image 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-std | Kling 3.0 Standard | image 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-turbo | Kling 3.0 Turbo | image to video, text to video. 3 to 15 seconds; 720p Standard and 1080p Pro. | 1390 to 1740 credits per 5 second clip |
kling-o3 | Kling O3 | image 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-o1 | Kling O1 | image to video, reference to video, first and last frame. 3 to 10 seconds; 1080p. | 1390 credits per 5 second clip |
kling-motion | Kling Motion Control | motion 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-turbo | MiniMax H3 Max Turbo | image 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-ref | MiniMax H3 Max References | image 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-camera | MiniMax H3 Max Camera | camera moves. 1 to 15 seconds; 480p, 768p, 1080p. | 620 to 1980 credits per 5 second clip |
or-h3-max | MiniMax H3 Max via OpenRouter | image 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-2k | MiniMax H3 2K via OpenRouter | image 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.5 | Grok Imagine Video 1.5 | image 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-lite | Grok Imagine Video 1.5 Lite | image to video, text to video. 1 to 15 seconds; 480p, 720p, 1080p. | 280 to 1760 credits per 5 second clip |
or-heygen | HeyGen Video | image 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-max | FLUX 3 Max | image 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-flash | Gemini Omni Flash 1.1 | image 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-v6 | PixVerse V6 | image to video, text to video, sound. 1 to 15 seconds; 720p, 1080p. | 750 to 1430 credits per 5 second clip |
or-happyhorse | HappyHorse 1.1 | image 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.1 | Veo 3.1 | image 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-fast | Veo 3.1 Fast | image 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-lite | Veo 3.1 Lite | image 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.5 | Runway Gen-4.5 | image to video, text to video. 2 to 10 seconds; 720p. | 1490 credits per 5 second clip |
or-wan-3 | Wan 3.0 | image 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-video | FLUX 3 Video | image 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-turbo | Vidu Q3 Turbo | image 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
| model | Name | Takes | Price of one image |
|---|---|---|---|
muse | Meta Muse Image | text to image, image edit with reference images (up to 10). Up to 10 images a time. | 30 credits per image |
gpt-image-2.5 | GPT Image 2.5 | text 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-sunburst | GPT Image 2.5 Sunburst | text to image, image edit with reference images (up to 16). Up to 10 images a time. | 20 to 150 credits per image |
seedream | Seedream 5 Flash | text to image, image edit with reference images (up to 10). Up to 6 images a time. | 70 credits per image |
nano-banana-pro | Nano Banana Pro | text to image, image edit with reference images (up to 14). Up to 4 images a time. | 380 to 750 credits per image |
grok-image-2 | Grok Imagine Image 2.0 | text to image, image edit with reference images (up to 5). Up to 4 images a time. | 150 to 200 credits per image |
ideogram | Ideogram 4.5 | text to image. Up to 8 images a time. | 80 to 550 credits per image |
nano-banana-2.1 | Nano Banana 2.1 | text to image, image edit with reference images (up to 10). Up to 4 images a time. | 150 credits per image |
seedream-5-pro | Seedream 5.0 Pro | text to image, image edit with reference images (up to 10). Up to 4 images a time. | 170 credits per image |
seedream-5-lite | Seedream 5.0 Lite | text to image, image edit with reference images (up to 6). Up to 4 images a time. | 90 credits per image |
qwen-image-3 | Qwen-Image 3 | text to image, image edit with reference images (up to 3). Up to 4 images a time. | 190 credits per image |
kling-image-o3 | Kling Image O3 | text to image, image edit with reference images (up to 9). Up to 4 images a time. | 70 credits per image |
krea-3 | Krea 3 | text to image, image edit with reference images (up to 8). Up to 4 images a time. | 70 credits per image |
recraft-4.1 | Recraft V4.1 | text to image. Up to 4 images a time. | 90 credits per image |
flux-3-image | FLUX 3 Image | text 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
| model | Name | Takes | Price |
|---|---|---|---|
elevenlabs | ElevenLabs Music | text to music. Up to 10 minutes, billed by the minute. | 1490 credits per minute of music |
lyria | Google Lyria 3.5 | text to music. About 60 seconds a cue. | 250 credits per score cue |
minimax-song | MiniMax Music 2 | lyrics 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
{
"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.
| Code | HTTP | What it means |
|---|---|---|
unauthenticated | 401 | No API key was sent. |
invalid_api_key | 401 | The key is not valid or was revoked. |
insufficient_scope | 403 | The key lacks the scope the call needs (scope says which). |
rate_limited | 429 | Too many requests. Wait for Retry-After seconds. |
bad_request | 400 | A field is missing or wrong (field says which). |
max_credits_required | 400 | A paid call came without max_credits. The error carries the quote and says what to send. |
over_max_credits | 402 | The call would cost more than max_credits (needed is the price). Nothing was started. |
confirm_required | 409 | The call is above 5,000 credits or needs a review. Send confirm: true. |
blocked | 422 | One or more shots cannot run yet. Fix them, or send skip_blocked: true to run the rest. |
nothing_to_do | 422 | There is nothing to make: every shot already has one, or none was named. |
not_found | 404 | The project, shot, job or run does not exist for this account. |
idempotency_key_reused | 422 | The Idempotency-Key was used with a different request. |
idempotency_in_progress | 409 | A request with this Idempotency-Key is still running. |
tool_unavailable | 503 | The 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.
More docs
- 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
- MCP Server for Video Generation: Connect Ziztu to Your AI App
- Kick Clip DownloaderA free Kick clip downloader with no sign-up: paste the link of a Kick clip and save it as one MP4 with its sound, in the quality…
Make a key and send your first call.
Start for $20 a month.