AI story shorts
GlobalManaged by Graphed
Turns a true story or a person's crazy facts into a 30–60 second vertical cartoon short. Your agent checks the facts, writes the script, designs the characters, animates every shot and edits it with a narrator voice, captions and music.
ai-story-shorts
Story → script + fact check → story.json → character sheets → one still per shot (GPT Image 2.5) → one clip per still (Seedance 2.5, 480p) → voice, word times, music → edit → out/<slug>.mp4.
A 35-second short is about 15 shots and costs about 900–1,000 Graphed credits (about $9–10). About 85% of that is Seedance.
Account and project
Use the person logged into the Graphed CLI. Do not hardcode an account id or a project slug.
- One account: use it. More than one: ask which account, then pass
--account. - One project on that account: use it. More than one: ask which project, then pass
--project. The project only holds the files the tools read (stills, voice). Any project works. make.pyremembers the account and project in~/.config/graphed/ai-story-shorts.json.--account/--projectorGRAPHED_ACCOUNT/GRAPHED_PROJECTwin over the saved choice.
1. Pick the story and check the facts
Ask for: the story or topic, the length (default 30–40 s), and whether they have a reference video for the look.
- If they give only a topic or a person, give 3–5 story ideas first, each with a title ("He [did X] for [Y]" or "How [someone] [outcome]") and a one-line hook. Wait for a pick.
- Find out who the person is before you write. If you cannot find a public figure by that name, say so and ask. Never make a short about a private person or a real living person. Historical figures who have died are fine as caricatures.
- Check every fact with a web search. Keep a list of what you confirmed and what sources disagree on, and tell the user. If sources disagree on a number or a date, leave it out of the script or say it loosely ("the late fifties").
2. Write the script
- Open in the middle of the strangest moment, in the present tense, in one line. Then who this is, what they wanted, the turn, the twist, and one closing line that lands the point.
- Short sentences, about 3.5 words a second: a 35-second short is about 120 words.
- Spell out numbers ("nineteen fifty-one", "six thousand dollars") so the voice reads them correctly.
Show the user the script, three titles and the fact notes. Wait for a yes.
3. Write story.json
Make a folder for the short (for example shorts/<slug>/) and write story.json in it. See examples/rolls-royce-clock/story.json for a complete one.
Rules:
- Characters: design an original cast for each story. Give each lead one strong silhouette and one feature you could spot across a room (a huge moustache, a top hat, a pipe). Vary the builds. Never copy a character from a reference video or another channel.
- Shots: one shot per clause, about one every 2 seconds, 14–18 shots for 35 seconds. Rotate close-up, wide, prop insert and reaction, and never use the same framing twice in a row. Put a second person reacting in at least a quarter of the shots.
at: the first words of the clause where the shot starts, exactly as they appear in the script. The first shot always starts at 0. Do not start anatwith a number: the transcript writes "38", not "thirty-eight". The run stops and names the shot if it cannot find the words.ch: the character keys in the shot. Those characters' model sheets are sent with the prompt. Leave it empty when the shot has no lead.st:ext(day outside),int(inside) ornight. It picks the style frames.img: describe the frame: who, the expression, the pose, the set, the light. Everything that is a noun in the script gets a visual. No words on screen.mov: the acting and the camera, one or two sentences ("His jaw drops and the pipe tumbles out. Camera: quick punch-in.").sfx: keep it minimal: 0–3 effects for the whole short, on the biggest beats. Bundled sounds:sting(shock),hit(impact, slap),stamp. Each is[words where it lands, sound, volume 0.2–0.45].
4. Estimate, then make the character sheets
Tell the user the estimate before any paid step. sheets makes one model sheet per character (GPT Image 2.5, about 7 credits each) in sheets/. Show them to the user. If a design is wrong, change its description in story.json, delete that sheet, and run sheets again.
5. Run
This runs in order: voice (MiniMax via fal) → word times (graphed:transcription) → shot times → stills → clips (4 shots at a time) → music (ElevenLabs via fal) → edit. It takes 15–30 minutes. Run it in the background and tell the user it is working.
- Finished steps are cached. If anything fails, run the same command again: it only redoes what is missing.
--res 720pfor sharper clips (about 2.2× the Seedance cost).--parallel Nto change how many shots run at once.
6. Check it before you hand it over
Open out/contact-sheet.jpg (a frame every 2 seconds) and look at every frame:
- A character from the style references or a reference video showing up in a new shot. This is the most common failure. Remake the shot with
redo, and in itsimgdescribe the person's look in more detail, or add "<X> is NOT in this shot". - Text or letters on screen, a lead who looks different from his sheet, or a shot that does not match its line.
redo deletes those shots' stills and clips, makes them again, and re-edits. Each redone shot costs about 50 credits at 480p.
Tell the user what came out weaker than planned and give them the MP4 path: shorts/<slug>/out/<slug>.mp4.
Using a reference video
If the user gives a video in the style they want, look at frames from it, but do not send its frames to GPT Image as style references when people are in them: the model copies those people into new shots. The bundled style/ frames have no main characters on purpose. You can describe the look you see in img instead.
Known limits
- GPT Image rate-limits at about 30 calls at once ("call frequency is too high"). The script retries with a back-off. Do not run more than about 20 shots across all shorts at the same time.
- Seedance on BytePlus sometimes answers "Internal Server Error" for a still with many people in it. The script then uses the same model on kie. Failed runs bill nothing.
- First-frame Seedance needs the
adaptiveratio; a fixed 9:16 is refused. The stills are already 9:16. - Storage links last at most 1 hour, so the script uploads and signs each still right before its clip.
- A shot shorter than 4 seconds still renders 4 seconds of video (the minimum), so many very short shots raise the cost.
- Captions use Arial Rounded Bold on a Mac and DejaVu Sans Bold on Linux.
Requirements
| Need | Install |
|---|---|
| Graphed CLI, logged in, with credits | npm install -g @graphed-inc/cli · graphed login |
| Python 3 with numpy and pillow | pip3 install numpy pillow (the script checks before any paid call) |
| ffmpeg + ffprobe | brew install ffmpeg |
About Graphed
Graphed is a marketing cloud. It includes the infrastructure for an agent to do marketing: a data warehouse, data pipelines, a Postgres database, cron jobs, runtime servers, a tool catalog, custom domains, and internal app tooling.