← All skills
Skill
Short drama
Plan a short drama with the same characters in every scene, see the full price, then make one video per scene.
Try it
“Use the short drama skill. Make a three-scene drama about two rival food truck owners who end up sharing one parking spot. Anime look, tall for phones. Show me the cast, the scenes and the full price before you make anything.”
Works once Folio Gen Studio is connected. Add it to Claude first if you have not.
What Claude does, step by step
- 1Read the limits, the credits and the saved elements
- 2Ask about the storyAsks you
- 3Write the plan
- 4Price the pictures and show the planAsks you
- 5Make or collect the picturesAsks you
- 6Price the scenes and get the yesAsks you
- 7Make the scenes
- 8Wait for the scenesAsks you
- 9Report
Tools it uses
- models_explore
- balance
- element_list
- generate_image
- media_import_url
- media_upload
- media_confirm
- element_save
- generate_video
- jobs_wait
Each tool is one call to the Folio Gen Studio API.
Show the full instructions Claude followsHide the full instructions
# Short drama
Make a short drama: a few scenes, one video each, with the same characters in every scene. You plan it with the person, make one picture per character and place, save those pictures as elements, show the full price, and make the videos only after the person says yes.
## Rules for the whole skill
- **Money.** `generate_image` and `generate_video` spend credits unless you set `price_only` to `true`. Never make a paid call until the person has seen its price in credits and then said yes. A yes to a plan that showed no price is not a yes to spend. If the person named a budget earlier ("up to 200 credits"), a price within it needs no new yes, but show it before you start. The only other exception is the single retry described under "When something goes wrong".
- **Price calls are free.** A call with `price_only` set to `true` starts nothing and charges nothing. Its answer holds the price in `price.credits` and the person's credits in `balance.credits`.
- **When to ask.** Ask the person only at the points marked **Ask**: the story questions (step 2), the plan and the picture price (step 4), keeping the pictures (step 5), the scene prices (step 6), after scene 1 when they chose to see it first (step 8), and when a failure needs their choice. Put every question for one point in one message, give a default for each, and accept "you choose".
- **Limits.** Read them from `models_explore`. The numbers in this text are today's; when `models_explore` says otherwise, it wins.
- **Language.** Talk to the person in their language. Spoken lines in the videos use that language unless they ask for another.
- **What the video model refuses.** Real people (the person, people they know, public figures), characters owned by someone else, sexual content and graphic violence. Do not plan them. If the person asks for them, say so plainly and offer another idea.
## 1. Read the limits, the credits and the saved elements
Before planning, call:
- `models_explore` with `kind` `video`. Use the model marked `default` if its `modes` include `reference_to_video`; otherwise the first model whose `modes` do. Note its `id`, the `duration` range (today 4 to 30 seconds), the `resolution` and `aspect_ratio` values, and the credits per second for each resolution in `prices` (the rows whose `video_input` is `false`).
- `models_explore` with `kind` `image`. Note the `id` of the model marked `default` and its credits per picture.
- `balance`. Note `credits`.
- `element_list` with `kind` `image` and `limit` 100, then again with `cursor` set to `next_cursor` until `next_cursor` is `null`. These are characters, places and props saved before. Each item's `id` is the picture's `media_id`, and its `element` holds the `name` and the `type`.
## 2. Ask about the story (**Ask**)
Send one message with these questions and their defaults:
1. **The story.** Ask for it in a few lines, or offer to write one from a theme. If the person gives only a theme, or says "you choose", write the story yourself.
2. **The look.** Offer drawn or animated looks: anime, comic, 3D animated film, clay, watercolor. Default: 3D animated film. Say in one sentence why a realistic look is a poor fit for people: the video model refuses character pictures that show a realistic human face, even pictures our own picture model made. Animals, robots and creatures may look realistic.
3. **The shape.** Tall (`9:16`, for phones) by default, or wide (`16:9`).
4. **The size.** Default: 4 scenes of about 8 seconds at `720p`. Give an estimate: the credits per second for that resolution times the seconds, plus the price of one picture per character and place. If that is more than the person's credits, make `480p` the default; if it still does not fit, fewer or shorter scenes. If even 3 scenes of 5 seconds at `480p` do not fit, say how many credits are missing and that credits come with a plan on the site.
5. If `element_list` found saved characters or places, ask whether any of them should be in this drama.
## 3. Write the plan
- **Title.**
- **Cast:** at most 4 characters. For each, a name and a look line: age, build, face, hair, clothes and their colors. The look line is copied word for word into every scene where the character appears, so write it once and keep it.
- **Places:** at most 3, each with a name and a look line.
- **Props:** only the ones the story turns on, each with a look line.
- **Scenes:** 3 to 6. For each: number, place, who is in it (at most 3 characters), what happens, the spoken lines, and the seconds.
Sizes that work:
- A scene is 4 to 30 seconds (the model's range). Most scenes fit in 5 to 12.
- Allow about 3 seconds for each short spoken line, and at most 3 lines in 8 seconds.
- A scene longer than about 8 seconds can hold 2 or 3 shots; give each shot its own seconds ("0-4 s", "4-9 s").
- 30 to 90 seconds in all suits a first episode. A story that needs more than 8 scenes becomes episodes: plan the first one only.
- Always give `duration` a whole number of seconds. Never `auto`: an automatic length holds the price of the longest video and leaves the scene's timing to chance.
## 4. Price the pictures and show the plan (**Ask**)
List the pictures to make: one per character, place and prop that has no saved element. If there are none, show only the plan and the video estimate. Otherwise call `generate_image` once with `price_only` set to `true`, the image model's `id` and `mode` `text_to_image`. Pictures from one model cost the same whatever their shape, so multiply its `price.credits` by the number of pictures.
Show the person, in one message:
- the plan from step 3;
- the pictures: how many, and their total in credits;
- an estimate for the videos (credits per second times the total seconds), marked as an estimate. The exact price comes in step 6, before any video is made.
Ask: "Shall I make the pictures?" The person may change the plan first; if they do, show it again with new prices.
## 5. Make or collect the pictures
**Making a picture.** Call `generate_image` with:
- `model`: the image model's `id`; `mode`: `text_to_image`; `count`: 1; `max_credits`: the picture price from step 4.
- `aspect_ratio`: `9:16` for a character, the drama's shape for a place, `1:1` for a prop.
- `prompt`: for a character, the character alone, full body, standing, facing the viewer, on a plain light background in even light, then its look line and the drama's look. For a place, the place with nobody in it, then its look line and the drama's look. For a prop, the prop alone on a plain background. End each with "No text."
For example (the model, the price and the words are examples):
```json generate_image
{
"model": "gemini-3.1-flash-lite-image",
"mode": "text_to_image",
"prompt": "One character alone, full body, standing, facing the viewer, plain light gray background, even soft light. Mara: a woman in her thirties, short black hair, round glasses, green raincoat. 3D animated film look. No text.",
"aspect_ratio": "9:16",
"count": 1,
"max_credits": 1
}
```
A picture comes back in the same answer. In `job.results`, keep its `media_id` and its `page_url`. If `job.status` is `failed`, see "When something goes wrong".
**Using the person's own picture.** A picture of a real person cannot be a character picture: the video model refuses it. Offer to make a new character from a description instead. Other pictures (a drawing, a place, a prop) can come in like this:
- A picture on the web: call `media_import_url` with its `url`. Use `media.id` when `media.status` is `ready`. If it is `rejected`, show `media.reject_reason`.
- In a chat that shows panels, such as Claude: call `media_upload` with `files` empty. A panel opens in the chat, the person picks the files there, and the panel checks them and then tells you their IDs.
- If you can send files yourself, such as Claude Code or a script: call `media_upload` with each file's `name`, `mime` and `bytes`. Send each file with an HTTP PUT to its `url` in `uploads`, with its `headers`. Then call `media_confirm` with the `media_ids`, and use the files whose `status` is `ready`.
- Otherwise: give the person the `upload_page_url` from `media_upload`. When they have uploaded, ask them to paste the file ID the page shows (it starts with med_), then call `media_confirm` with it.
Pictures must be PNG, JPEG or WebP, under 30 MB, and 300 to 6,000 pixels on each side.
**Check with the person (Ask).** Show every new picture at once, each as its `page_url`, and ask: "Keep these, or change any?" To fix one, call `generate_image` with `mode` `image_edit`, the picture in `medias` with `role` `image_reference`, and the fix as the prompt; to start one again, use `text_to_image`. Each new picture costs the picture price again: say that price in the message that offers the change, and make it only after a yes.
**Save the kept pictures.** For each picture the person keeps, call `element_save` with its `media_id`, a `name` and a `type`: `character`, `place` or `prop`. The name is the character's or the place's name; if `element_list` already has a different element with that name, add the drama's title in brackets. Save only the pictures the person keeps, so their elements stay tidy.
## 6. Price the scenes and get the yes (**Ask**)
Build each scene's call:
- `model`: the video model's `id` from step 1, the same in every scene.
- `mode`: `reference_to_video`.
- `medias`: the scene's pictures, each with `role` `image_reference`, in a fixed order: the scene's characters in cast order, then its place, then its props. Leave out pictures of characters who are not in the scene.
- `prompt`: see below; at most 5,000 characters.
- `duration`: the scene's seconds. `resolution` and `aspect_ratio`: the drama's, the same in every scene. `generate_audio`: `true`, so the spoken lines and sounds are made with the picture.
Writing the prompt:
- The video model numbers the pictures of each call in their `medias` order: the first is `@Image 1`, the next `@Image 2`. The numbers start again in every scene.
- Begin with the drama's look, in the same words in every scene.
- Say who or what each picture is and what to take from it, for example: Mara is the woman in `@Image 1`: keep her face, hair and clothes.
- Add the look line of each character in the scene, word for word.
- Then what happens, shot by shot with their seconds, and how the camera moves.
- Put spoken lines in curly braces with the language before them: `Mara says in English: {The last ferry has gone.}`. Put sounds in angle brackets, `<rain on a tin roof>`, and music in round brackets, `(slow piano)`.
- Ask for no on-screen text unless the person wants some.
Call `generate_video` with the scene's arguments and `price_only` set to `true`. For example (the model, the IDs and the words are examples):
```json generate_video
{
"model": "seedance-2.5",
"mode": "reference_to_video",
"prompt": "3D animated film look, soft evening light, warm colors. Mara is the woman in @Image 1: keep her face, hair and clothes. Teo is the boy in @Image 2: keep his face, hair and clothes. The place is the ferry dock in @Image 3: keep its layout and colors. Mara: a woman in her thirties, short black hair, round glasses, green raincoat. Teo: a boy of ten, curly brown hair, a yellow sweater too big for him, holding a paper lantern. 0-4 s: wide shot of the dock at dusk in the rain; Teo runs up to the ticket booth, out of breath. 4-8 s: close shot; Mara leans out of the booth window. Mara says in English: {The last ferry left an hour ago.} <rain on a tin roof> (quiet piano). No on-screen text.",
"medias": [
{ "role": "image_reference", "media_id": "med_01JD00000000000000000000A1" },
{ "role": "image_reference", "media_id": "med_01JD00000000000000000000B1" },
{ "role": "image_reference", "media_id": "med_01JD00000000000000000000P1" }
],
"duration": 8,
"resolution": "720p",
"aspect_ratio": "9:16",
"generate_audio": true,
"price_only": true
}
```
Add up the scenes' `price.credits`. Show the person, in one message:
- each scene: its number, one line on what happens, its seconds and its credits;
- the total, the person's credits (`balance.credits`), and what would be left;
- if the total is more than the person has: how many credits are missing, and the choices: fewer or shorter scenes, `480p`, or adding credits on the site and coming back.
Ask: reply "yes" to make every scene, or "first" to make scene 1 alone and look at it before the rest. Any change after this (a scene, a length, the size) means new price calls and a new yes.
## 7. Make the scenes
For each approved scene, in order, call `generate_video` with exactly the arguments of its price call, without `price_only`, and add:
- `max_credits`: the scene's price from step 6. If the price has gone up, the call is refused with `price_changed` and nothing is charged. If it has gone down, the lower price is charged.
- `idempotency_key`: one per scene and try, such as `k7q2-scene-3-try-1`, where k7q2 is a short random tag you make once for this drama. Same arguments, same key: if an answer is lost and you repeat the call with its key, nothing starts or is charged twice. Changed arguments, or a deliberate new try, get a new key.
Keep each scene's `job.id`. Tell the person once that the scenes take a few minutes and run a few at a time. If a call answers `too_many_jobs`, nothing was charged: wait (step 8) until one of the running scenes finishes, then repeat the call with the same key.
## 8. Wait for the scenes
Call `jobs_wait` with the scenes' `ids`, at most 12 at a time. It answers within 15 seconds with each job's latest state. Call it again until every job's `status` is `succeeded` or `failed`. Do not write to the person after each wait.
If the person chose "first": when scene 1 has `succeeded`, show its page and ask (**Ask**) whether to make the rest at the prices already shown, or to change something first (new price calls and a new yes).
## 9. Report
For each scene: its number, its one line, the `page_url` of its result (a lasting link the person can open and download from), its seconds and its `credits_charged`. Then the total charged, any `credits_returned`, and the credits left, from `balance`.
Also say:
- The scenes are separate videos. These tools do not join them; any video editor can put them in order.
- The characters and places are saved as elements, so a next episode can use them again.
## When something goes wrong
A job that fails has `status` `failed` and an `error` with a `reason` and a `message`; everything it held is returned by itself. A refused call starts nothing; its `error` has a `code` and a `message`.
| What you get | What it means | What to do |
|---|---|---|
| Job failed, `content_refused` | The model refused the prompt or a picture. | Tell the person in plain words. Do not repeat it unchanged. Offer a change (the wording, the risky part, or a picture), then price it and ask before trying again. |
| Job failed, `vendor_failed` or `timed_out` | The model failed on its side. | Try once more with a new key and the same `max_credits`, without asking: the failed try was returned in full. If it fails again, stop and tell the person. |
| Job failed, `invalid_input` | The model could not use an input. | Check the scene's pictures and settings, fix them, then price again and ask. |
| `insufficient_credits` | Not enough credits. Nothing was charged. | Show `needed` and `available`, and give the `billing_url` link. Offer a smaller plan. Wait until the person says to go on. Scenes already started keep going. |
| `price_changed` | The price went up since you showed it. Nothing was charged. | Show the new `price.credits` and ask. Then call with the new `max_credits` and a new key. |
| `too_many_jobs` | The person already has `limit` jobs running. Nothing was charged. | Wait with `jobs_wait`, then repeat with the same key. No need to tell the person. |
| `rate_limited` | Too many calls in a minute. | Wait `retry_after_seconds`, then repeat with the same key. |
| `invalid_params` | A setting is not allowed. | Fix it from `issues` and `allowed`. If the fix changes the price (a length or a size), price it again and ask. Never change a setting without telling the person. |
| `media_not_ready` | A picture in `media_ids` is unknown, not checked yet, or was rejected. | For an upload, call `media_confirm`. If a picture is rejected, show its `reject_reason` and replace it. |
| `vendor_error` | The model refused the job or could not be reached when it started. All credits were returned. | If `reason` is `content_refused`, do as for a refused job above. Otherwise wait a minute and try once more with a new key. |
| `duplicate_request` | A key was used before with other arguments. | Use a new key. |
| `unauthorized` | The connection's sign-in has ended. | Ask the person to connect this app again in their assistant's settings, then go on. |
| `internal` | Something went wrong on our side. | Repeat once with the same key. If it happens again, stop and give the person the `request_id`. |
Limits on trying again:
- At most one try again per scene without asking. After that, the person decides.
- Never try again at a higher price than the person approved.
- Never remake a scene that `succeeded` unless the person asks; a remake costs again, so price it and ask.
- When some scenes succeed and others cannot be fixed, report the finished ones with their links, say which failed and why, and that their credits came back.