How to write a cuil.si film plan
1Read the format
GET /movies/plans/formatgives the schema, this guide, two examples that pass the check, the limits and today's credits per second for each quality. A camera makes one shot at a time: the Realistic people style makes 2 to 30 seconds and Cinematic 4 to 30, so a longer moment is two shots. Outside assistants connected to cuil.si get the same with the toolget_film_plan_format.curl "https://cuil.si/api/v1/movies/plans/format" -H "Authorization: Bearer $CUILSI_API_KEY" # { "guide": "...", "plan_schema": { ... }, "examples": [ ... ], "limits": { ... }, "credits_per_second": { ... } }2Write the people, places and shots
Give every character one
lookline, clothes and colours first, so they look the same in every shot. A look is only what they wear and how they look, never something they hold or carry: put a suitcase or a phone in the shots that show it. Give every shot itssecondsandaction, and itslines,narrationorsound. Keep one main action in each shot: a shot of 5 seconds or less holds one action and at most one short line, so split a busier moment into more shots. The cameras can't write, so ask for no signs, captions or times on screen. A recorded voice says about 12 characters of words a second and words spoken inside the shot about 15, with numbers and signs counted as they are said ("$49.99" is "forty-nine dollars ninety-nine"), and keep something heard all the time: more than 4 seconds of nothing is named in the check, as on the finished film's page, unless the shot is markedquiet. Every field has a length limit, and a field that isn't in the format is refused.3Check it, for free
POST /movies/plans/check(orcheck_film_plan) answers each problem with itspathin the plan, plain words, afixand whether it isblocking, about how many credits the film uses and the most it can use, and atimelineof when words, sound and music are heard. It saves nothing. You can check 30 times in 10 minutes per key, and 300 times a day per workspace; saving a plan counts as a check too.curl -X POST "https://cuil.si/api/v1/movies/plans/check" -H "Authorization: Bearer $CUILSI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"plan": { "kind": "short", "title": "Fresh Bread, Every Morning", "aspect": "9:16", "quality": "draft", "characters": [ { "name": "Baker", "look": "White apron over a green t-shirt, flour on the hands, short grey beard, about 50" } ], "places": [{ "name": "Bakery", "look": "A small bakery at sunrise, wooden shelves of bread, warm golden light" }], "scenes": [{ "place": "Bakery", "when": "sunrise", "shots": [ { "seconds": 5, "size": "close-up", "people": ["Baker"], "action": "The baker pulls a tray of golden loaves out of the oven, steam rising.", "narration": "Every morning at five, the ovens are already warm." }, { "seconds": 5, "size": "medium", "people": ["Baker"], "action": "The baker breaks a loaf in two and smiles at the camera.", "lines": [{ "who": "Baker", "text": "Still warm. Come and try it before it's gone.", "how": "proud" }] }, { "seconds": 5, "size": "wide", "action": "The bakery's front window glows as the first customers walk in.", "narration": "Corner Bakery. Fresh bread, every single morning." } ] }] }}' # { "ok": true, "summary": "...", "problems": [], "estimate": { "credits": ..., "most": ... }, "timeline": [ ... ] }4Save it as a film
POST /movies/plans(orcreate_movie_from_plan) checks it again and saves it. The film waits on its page and in Waiting for you. Nothing is made or charged until the person presses Make on the film page. Your key can't start it or carry it on: approving a step, writing a new story, carrying on and putting it together answer409 make_on_film_pagefor a film made from a plan. A plan with a blocking problem is answered with422 plan_has_problemsand the report.curl -X POST "https://cuil.si/api/v1/movies/plans" -H "Authorization: Bearer $CUILSI_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d @plan-request.json # 201: { "movie_id": "...", "link": "https://cuil.si/movies/...", "message": "Saved. Nothing is made..." } # 422 plan_has_problems: { "error": { "report": { ... } } } when something must be fixed first5After Make
GET /movies/{movie_id}/shots/{shot_id}shows a shot's words, its clip, up to 4 stills and its notes.PATCH .../wordschanges one shot's words for free and answers what changed: not while the film is being made (409 being_made), and only to a length the shot's camera makes. It never moves the film's credit limit after Make.POST .../remake-suggestionsputs “Re-make shot 4” with your note, quoted, on the film page, which the person presses or dismisses. Studio films stay inside cuil.si and are never shown to a key.curl "https://cuil.si/api/v1/movies/$MOVIE_ID/shots/$SHOT_ID" -H "Authorization: Bearer $CUILSI_API_KEY" curl -X PATCH "https://cuil.si/api/v1/movies/$MOVIE_ID/shots/$SHOT_ID/words" -H "Authorization: Bearer $CUILSI_API_KEY" \ -H "Content-Type: application/json" -d '{"action": "The baker breaks a loaf in two and laughs."}' curl -X POST "https://cuil.si/api/v1/movies/$MOVIE_ID/shots/$SHOT_ID/remake-suggestions" -H "Authorization: Bearer $CUILSI_API_KEY" \ -H "Content-Type: application/json" -d '{"note": "the new action"}'