Summary note: This is a summary of Eian’s (@EianLu) long X post from 5 November 2026, “Claude code/Codex+Seedance AI视频:从一个想法到成片的全流程”, not a reprint of the original. Original link: https://x.com/eianlu/status/2118317430665613741

This article solves just one problem: how to use a multi-model workflow to make an AI video you are happy with, spending as little money as possible and with as low a re-roll rate as possible. It has two parts — the tools, and the hands-on process — with the focus on the latter: starting from one idea, step by step, all the way to a finished film, with the complete prompts included.

1. The Tools: Claude as Director-in-Chief

Three models are used: Claude Code, Codex, and Seedance, plus two tools, ffmpeg and Python.

The division of labour is as follows:

Role Responsible for
Me Choosing the direction, confirming the art style, approving spending; watching the motion, listening to the sound
Claude (director) Writing the story and storyboards, writing all the prompts, checking every image and every video clip, writing code for post-production
Codex (artist) Drawing the design sheets, sample frames, and the first and last frame of each shot
Seedance (animator) Turning the first and last frames into a few seconds of video

Claude is the director-in-chief, and the other two models are connected to Claude and called by it. That way, you only ever talk to Claude throughout — no switching windows, no copying and pasting everywhere. Without Claude, Codex can stand in instead; it can do all the same work, it’s just that the author finds Claude smarter and with better taste.

Connecting them is simple: once Claude and Codex are installed on your computer, just tell Claude to call Codex to generate images; for Seedance, register an account on Volcano Engine, apply for an API Key, and have Claude write the script and fill in the Key as required — the rest is up to it.

The core principle is to catch errors before they cost money: changing a few words in a prompt costs nothing, redrawing an image costs nothing extra, but regenerating a video is charged by the second. So a mistake that can be spotted in the text should not be left until the image stage; a mistake that can be spotted in the image should not be left until the video stage.

The Director-in-Chief Prompt (Key Points)

Before making a video, send Claude / Codex the following: make it the director-in-chief, responsible for the whole process, and the only one you talk to. Before starting work, do two things: first, ask about the film length, aspect ratio, total budget, and whether music and subtitles are needed; second, check whether Codex, ffmpeg, Python, and ARK_API_KEY are usable, and say what’s missing. Put all files in a newly created project folder.

Division of labour: Claude writes the story and storyboards, writes all the prompts, calls the other models, extracts and enlarges frames to check every image and every video clip, and uses ffmpeg and Python to write code for post-production; Codex is only responsible for drawing the design sheets, sample frames, and the first and last frame of each shot — Claude does not draw itself; if the conversation partner is Codex itself, use its own image-generation tool; Seedance turns the first and last frames into a few seconds of video; I am only responsible for choosing the direction, confirming the art style, approving spending, watching the motion, and listening to the sound.

How to call Codex: codex exec --skip-git-repo-check -s read-only -i 参考图.png - < 提示词.txt, with the prompt starting by stating that the image-generation tool should be used to generate only one image and no shell commands should be executed; the finished image is in ~/.codex/generated_images/<session id from the log>/.

How to call Seedance: POST https://ark.cn-beijing.volces.com/api/v3/contents/generations/tasks, with the Key in the environment variable ARK_API_KEY — don’t print it — and the request format as documented in the Volcano Ark docs. Choose the model doubao-seedance-2-5-260628 (720p, about ¥1.5/second) or doubao-seedance-2-0-mini-260615 (720p, about ¥0.5/second); prices are as billed.

There are 7 rules in total: don’t draw any images before the story is confirmed; don’t draw the formal shots before the art style is confirmed; before submitting a video generation, open a separate agent to review every detail of the prompt and the images — it only points out errors and doesn’t change files — and only submit after it passes, with a quoted price that you approve; if a video has a problem, first think about whether it can be fixed with code, and only re-shoot that one shot if it can’t; save each new version as a new file — don’t overwrite or delete old files; Claude can’t actually see real motion or hear sound, so anything it hasn’t seen or heard must be told to the user explicitly; don’t top up or buy credits — if the API returns an insufficient-balance error, stop and first do a rough cut of the clips you already have.

2. The Full Workflow, from One Idea to a Complete Video

1. From One Idea to a Complete Story

First tell the AI your initial idea or plot — it doesn’t need to be detailed — then talk it through with the AI and refine the story until the complete story and its through-line are finalised.

A good story should meet at least 5 standards:

  1. It follows real-world logic: interrogate every turn against reality — why would this happen, where did this thing come from, could someone actually reach it, would this really happen in real life — unless you deliberately don’t want real-world logic.
  2. You can say in one sentence what it wants to express: after writing it, ask yourself what this film is actually trying to say and which parts are designed best; if you can’t say it, the story is flat and needs changing.
  3. It has to grab people from the start: viewers may swipe away within seconds, so the most eye-catching shot should come first.
  4. Bystanders’ reactions have to feel like real people: write every joke or turn in 3 parts — the problem, how the protagonist solves it, and how the bystanders react. Reactions need to happen in sequence; several people raising their hands in the same second looks obviously model-made. Details have to be realistic too — for example, when a real person is startled, their body pulls back.
  5. The visuals have to be something AI can actually shoot: avoid the fixed weaknesses of AI video, including people crossing over each other, hands holding small objects, text, mirrors and reflections, asymmetrical left-right features, changing light within a single shot, one person doing three actions in a row, top-down shots where faces can’t be seen, and too many supporting characters — all of these are prone to re-rolls. For story structure, episodic is the safest choice, since shots don’t need to connect to each other; continuous storytelling is the most likely to break continuity, so the connections between each segment need extra care.

Key points for the corresponding prompt: tell the AI what film you want to make (one sentence, or a rough plot), the length, the music (song title, duration, BPM — delete this if there’s no music), and any reference films (write them if you have them, delete if not), and have it first flesh out the idea into a complete story, asking about anything unclear and discussing it together, and only moving on once it’s confirmed. Once the story is set, expand it into a shot-by-shot story that meets the 5 requirements above; if there’s music, align the turns with the chorus and the key actions with the strong beats.

Before the story is finalised, it’s strongly recommended to open a fresh agent to review it: the main agent has been chatting for a long time and will automatically fill in gaps in its head; a new agent knows nothing and is like a first-time viewer — anywhere it can’t follow is somewhere the story genuinely isn’t clear. Give it only the finalised story, and no other files. The same applies to the reviews in the steps that follow: give it only the story, not the conclusions, and have it read through it as required and give its verdict on changes.

Key points for the story-review prompt: have the new agent look at it for the first time, only pointing out errors, not changing files. First, read it in shot order only and write out the story as understood; then question each turn in order; judge whether what it wants to express can be said in one sentence; whether the opening grabs attention and the most eye-catching shot comes first; whether bystanders’ reactions feel like real people and happen in sequence; and which shots an AI video model is likely to get wrong. For each item, write the shot, the problem, and the suggested fix; write “可能” (“possibly”) where unsure, and end with “通过” (“pass”) or “不通过” (“fail”).

2. Storyboards: Setting the Shot Language, Composition, and Colour

This is the most important step in pre-production and determines the quality of the video — the author even thinks composition and colour matter more than the plot. Every shot must specify the shot size, camera position, camera movement, who walks in which direction (writing left and right as seen on screen), what expression drives it, and how it transitions to the next shot.

There are 6 specific requirements:

  1. Change the angle every shot: at most twice in the whole film should a shot be a straight-on, eye-level front view; the rest should use top-down, low-angle, from-behind, over-the-shoulder, or shooting-through-something framings — the more camera positions, the richer the picture.
  2. Something has to keep moving in the frame: a shot where the person stands still and nothing else moves looks like a still photo — the frame is dead. In most shots, it’s best for a person or object to walk in from outside the frame or walk out of it; in shots where the person doesn’t move, let something else move, like a sheet of paper drifting past or a passer-by walking behind. A fixed camera is harder to use, so people in the frame need to move even more — for example, walking from far away to close up. Don’t have several shots in a row at the same framing size; alternate between full-body, half-body, and facial close-ups.
  3. Every shot must state clearly what exactly is moving: the camera moving, the focus shifting from one person to another, the light changing, something drifting in front of the lens, a small movement by a character (like a trembling hand) — there must be at least one; if you can’t name even one, the shot hasn’t been thought through yet. But more movement isn’t always better — move where things should move and stay still where they should stay still, so there’s contrast.
  4. Camera movement needs a reason: if the camera moves, it must be because there’s something it wants to show the audience. The three most common reasons: following an object or person (for example, wherever a letter flies to, the camera follows); slowly pushing in for a close-up; or starting very close and then slowly pulling back.
  5. Every second’s freeze-frame should look good: pause the film at any second and the frame you get should look good. The simplest method is golden-ratio composition — place the person’s head or eyes at roughly 38% or 62% of the frame from left to right, rather than dead centre.
  6. Colour needs to be designed separately: don’t leave the colour palette to the model — decide it before drawing the first image, according to your own taste. Once the palette is designed, have Claude list the colours used in each scene in a separate colour table; finally, convert the picture to black and white and have Claude look at it — if the person and the background can’t be told apart in black and white, the light-dark contrast isn’t strong enough and the palette needs adjusting.

Key points for the storyboard prompt: write the finalised story as a storyboard table, one shot per row, specifying the time in the film (if there’s music, count by bars), the generation length in seconds (round the in-film duration up, and try to leave an extra 0.5 seconds where possible), shot size, camera position, camera movement, who walks in which direction (writing left and right as seen on screen), what expression drives it, what is moving in this shot, and how it transitions to the next shot. If there’s a reference film, first watch it frame by frame, measure the camera positions and the proportions of things entering and leaving the frame, and learn from and imitate it; if not, compose it yourself following the 6 requirements above. Decide the colour palette before drawing the first image, and list a colour table for each scene; finally, use code to draw a 1920×1080 colour-block sketch for each shot, marking the 38% and 62% positions and the main elements, assemble them into an overall table to confirm, and then convert them to black and white and check them once more.

3. Setting the Art Style and Drawing the Design Sheets

The art style is the drawing style of the animation — for example, Miyazaki-style hand-drawn, soft and warm colours, or a simple paper-cut style, a photorealistic style, or an American-animation hand-drawn line style. Having a reference image is best — just send it to the AI.

In this step, Claude writes the prompts and Codex draws; the user only has to look at whether it’s the style they want. Once the art style is set, draw a design sheet for each character and each fixed prop, usually front view, side view, and a few expressions — the equivalent of fixing how they look. Anything fixed on a character must have its position written out clearly — for example, a tattoo on the left arm — otherwise the tattoo’s position may differ in every subsequent image.

4. Producing the First and Last Frame Images for Each Video Clip

The first and last frames are the first and last images of each shot, and they are the most important step in lowering the re-roll rate. Generating video from text alone makes the model prone to logic errors; small objects like rain, hats, and tattoos that are only written in the text often vanish partway through a shot — they only stay put if they’re drawn in both the first and last frames.

Order of drawing: don’t start drawing straight away. First have the AI write out, for each shot, what the first frame shows, what the last frame shows, and what happens in between, and have the review agent approve it before drawing — that saves a lot of Codex quota. Draw the most content-heavy image first, which is usually the last frame, then modify the last frame to make the first frame, ensuring the two images have the same camera position and composition. For shots of the same location from the same camera position, modify the previous image directly instead of redrawing it — Codex supports local edits to an image. If the camera movement is set as a slow push-in, the last frame can be made by cropping and enlarging part of the first frame; if the first and last frames have exactly the same composition, the shot is effectively static, and the generated video will have no sense of progression. Codex’s images may not be exactly 16:9, so check them before submitting to Seedance, and have the AI crop them in advance if there’s a problem; the first and last frames must also be kept the same size.

First/last frame checklist (enlarge and look at every image; if there’s a problem, tell me which image and what’s wrong, and only change it once agreed): anything an action needs must already be in the first frame — for example, if someone is going to pick up a cup later, the cup has to be visible in the first frame, or it will appear out of thin air; other people’s reactions need to be staged in advance — one video clip is one shot and you can’t cut away to film someone else halfway through, so the first frame needs to arrange one person doing something in front and another behind, with their face towards the camera; when many people appear together, they can’t all be in the same pose, or the model will make everyone move at the same time; leave room for the action — the place where things need to land or drift to should be left empty in advance, and leave some space above people’s heads too; the wind direction has to be consistent — a scarf can’t be blowing to the left while a bedsheet blows to the right; shrink it down to phone size and look at it — people in the distance who are too small to see clearly need to be changed; enlarge it and check for extra things, like an extra kettle or a strange thin line; overlay the first and last frames to check for misalignment — things that shouldn’t change must be identical in both images, for example if the wall is a different colour, it will slowly change colour in the video, and if the cup is slightly bigger, it will slowly grow in the video.

Two things to note when editing images: even if Codex only changes a small area, it reprocesses the whole image, so when only a small area is changed, paste the changed part back onto the original image; when Codex’s quota runs out, wait for it to recover — don’t buy more quota, and don’t draw too many images at once.

5. Writing the Video Prompts and Reviewing Before Submitting

The author found that when a shot goes wrong, it’s often the prompt’s fault, not the model’s — so when something goes wrong, suspect the prompt first. It’s recommended to always use a fixed seven-part prompt structure, writing down what happens every second:

  • In one sentence, state the art style — the style, colours, and character design for the whole segment must be exactly consistent with the first and last frames.
  • The length of the segment in seconds, shot size, camera position, camera movement — if it doesn’t move, write “不推不拉不摇,不切镜” (“no push, no pull, no pan, no cut”).
  • Where the people and objects are in the frame, and what colour the walls and light are — they must match the first frame.
  • Each person’s appearance, clothes, and fixed props, written down definitively.
  • 0–0.2 seconds: the frame is completely still and exactly identical to the first frame; for each segment, write who does what, how their expression changes, where their hands are, what they must not touch, and which side of the frame they move towards; in the last 0.3 seconds, everyone stops completely and the frame is exactly identical to the last frame.
  • Only sounds with a visible cause; the characters don’t speak.
  • The frame always contains only the same people and objects as the first frame, faces and body shapes unchanged throughout, one continuous take, clean frame, no text, subtitles, or watermarks.

The mistakes models make most easily, and how to write for them (key points from the original’s table):

  • A group of people doing the same action at the same time: write clearly who goes first and who goes after, and don’t pose them identically in the first frame either.
  • Something the wind should have done, the person does with their own hands instead: write the cause clearly, then add that both hands never touch the parcel from start to finish.
  • Clouds, the moon, and plants growing eyes and mouths: don’t write “cartoon cloud” — write “fluffy grey-white cumulus clouds, with only cotton-like texture and shading”, and only write how they move.
  • A person walking in the opposite direction: write directions as seen on screen — walking towards the left of the frame, stepping through the shop door on the left.
  • A sentence with two possible meanings: write it more specifically, and add a qualifier like “the driver’s seat stays empty throughout”.
  • The number of objects changing: write the number out directly.
  • Writing “don’t do X” often doesn’t work: rephrase it as a positive statement wherever possible.
  • The model inventing its own use for a prop: simply don’t let that prop appear in a shot with action in it.
  • Something appearing out of thin air: only use things already in the first frame.
  • Something suddenly flying away or teleporting: write clearly how it moves.
  • Rain, hats, and tattoos vanishing partway through: draw them in both the first and last frames.
  • Lightning drawn too realistically: write “a flash of white light inside the clouds”, then cut the beginning off.
  • Too many actions in one shot makes it chaotic: write only one or two main actions per shot.
  • The timing of an action doesn’t match what was written: written times can only ever be approximate — leave extra time and align it to the beat later with editing and speed changes.
  • The camera doesn’t push in as noticeably as written: have Claude push it in a bit more later with code.
  • A person’s mouth moving on its own: state clearly that “人物不说话” (“the characters don’t speak”); if it still moves, fix it with code.
  • Music still getting mixed in even though “no music” was written (Seedance 2.5): don’t use the clip’s built-in sound — add sound separately in post-production.
  • The last few frames suddenly jumping to how the last frame looks (Seedance 2.5): in post-production, pick a frame that looks fine and freeze on it from there.
  • The first frame being unusually sharp (Seedance 2.5): just remove that frame.
  • The video getting darker and colder towards the end (Seedance 2.0 mini): colour-correct each video against its own first frame.

Before submitting each video, open a separate agent to check every detail of the prompt and the images against each other; only submit to Seedance once the review passes. The author used this method to catch many problems — for example, a cup differing in size by 13% between the two images, a hat brim present in one image and missing in the other, and left and right written the wrong way round — which is also why his re-roll rate is extremely low.

Key points for the pre-submission review prompt: have the review agent only read, not change anything — this shot is about to be submitted for video generation, and real money is being spent. The materials are the prompt file, the first frame, the last frame, the design sheets, the storyboard table, and the colour rules. Check each item, enlarging the images: does every sentence of the prompt match the two images; are the camera position, size, and background of the two images consistent; do they match the design sheets, the colour rules, and the shots before and after; are the actions realistic, is the cause of each action written, and where are the hands; where might the model go wrong. Finally, write only “通过” (“pass”) or “不通过” (“fail”); if it fails, list each thing to change.

6. Generating the Video

This step is all done automatically by the AI — there’s nothing to manage — but there are a few money-saving tips you can send to the AI: generate at 720p and upscale to 1080p in post-production; don’t shoot a dedicated test clip — shoot the first formal shot directly, and if it’s usable, you’ve saved money; try a new approach on one or two of the hardest shots first, and only submit everything once it works; think carefully about whether to use Seedance 2.5 — it costs roughly 3 times as much as 2.0 mini, so if the budget is tight, use 2.0 mini; the author feels that as long as the shot isn’t especially complex, 2.0 mini is more than enough; listen to the sound before using it — 2.0 mini’s built-in sound effects are often directly usable, while 2.5 sometimes mixes in music even when “no music” is written — don’t use that, and sound effects can be added separately in post-production.

If you find a problem, don’t re-shoot straight away — re-shooting costs money again. First check whether it can be dealt with: can it be cut out — if the problem is only in the first or last few frames, just cut them off; can it be fixed with code — have Claude try writing code to fix it, and only consider re-shooting if it can’t be fixed; if you do need to re-shoot, change the prompt or the first/last frame images first, otherwise shooting it again as-is will most likely go wrong in the same way. Don’t delete the old clip after re-shooting either — the new clip isn’t necessarily better than the old one; keep them all and pick from them at the end. They’re all clips you paid for, so use any that work.

7. Stitching, Transitions, Colour Grading, and Upscaling

Videos are generated clip by clip, so once they’re done they need to be stitched together, with transitions added, colour graded, and upscaled — it’s recommended to do all of this with code, and to have Claude do it.

Key points for the post-production prompt: for transitions, state clearly which shot goes to which shot and what is used to cover the screen or carry it across, with motion blur cut into 8–16 parts and a half-frame shutter; for colour grading, grade by story section, adjusting only saturation and brightness, not hue, with accent colours protected and skin tones unchanged, and no grain, glow, or vignetting added; decode Seedance mp4s as BT.601, use lossless formats for intermediate files, and deliver labelled BT.709; for upscaling, use 720p lanczos upscaling to 1080p with slight sharpening, and don’t interpolate frames across a whole segment; cut on the bars, measuring hit points only from the original song, never from an already-edited file. After finishing, spot-check the 3 frames either side of each cut.

8. Full-Film Review and Delivery

Open a fresh review agent, give it only the finished film, and tell it no conclusions — have it watch it from start to finish like a viewer. Then have the AI write a summary, saving the art style, the prompts, and the mistakes made, so the lessons from each video are preserved.

Key points for the full-film review prompt: this is the finished film, and the review agent is seeing it for the first time — it is not told any conclusions. Decode everything, take several full-resolution frames from each shot, and take 3 frames either side of each cut; first write out the story as understood, then list anything that doesn’t make sense; check each shot for repeated actions, prop counts, continuity errors, sudden jumps, colour jumps, face distortion, and text problems; state clearly what can’t be checked (the feel of the motion, the sound). For each item, write the time, frame number, and problem, split into “硬伤” (“fatal flaws”) and “小问题” (“minor issues”).

Finally: A Four-Agent Working Mode

For Claude or Codex — that is, the director — use four agents working together:

Role Responsible for
Main maker Responsible for all production
Reviewer Checks every step; before a video generation is submitted, it must write “通过” (“pass”)
Supervisor Lists everything I have said as a checklist, and watches whether anyone has forgotten anything
Agent (proxy) Makes decisions for me as I usually would, approving submissions within a budget I have agreed in advance

The other three agents are all sub-agents that Claude opens itself — just send it the prompt below.

Key points for the four-agent prompt: this film is made with four agents working together — the main maker opens three more sub-agents, and the four work together until the film is finished or the account runs out of balance. Everything I have said is in the conversation history or the requirements file; write the total budget clearly as an amount. The division of labour is: the main maker is responsible for all production; the reviewer opens a sub-agent that only points out errors and doesn’t change files, checks every step, and must explicitly write “通过” (“pass”) before a video generation is submitted; the supervisor opens a sub-agent that reads everything I have said and organises it into a requirements checklist, checking at every step whether anyone has forgotten a requirement, including the main maker; the agent (proxy) opens a sub-agent that reads everything I have said and organises it into my preferences — when the main maker and the reviewer are unsure, or when a video generation is to be submitted, it decides according to my preferences and states its basis and confidence; it may only approve submissions within the total budget, and if it goes over budget, it stops and waits for me. The order of cooperation is: after each step is finished, hand it first to the reviewer, then to the supervisor; if there’s a disagreement, hand it to the agent (proxy) to decide; record every decision and every cost in the review record, so I can overturn any decision when I come back. Don’t top up or buy credits — if the balance runs out, stop, and first do a rough cut of the clips you already have.

The author ends by saying that making videos is a very interesting thing, but making a film well is actually very difficult — he is still learning, and hopes this article is useful to readers.

Written byAuthor

Buy me a coffee~

Solana

Solana

Solana

Solana

Solana

Solana

Background music
Jump to comments
Settings
Back to top
Go to bottom
Collapse toolbox