Storyboard to Video AI: From Frames to Shots by API
Storyboard to video AI by API: each panel as a first frame, the next as a last frame, characters held with references, a shot list in code, one cut.
Updated 6 min read
Storyboard to video AI turns each panel of a board into a shot: the panel becomes the clip's first frame, a prompt says what moves, and the shots are cut together in the board's order. On Frameport that is one request per shot to POST /v1/videos/generations, on models such as Seedance 2.5, Veo 3.1 and Frameport Motion 1. A storyboard is already a shot list; this guide turns it into data, renders it, and assembles the cut.
How storyboard to video AI maps a board onto requests
| On the board | In the request |
|---|---|
| A panel | reference_images, one picture: the first frame |
| The panel the shot moves to | end_image, the last frame, on models that take one |
| Arrows and notes: the camera, the action | prompt |
| The timing in the margin | duration |
| The frame's shape | aspect_ratio |
| The cast | The same character in every frame, or identity references |
Frames as first frames
A clip opens on the picture you send, so a pencil panel gives a pencil shot. For shots that look like the film, turn each panel into a finished frame first, with an image model that edits by instruction. Frameport Image 1 takes up to 10 pictures and Nano Banana Pro up to 6, so the panel and a picture of the character go in together:
{
"model": "fp-image-1",
"prompt": "Turn this storyboard sketch into a photoreal film still, following its lines, shapes and composition exactly. The keeper from the second picture climbs a spiral iron staircase inside a lighthouse at night, lamp light from above, rain on the windows",
"reference_images": ["upl_2Lm8TqW4nXc7Rk1PbV9dZs", "file_5Hd3QwK8vTn2Lc6Rm9YbXp"],
"aspect_ratio": "16:9",
"n": 2
}Make each frame in the shape the clip will have: Frameport Image 1 renders 1:1, 3:4, 4:3, 9:16 and 16:9. Each output comes back with a file_… id, which goes straight into the video request as the first frame, with nothing to download or host. In the Studio, the Sketch to render app does the same step without code.
With the frame set, the prompt has one job: what moves. The subject, the set and the light are already drawn, so spend the words on the action, the camera and the sound: "the keeper climbs toward the lamp, the camera rising with her, boots ringing on iron". Camera movement prompts has the vocabulary for the camera part.
When a shot travels from one panel to the next, a dolly from the door to the desk or a door that swings open, send the second panel as end_image. Seedance 2.5, Veo 3.1, Hailuo 3 and Frameport Motion 1 land on it; Wan 3.0, Runway Gen-4.5 and Grok Imagine take a first frame only. A model's options.end_frame in GET /v1/models says which, and the first and last frame guide shows the request in full. For a single picture, the image to video API guide compares every model.
Characters that hold from shot to shot
Each clip is generated on its own, so a character described in words drifts from shot to shot. Pictures hold it, in two ways:
- The same character in every frame. Make a character sheet once, then pass it as a reference to every panel you render, as in the request above. Every first frame then shows the same face and costume, and the video model only has to keep what it is shown.
- Identity references. With
"reference_mode": "identity", the pictures are not frames but the people, products or places to keep, and the model builds the shot around them: up to 4 on Seedance 2.5, 3 on Veo 3.1 and 4 on Frameport Motion 1. This suits shots the board only sketches loosely, a crowd or a chase. Identity pictures do not combine withend_image, and they replace the first frame rather than add to it (references).
For a continuous action across a cut, take the last frame of one shot as the first frame of the next. That chains the two: render the first, then send the second.
ffmpeg -y -sseof -0.5 -i shots/02.mp4 -update 1 frames/03.pngConsistent character AI video goes further into sheets and references, and what reference to video means explains identity pictures model by model.
The shot list as data
Keep the board in a file: one entry per shot, with its frames, its prompt and its length. A frame can be a local file, an https URL or the file_… id of a frame you rendered.
{
"pass": "lighthouse-draft-1",
"model": "seedance-2-5",
"resolution": "480p",
"aspect_ratio": "16:9",
"shots": [
{ "id": "01", "frame": "frames/01.png", "duration": 5,
"prompt": "Slow push-in on the lighthouse as the storm rolls in, rain hissing on the rocks" },
{ "id": "02", "frame": "file_5Hd3QwK8vTn2Lc6Rm9YbXp", "end": "frames/02-end.png", "duration": 6,
"prompt": "The keeper climbs the spiral stairs toward the lamp, the camera rising with her, boots ringing on iron" },
{ "id": "03", "frame": "frames/03.png", "duration": 5,
"prompt": "She lights the lamp and the beam sweeps out over the waves, a low hum, wind" }
]
}The script prices the whole board first, asks before spending, then renders every shot and saves it under shots/:
import json
import os
import sys
import time
import requests
API = "https://frameport.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"}
board = json.load(open(sys.argv[1]))
def picture(ref):
"""A file_ id or an https URL goes as is; a local file is uploaded first."""
if ref.startswith(("file_", "https://")):
return ref
with open(ref, "rb") as file:
res = requests.post(f"{API}/uploads", params={"filename": os.path.basename(ref)},
headers={**HEADERS, "Content-Type": "image/png"}, data=file, timeout=120)
res.raise_for_status()
return res.json()["id"]
# 1. One body per shot, each priced before anything runs
bodies, total = {}, 0
for shot in board["shots"]:
body = {
"model": shot.get("model", board["model"]),
"prompt": shot["prompt"],
"duration": shot["duration"],
"resolution": board["resolution"],
"aspect_ratio": board["aspect_ratio"],
"reference_images": [picture(shot["frame"])],
}
if shot.get("end"):
body["end_image"] = picture(shot["end"])
quote = requests.post(f"{API}/generations/quote", headers=HEADERS, json=body, timeout=30).json()
if quote.get("error"):
raise SystemExit(f"shot {shot['id']}: {quote['error']['message']}")
bodies[shot["id"]] = {**body, "max_cost_usd": quote["price_usd"]}
total += quote["price_usd"]
print(f"shot {shot['id']}: {quote['breakdown']}")
print(f"{len(bodies)} shots, {total:.2f} USD in all")
if input("Render the board? [y/N] ").strip().lower() != "y":
raise SystemExit("nothing sent")
# 2. Submit every shot; the key makes a rerun of the same pass safe
pending = {}
for shot_id, body in bodies.items():
gen = requests.post(f"{API}/videos/generations", json=body, timeout=60,
headers={**HEADERS, "Idempotency-Key": f"{board['pass']}-{shot_id}"}).json()
if gen.get("error"):
raise SystemExit(f"shot {shot_id}: {gen['error']['code']}: {gen['error']['message']}")
pending[gen["id"]] = shot_id
# 3. Wait, then save each shot under its board id
os.makedirs("shots", exist_ok=True)
while pending:
time.sleep(5)
for gen_id, shot_id in list(pending.items()):
gen = requests.get(f"{API}/generations/{gen_id}", headers=HEADERS, timeout=30).json()
if gen["status"] in ("queued", "running"):
continue
del pending[gen_id]
if gen["status"] == "failed":
print(f"shot {shot_id} failed, nothing charged: {gen['error']['message']}")
continue
with requests.get(f"{API}/generations/{gen_id}/content", headers=HEADERS, stream=True, timeout=300) as res:
res.raise_for_status()
with open(f"shots/{shot_id}.mp4", "wb") as out:
for chunk in res.iter_content(1 << 20):
out.write(chunk)
print(f"shot {shot_id} saved, charged {gen['cost_usd']}")- The quote is free.
POST /v1/generations/quotetakes the same body and holds nothing; its price becomes each shot'smax_cost_usd, so no shot can cost more than the script showed (quotes). A shot a model would refuse, such as an end frame on a model without one, fails here too, before anything is spent. - One pass, one name. The
Idempotency-Keymakes a rerun after a crash return the same shots instead of rendering them again. Changepassfor each new round: a changed body sent under an old key answers409 idempotency_conflict(idempotency). - Long boards go in waves. Up to 20 generations run at once per workspace; past that, the API answers
429withRetry-After(rate limits).
Assembly: cutting the shots together
With the shots saved under their board ids, ffmpeg joins them in order:
for f in shots/*.mp4; do echo "file '$f'"; done > shots.txt
ffmpeg -f concat -safe 0 -i shots.txt -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a aac animatic.mp4- One model and one setting per pass. The join works when every shot has the same resolution, aspect ratio and sound setting, which is the case when one model renders the whole board. Shots from several models go into an editor, which conforms them.
- Room to cut. Render a shot a second longer than the board says, where the model's lengths allow, and choose the cut point in the edit.
- Sound across cuts. Each clip's sound is its own, so it changes at every cut. For an animatic, lay a temp track or a voice-over across the whole cut. On Seedance 2.5 and Frameport Motion 1, turning sound off changes nothing in the price; on Veo 3.1,
"audio": falsemakes drafts cheaper.
Draft the board at a low resolution, then render the shots you keep again at full size, with the same frames and prompts. A minute of shots costs:
| Model | Draft | Final |
|---|---|---|
| Seedance 2.5 | $7.20 at 480p | $16.20 at 720p |
| Frameport Motion 1 | $1.20 at 480p | $4.80 at 1080p |
| Veo 3.1 | $14.10 at 720p, silent | $27.90 at 1080p, with sound |
Every take counts, so a shot rendered twice costs twice; a clip that fails costs nothing. To try a shot before scripting the board, open Seedance 2.5 in the Studio. The panels reach the API as described in upload image to API.
FAQ
What is storyboard to video AI?
It turns the panels of a storyboard into video shots: each panel is the first frame of a clip, a prompt describes the motion, and the clips are cut together in the board's order.
Can one request render the whole storyboard?
No. Each request makes one clip, so a board is a list of requests, one per shot, cut together afterward. Seedance 2.5 runs up to 30 seconds in one take, which fits a scene the board plays as a single shot.
Which AI video models take a first and a last frame?
Seedance 2.5, Veo 3.1, Hailuo 3 and Frameport Motion 1, among others. options.end_frame in GET /v1/models says it for each model.
How do I keep the same character in every shot?
Render every frame with the same character sheet as a reference, or send pictures of the character as identity references on a model that takes them. Words alone let the face drift.
Is there a free storyboard AI generator?
The account, the API key and quotes are free, and a shot that fails costs nothing. Frames and clips are paid from a prepaid balance, and drafting at 480p keeps the cost of a first pass low (pricing).
Can I turn a storyboard into video without code?
Yes. In the Studio, Sketch to render turns a panel into a frame, Use as start frame sends it to the Video tab, and Frame to frame renders the move between two panels.