Consistent Character AI Video: Keep One Face Across Clips
Consistent character AI video by API: keep one person, product or mascot across clips with identity references or first frames, plus Python code.
Updated 5 min read
The way to make consistent character AI video is to show the model the character in every request instead of describing them again. By API there are two ways: reference pictures in identity mode, which tell the model who stars while the prompt says what happens, or a first frame made from one character sheet, which fixes how each shot starts. On Frameport, video models such as Seedance 2.5, Seedance 2.0, Frameport Motion 1, Wan 3.0 and Hailuo 3 take both.
This guide explains why characters drift, how each method works in a request, which models take what, and a three-step pipeline in Python: sheet, frames, clips.
Why characters drift between clips
Each clip is generated on its own. A description such as "a woman with short copper hair and a green jacket" fits many faces, and the model picks one each time; hair, clothes and proportions move the same way. Repeating the same words helps a little, a fixed seed (on the models that take it) only repeats the same random start, and neither tells the model who the character is. Pictures do.
Reference pictures in identity mode
With reference_mode: "identity", the pictures in reference_images are not frames: they show the people, products or places to keep, and the prompt says what happens. Name each picture in the prompt by its place in the list:
{
"model": "seedance-2-5",
"prompt": "The woman from the first picture walks her dog, the dog from the second picture, along a beach at dusk, handheld, waves and gulls",
"reference_images": ["https://example.com/mara.jpg", "https://example.com/dog.jpg"],
"reference_mode": "identity",
"duration": 8,
"resolution": "720p",
"aspect_ratio": "9:16"
}A few rules hold for every model:
- Each model takes up to its own number of pictures, listed as
options.max_reference_imagesinGET /v1/models. - Some render identity references at fewer resolutions than their own, listed as
options.identity_resolutions. Frameport Motion 1 takes them at 768p and 1080p. - An
end_imagedoes not go with identity mode, whose pictures are references, not frames. - Clear pictures with one subject each work best: a well-lit face, the full outfit, the product on a plain background.
Pictures can be public https URLs, uploads (upl_…) or earlier image outputs of your workspace by their file id (file_…). That last form is what lets the pipeline below run without hosting anything.
First frames from one character sheet
The other way fixes the first frame. Send a single picture in reference_images (the default reference_mode is frame) and the clip starts on it; add end_image to land on a second picture. The prompt then describes the motion only, since the frame already sets the subject and the scene.
The frames come from an image model that takes references, so every frame shows the same character. Frameport Image 3 makes clean photoreal portraits and takes up to 4 reference pictures to hold a face, at $0.025 an image, so a sheet of four portraits is $0.10. Frameport Image 1 takes up to 10, so a character, an outfit, a product and a place can ride into the same render, at $0.025 an image plus a little for each reference after the first. Nano Banana Pro also takes up to 6 reference pictures and edits by instruction. The quote shows every price before a run.
Frames give the most control over each shot's look; identity mode gives the model more freedom over the scene. The two mix well: frames for the key shots, identity references for the rest.
Which video models take identity references
| Model | Reference pictures | Resolutions in identity mode | Last frame | Identity mode from |
|---|---|---|---|---|
| Seedance 2.5 | Up to 4 | 480p and 720p | Yes | $0.12 / s |
| Seedance 2.0 | Up to 4 | 480p, 720p, 1080p and 4K | Yes | $0.08 / s |
| Frameport Motion 1 | Up to 4 | 768p and 1080p | Yes | $0.06 / s |
| Wan 3.0 | Up to 3 | 480p, 720p and 1080p | No | $0.06 / s |
| Hailuo 3 | Up to 3 | 2K | Yes | $0.15 / s |
Veo 3.1, Seedance 2.0 Fast and Seedance 2.0 Mini take identity references too. Hailuo 3 adds a price for each picture you send; on the others in the table, pictures do not change the price of the clip. Send the body to POST /v1/generations/quote to see the exact price first.
Third-party models apply their makers' policies, and some may refuse realistic faces as references, even of invented people; a refused request costs nothing. On Frameport Motion 1, our own engine, the acceptable use policy is the rule: invented characters, or real people who agreed, and nothing involving minors. Pick a model whose policy fits your project; working around a model's refusal is not allowed.
How Seedance 2.0 holds a recurring character is covered in the Seedance 2.0 API guide.
A consistent character AI video pipeline in Python
The script makes a hero portrait, builds a frame per shot around it, then animates and saves each frame. Every step passes file ids from the step before, so nothing needs hosting, and each request's Idempotency-Key is a hash of its body, so running the script again within 24 hours gives back the same takes instead of paying for them twice (change a prompt to get new ones):
import hashlib
import json
import mimetypes
import os
import time
import requests
API = "https://frameport.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"}
def run(path: str, body: dict) -> list:
"""Submits, waits, and returns the outputs that succeeded."""
key = hashlib.sha256(f"{path} {json.dumps(body, sort_keys=True)}".encode()).hexdigest()
res = requests.post(f"{API}/{path}", headers={**HEADERS, "Idempotency-Key": key}, json=body)
if not res.ok:
raise RuntimeError(res.json()["error"]["message"])
gen = res.json()
while gen["status"] in ("queued", "running"):
time.sleep(3 if path.startswith("images") else 10)
gen = requests.get(f"{API}/generations/{gen['id']}", headers=HEADERS).json()
if gen["status"] == "failed":
raise RuntimeError(gen["error"]["message"])
return [output for output in gen["outputs"] if output["status"] == "succeeded"]
CHARACTER = "Mara, a woman in her thirties with short copper hair, freckles and a green canvas jacket"
# 1. The sheet: four takes of a portrait; keep the one you like (here, the first)
hero = run("images/generations", {
"model": "fp-image-3",
"prompt": f"Portrait of {CHARACTER}, soft window light, 85mm, plain background",
"n": 4,
"aspect_ratio": "3:4",
})[0]["id"]
# 2. The frames: one per shot, the same face from the hero portrait
shots = [
"standing at a rainy bus stop at night, neon reflections, medium shot",
"reading a map at a mountain viewpoint at sunrise, wide shot",
]
frames = [run("images/generations", {
"model": "fp-image-1",
"prompt": f"The woman from the picture, {CHARACTER}, {shot}",
"reference_images": [hero],
"aspect_ratio": "9:16",
})[0]["id"] for shot in shots]
# 3. The clips: each starts on its frame, then is saved next to the script
for number, frame in enumerate(frames, start=1):
clip = run("videos/generations", {
"model": "fp-motion-1",
"prompt": "She looks up and smiles, slow push-in, ambient street sound",
"reference_images": [frame],
"duration": 5,
"resolution": "768p",
"aspect_ratio": "9:16",
"max_cost_usd": 0.3,
})[0]
name = f"shot-{number}{mimetypes.guess_extension(clip['content_type']) or '.mp4'}"
with requests.get(clip["url"], stream=True) as video:
video.raise_for_status()
with open(name, "wb") as out:
for chunk in video.iter_content(chunk_size=1 << 20):
out.write(chunk)
print("saved", name)At these settings each clip is $0.30, with sound on or off at the same price, and each frame $0.025. To switch to identity mode, replace step 3's reference_images with the hero portrait and a full-body frame, add "reference_mode": "identity", and describe the whole scene in the prompt. The video generation API in Python adds quotes, webhooks and error handling, and the videos reference has every field.
When the clip already exists and only the person should change, a character swap is the shorter road. For the stills that start the pipeline, the consistent character image API guide builds the reference pack and the sheet. How identity pictures differ from a first frame is explained in what is reference to video.
FAQ
How do I keep the same character in every AI video clip?
Send pictures of the character with each request: either as identity references (reference_mode: "identity"), or as the first frame of each shot, made with an image model from one hero portrait. A text description alone changes from clip to clip.
Is there a consistent character API for Python?
Any HTTP client works: the script above uses requests and the same API as every other model. The image and video steps share one key and one balance.
Is there a free consistent character API?
Creating a key, listing models and quotes cost nothing here, and there is no subscription. Images and clips are paid from a prepaid balance, only when they succeed: a portrait is $0.025 on Frameport Image 3, and a five-second clip from a first frame on Frameport Motion 1 at 480p is $0.10, enough to test the method before you scale it.
Can I use my own face as a reference?
Your own face, or the face of someone who agreed, fits the acceptable use policy; real people without their consent never do. Some third-party models may refuse realistic faces as references whatever the source, and a refused request costs nothing.
How many reference pictures can I send?
It depends on the model: up to 4 on Seedance 2.5, 4 on Frameport Motion 1, 3 on Wan 3.0 and 3 on Hailuo 3. For the frames, Frameport Image 1 takes up to 10.
Does this work for a product or a mascot?
Yes. Identity references can show any subject to keep: a product, a mascot, a place. Shoot the product on a plain background, and name it in the prompt ("the bottle from the second picture").