Animated, whiteboard and stick
Not every account can use these; one that cannot gets 403 not_available.
Explainer (engine animated)
Section titled “Explainer (engine animated)”Create a film with "engine": "animated" and "mode": "explainer". Each scene is drawn as a board of animated cards (titles, notes, lists, steps, counters, charts, timelines, signs, chats, web pages), plus a diagram, a code editor, a road or a map when needed, explained by a mascot.
"board": {"theme": "...", "sfx": true, "mascot": {"rig": "...", "hat": "..."}, "colors": {"background": "#FFF8E7", "accent": "#E4572E"}}"mascot": nullfor none. List valid keys:GET /animated/assets?kind=theme(kind:theme,mascot,hat,icon,presenter,glow,color).tries(1 to 5): how many times each board and drawing is asked for.- Pictures are named in words and matched to stored drawings. Check:
GET /animated/pictures?word=postgresql%20logo&word=train%20wheel. A logo needs the word logo and the exact brand name. On accounts with animated drawing, an unmatched picture (never a logo) is drawn by a model;board.drawings(0 to 12) andboard.drawing_tokens(500 to 16000) set the budget. files: [{"name", "content", "lang"}]puts your own files on screen exactly as written; the code editor types their real lines."models": {"board": {...}}picks the text model that writes the boards. Redraw one board withPOST /films/{id}/scenes/{index}/image. No character sheet.
Whiteboard films
Section titled “Whiteboard films”A narrated lesson drawn by a marker on one big board.
GET /whiteboard/kit drawing pieces, picture names, themes and limitsPOST /whiteboard {"idea": "8 to 1200 characters", "format": "vertical", "theme": "whiteboard", "minutes": 1, "script": {...}}GET /whiteboard/{id}POST /whiteboard/{id}/write {"idea": "optional new idea"}PUT /whiteboard/{id}/script {"script": {...}}PUT /whiteboard/{id}/look {"format", "theme", "minutes"}POST /whiteboard/{id}/voice record the narration still missingPOST /whiteboard/{id}/render record what is missing, then renderformat: vertical or wide. theme: whiteboard or chalkboard. minutes: 1 to 10, the length the writer aims for.
Every call answers the film: {"id", "status", "error", "progress", "idea", "format", "theme", "minutes", "script", "voiced", "video"}. status moves queued_story, generating_story, story_ready, generating_audio, queued_assemble, assembling, done (or error). A busy film refuses changes with 409.
Send script on create to skip the writer:
{"title": "...", "scenes": [{"beats": [{"say": "what the narrator says", "piece": {"type": "title"}}]}]}Piece types (fields and examples in the kit): title, write, list, draw, link, flow, circle, cross, number, bars, compare, formula, matrix, multiply, plot. Each beat’s drawing starts when its line starts. Limits: 30 scenes, 8 beats a scene, 60 words a line, 90 seconds a scene, 15 minutes a film.
Writing a good lesson:
- One clear question answered step by step: a hook, the idea built up, how it works, a concrete example with real numbers, a short recap.
- Each scene is one panel with 2 to 6 beats; about one scene per 25 to 45 seconds. The narrator speaks about 2.5 words a second.
- Natural spoken sentences of 10 to 25 words. A title beat gets a short line of at most 12 words.
- Prefer pictures, arrows, flows, charts, numbers and matrices over written text.
- Use numbers from your source as they are, and name the source in the last scene.
Credits: each voiced line and the render by its length. An edit only re-records the lines it changed.
Stick films
Section titled “Stick films”Stick figure characters talk it out in painted places.
POST /stick {"idea": "8 to 1200 characters"}GET /stick/{id}POST /stick/{id}/write {"idea": "optional new idea"}PUT /stick/{id}/script {"script": {...}}PUT /stick/{id}/subtitles {"on": true}POST /stick/{id}/make paint the places and voice the lines still missingPOST /stick/{id}/render make what is missing, then renderEvery call answers the film: {"id", "status", "error", "progress", "idea", "subtitles", "script", "video", "items", "rides"}.
The script:
{"title": "...", "cast": [{"id", "name", "voice", "look"}], "places": [{"id", "picture", "time": "day"}], "scenes": [{"place", "cast", "enter", "seated", "seat", "caption", "music", "ride", "beats": [{"who", "say", "do", "face", "listen", "holds", "shot", "pause"}]}]}At most 4 cast, 4 places, 8 scenes, 64 KB and 5 minutes. items lists what a character can hold, rides the vehicles a scene can use. Films stay suitable for all ages and never portray a real person.
Credits: each place picture, each voiced line and the render by its length.
