By · · Updated

Consistent Characters via API: From Character Sheet to Reference Video

Keep the same face across images and video: a base portrait, a character sheet, reference-based scenes and a reference-to-video clip, each priced with a quote before it runs.

A blue cat in lime green sunglasses against a red and light blue background.Türkçe oku ↗

Keeping the same face across a series of images and videos is one of the most common problems in AI generation. No single model call solves it. A pipeline does: lock the look once, turn it into reference images, and feed those references into every image and video step.

This guide builds that pipeline with the Raywake API, which gives you 500+ image, video and audio models on one US dollar balance: a base portrait, a character sheet, new scenes from the sheet, and a reference-to-video clip. Every step is quoted first and runs only after you approve the price.

The idea: references, not adjectives

Text alone drifts. "Short black hair, small scar" means something slightly different to a model on every call. Images drift much less. So the pipeline turns words into pictures as early as possible, then keeps passing those pictures forward:

  1. Base portrait. One clear image of the character, generated or your own (with the person's consent).

  2. Character sheet. Front, three-quarter, profile and back views plus a few expressions, made from the portrait.

  3. Scenes. New images that take the sheet and the portrait as references.

  4. Video. A reference-to-video model that takes the sheet and a scene still.

Keep one fixed identity block of text and paste it, unchanged, into every prompt. References carry the face; the identity block reminds the model which details matter.

Step 1: base portrait

Nano Banana 2.1Nano Banana 2.1Nano Banana 2.1 by Google generates one to four images from a text prompt at 1K, 2K or 4K resolution.

Nano Banana 2.1 (google/nano-banana-2.1) generates one to four images from a prompt at 1K, 2K or 4K, with aspect_ratio and seed. Save the seed with the result so you can return to the same starting point. Use a plain background and even light: the cleaner the portrait, the better every later step reads it. Nano Banana 2.1 vs Nano Banana 2 compares it with the previous version.

Step 2: character sheet

Nano Banana 2.1 editNano Banana 2.1Nano Banana 2.1 by Google generates one to four images from a text prompt at 1K, 2K or 4K resolution.

The edit mode (google/nano-banana-2.1/edit) edits, combines or restyles one to fourteen reference images (image_urls) with a prompt. Give it the portrait and ask for a turnaround sheet on a plain background, with no text. A 16:9 aspect ratio at 2K gives each view enough pixels. Generate a few with num_images and keep the one where all views agree.

A generated output can go straight into the next step's image_urls. Output links are signed for 7 days; fetch the job again for a fresh link, and download anything you want to keep, since files are stored for 30 days (jobs and outputs).

Step 3: scenes from the sheet

Same model, new prompt, both references: image_urls: [sheet, portrait]. Describe the scene and end with the identity block plus an explicit "keep her face, hair, scar, jacket and earring exactly as in the reference images". When a scene drifts, change one thing at a time: the scene wording first, then thinking_level (minimal, medium, high) for complex compositions.

Other editors on Raywake take several references too, if you want to compare: GPT Image 2.5 Flare (openai/gpt-image-2.5/flare/edit, up to 16 images), MiniMax H3 Image (minimax/h3-image/edit, up to 16) and Seedream 5.5 (bytedance/seedream/v5.5/edit, up to 10).

Step 4: reference-to-video

Veo 3.1 Fast reference-to-videoVeo 3.1 FastFaster and more cost effective version of Google's Veo 3.1!

Veo 3.1 Fast reference-to-video (veo3.1/fast/reference-to-video) takes image_urls as "reference images to use for consistent subject appearance" and a prompt. It makes an 8-second clip at 720p, in 16:9 or 9:16. generate_audio is on by default: an 8-second clip costs $1.27 without sound and $1.91 with it. Pass the sheet and the scene still you want the clip to start from.

Other reference-to-video models on Raywake:

  • Veo 3.1 reference-to-video (veo3.1/reference-to-video), the non-Fast Veo 3.1 variant.

  • Gemini Omni Flash 1.2 reference-to-video (google/gemini-omni-flash/v1.2/reference-to-video): up to ten reference images and up to three reference videos, sent in list order before the prompt; 360p to 4K, 3 to 15 seconds.

  • MiniMax H3 reference-to-video (minimax/h3/reference-to-video): up to 9 images for subject and style, plus video and audio references, cited in the prompt as Image 1, Video 1 and so on.

For when to use reference-to-video versus first and last frames, see First and last frames vs reference-to-video. MiniMax H3 vs H3 Max for reference video and Seedance 2.5 reference video alternatives compare more reference-to-video options.

The whole pipeline in code

# Quote the reference-to-video step with your own reference URLs (a sheet and a scene still)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "veo3.1/fast/reference-to-video",
  "input": {
    "image_urls": ["https://cdn.your-studio.example/mara-sheet.png", "https://cdn.your-studio.example/mara-market.png"],
    "prompt": "Mara pulls off her helmet, glances at the camera and walks into the night market. Slow handheld follow shot, rain, neon light.",
    "aspect_ratio": "16:9",
    "generate_audio": false
  }
}'
# → {"quote_id": "...", "price_usd": "...", "expires_at": "..."}
# Approve the price, then POST /v1/generate with the same model, input and quote_id plus an Idempotency-Key.

The script stops at succeeded, failed or one of the held statuses. A held status such as submission_unknown can still turn into a success later, so check the job again before you run anything twice; jobs and outputs lists what each status means.

Recasting footage you already have

If you have a filmed clip and want your character in it, that is a different job: Raymotion (model ID rayjutsu) recasts the people in a 4 to 20 second video from one photo each, up to 8 characters, keeping the motion, lip sync, camera and sound as filmed. Its guidance asks for one image per character that shows them from several angles, which is what your character sheet is. Use only photos of people who have agreed to appear in the video. How to swap a character in a video with Raymotion walks through it step by step.

Prices

Prices from each Raywake model page, read on 1 December 2026. A price per second or per run is not the total for your input; the quote is the number that counts.

ModelStepPrice
google/nano-banana-2.1Base portrait$0.10 per run
google/nano-banana-2.1/editSheet and scenes$0.10 per run
veo3.1/fast/reference-to-videoVideo (8 s, 720p)$0.1585 per second without audio ($1.27 per clip), $0.2377 with audio ($1.91)
veo3.1/reference-to-videoVideoFrom $0.317 per second
google/gemini-omni-flash/v1.2/reference-to-videoVideoFrom $0.0433 per second at 360p; $0.1298 at 720p
minimax/h3/reference-to-videoVideo$1.03 per run with default options
rayjutsu (Raymotion)Recast footage, 720p$0.1427 per second

At these prices, one portrait, one sheet, one scene image and a silent 8-second Veo 3.1 Fast clip come to about $1.57 before retries (the script asks for two scene images, so its quote for that step is higher); the quotes give the exact figure. Everything runs on one USD balance across the studio, the API and the MCP server. Prefer to do this from Claude or Cursor? The MCP server exposes the same models, quotes every step and asks before it generates.

Read the API quickstart
← All articles