All guides

How to write a cuil.si film plan

A film plan is the whole film written out: the story, the people and how they look, the places, and every shot with what we see, what is said, what we hear, the camera and how long it lasts. Your assistant (Claude, ChatGPT or your own code) writes it. cuil.si checks it for free, saves it as a film that waits on its page, and makes every part when the person presses Make there. cuil.si never rewrites your words, and saving a plan spends nothing. Film plans are in beta and are being switched on step by step: until they are on for cuil.si, these calls answer `404 film_plans_off`.
  1. 1Read the format

    GET /movies/plans/format gives 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 tool get_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": { ... } }
  2. 2Write the people, places and shots

    Give every character one look line, 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 its seconds and action, and its lines, narration or sound. 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 marked quiet. Every field has a length limit, and a field that isn't in the format is refused.

  3. 3Check it, for free

    POST /movies/plans/check (or check_film_plan) answers each problem with its path in the plan, plain words, a fix and whether it is blocking, about how many credits the film uses and the most it can use, and a timeline of 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": [ ... ] }
  4. 4Save it as a film

    POST /movies/plans (or create_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 answer 409 make_on_film_page for a film made from a plan. A plan with a blocking problem is answered with 422 plan_has_problems and 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 first
  5. 5After Make

    GET /movies/{movie_id}/shots/{shot_id} shows a shot's words, its clip, up to 4 stills and its notes. PATCH .../words changes 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-suggestions puts “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"}'