Wan 3 0 prime reference to video

From genmedia-labs/skills · View interactive version

Wan 3 0 prime reference to video is an AI agent skill from the GitHub repository genmedia-labs/skills. Build video clips from reference images, reference videos, and reference audio with Wan-AI Wan 3.0 Prime Reference to Video on RunComfy. Up to 10 reference images, 5 reference videos and 5 reference audio clips are bound to a prompt that names them as "Image 1", "Video 1", "Audio 1", giving characte

How to use this skill

Skill file

Wan 3.0 Prime Reference to Video

runcomfy.com · Wan 3.0 Prime Reference to Video · CLI docs

Wan-AI Wan 3.0 Prime Reference to Video — build a clip from a prompt plus image, video and audio references, on the fast Prime tier (wan3.0-video-prime) — hosted on the RunComfy Model API.

npx skills add genmedia-labs/skills --skill wan-3-0-prime-reference-to-video -g

When to pick this model (vs siblings)

The distinct thing here is numbered reference binding: you attach up to 10 images, 5 videos and 5 audio clips, then address them in the prompt as Image 1, Video 1, Audio 1. That is what holds a character's face, a product's shape, or a location's look steady across the shot — and it is why this endpoint exists separately from plain text-to-video.

| You want | Use |

|---|---|

| Same character / product / set across a shot, driven by references | Wan 3.0 Prime Reference to Video |

| Many references at once (10 images + 5 videos + 5 audio) | Wan 3.0 Prime Reference to Video |

| A clip longer than 15s (up to 30s) with references | Wan 3.0 Prime Reference to Video |

| Prompt only, no reference media | Wan 3.0 Prime text-to-video |

| Animate one still, optionally to a last frame | Wan 3.0 Prime image-to-video |

| Lip-sync to a voiceover track you already have | Wan 2.7 (audio_url) |

| Cinematic multi-modal short-form with in-pass speech | Seedance 2.0 Pro |

| Open-weights reference-to-video alternative | MiniMax H3 Open reference-to-video |

If the user said "Wan 3 Prime", "Wan 3.0 Prime", "reference to video" or "ref2v" explicitly, route here regardless.

Prerequisites

  1. RunComfy CLI — npm i -g @runcomfy/cli (or npx -y @runcomfy/cli --version)
  2. RunComfy account — runcomfy login opens a browser device-code flow.
  3. CI / containers — set RUNCOMFY_TOKEN=<token> instead of runcomfy login.
  4. At least one reference — publicly fetchable HTTPS URLs for the images / videos / audio you attach.

Endpoint + input schema

`wan-ai/wan-3.0-prime/reference-to-video`

| Field | Type | Required | Default | Notes |

|---|---|---|---|---|

| prompt | string | yes | — | Up to 20,000 chars. Scene, subject, motion, camera, lighting, style. Name references as Image 1, Video 1, Audio 1. |

| reference_images | array | conditional | example image | Up to 10. Subject / object / scene consistency. |

| reference_videos | array | conditional | [] | Up to 5, MP4 or MOV, 1–15s each, 15s total. Motion or scene guidance. |

| reference_audios | array | conditional | [] | Up to 5, 15s total. Guides sound or timing. |

| resolution | enum | no | 720p | 480p, 720p, 1080p. |

| aspect_ratio | enum | no | 16:9 | adaptive, 16:9, 9:16, 1:1, 4:3, 3:4. |

| duration | int | no | 5 | 2–30 whole seconds. |

| prompt_extend | bool | no | true | Model rewrites your prompt for richer detail. Off = literal + faster. |

| enable_audio | bool | no | true | Output carries a synchronized audio track. Off = silent clip. |

| seed | int | no | random | 0–2147483647. Reuse for reproducible variants. |

At least one of reference_images, reference_videos, reference_audios must be supplied — this endpoint rejects a prompt-only call. If the user has no reference media, route to Wan 3.0 Prime text-to-video instead.

Pricing — counted seconds, not wall-clock

Billing is per counted second = output duration plus the combined duration of every reference video you attach. Reference images and reference audio are not billed as duration, and toggling enable_audio does not change the rate.

| Resolution | Rate per counted second |

|---|---|

| 480p | $0.0624 |

| 720p | $0.124 |

| 1080p | $0.249 |

Worked examples: a 5s 720p clip with image references only = 5 counted seconds ≈ $0.62. The same clip with a 10s reference video attached = 15 counted seconds ≈ $1.86. A 30s 1080p clip with no reference video ≈ $7.47.

Two consequences worth telling the user before a big run: trim reference videos to the shortest clip that carries the motion, and draft at 480p (about 4× cheaper per second than 1080p) before committing to the final render. The figure shown before submit is an estimate — reference clips are measured after the run, so the final charge settles then.

How to invoke

Default (image reference, 5s, 720p, 16:9, audio on):

runcomfy run wan-ai/wan-3.0-prime/reference-to-video \
  --input '{
    "prompt": "Image 1 walks slowly through a sunlit botanical garden, pauses beside a glass pavilion, then turns toward the camera with a relaxed smile; soft dappled light, gentle handheld motion, cinematic.",
    "reference_images": ["https://.../subject.webp"]
  }' \
  --output-dir <absolute/path>

Cheap draft pass (480p, short, literal prompt):

runcomfy run wan-ai/wan-3.0-prime/reference-to-video \
  --input '{
    "prompt": "Image 1 rotates slowly on a marble pedestal, a highlight sweeps across the glass, soft studio bokeh behind.",
    "reference_images": ["https://.../perfume-bottle.jpg"],
    "resolution": "480p",
    "duration": 3,
    "prompt_extend": false
  }' \
  --output-dir <absolute/path>

Multi-modal (images + motion reference + audio reference), vertical, silent-safe:

runcomfy run wan-ai/wan-3.0-prime/reference-to-video \
  --input '{
    "prompt": "Image 1 wearing the jacket from Image 2 crosses the rain-slick street from Video 1; camera dollies forward, neon reflections shimmer. Match the pacing of Audio 1.",
    "reference_images": ["https://.../actor.jpg", "https://.../jacket.jpg"],
    "reference_videos": ["https://.../street-plate.mp4"],
    "reference_audios": ["https://.../rhythm-ref.mp3"],
    "aspect_ratio": "9:16",
    "duration": 8,
    "resolution": "1080p",
    "seed": 12345
  }' \
  --output-dir <absolute/path>

The CLI submits the request, polls it, fetches the result, and downloads *.runcomfy.net / *.runcomfy.com URLs into --output-dir. Ctrl-C cancels the remote request before exit.

Prompting — what actually works

Name your references by number. Image 1, Video 1, Audio 1 follow the array order you passed. This is the whole point of the endpoint: "Image 1 stands beside the counter" beats a paragraph describing the person's face, and it beats "the man in the reference" when more than one reference is attached.

Split stable identity from evolving action. Face, costume, product geometry, brand mark, set → references. Motion, camera, mood, lighting, weather → prompt. Describing a stable identity in prose burns characters and drifts.

Front-load the shot grammar. "Slow forward push", "camera dollies forward", "slow subtle push-in", "handheld", "seen from above" all land as directives. Then state one primary action, not four competing ones.

prompt_extend is on by default. Short prompts get auto-enriched, which usually helps. Turn it off when the prompt is already precise, when brand copy must stay verbatim, or when you want a shorter turnaround.

Ladder the duration. Lock motion at 2–5s, then raise toward 30s once the shot reads right. Duration is the main cost multiplier alongside resolution.

aspect_ratio: "adaptive" lets the output follow the reference framing instead of forcing 16:9 — useful when the references are already vertical or square.

Anti-patterns:

Sample prompts (from the model's own example set)

A rugged Atlantic coastline at sunset seen from above; slow forward push
as waves roll onto dark rocks, warm clouds drift across the sky, soft
golden light, cinematic, smooth motion.
A rain-slicked European city street at night, neon signs reflecting in the
wet cobblestones; the camera dollies forward as a tram glides past,
reflections shimmer, moody cinematic lighting.
A luxury perfume bottle on a marble pedestal; it rotates slowly as a
highlight sweeps across the glass, soft studio bokeh behind, clean
premium product look, subtle motion.

Where it shines

| Use case | Why this model |

|---|---|

| Character continuity across shots | Up to 10 image references, addressed by number |

| Branded product scenes | Product geometry held by reference, motion driven by prompt |

| Multimodal storytelling | Image + video + audio references in one call |

| Longer reference-guided clips | 2–30s, past the 15s ceiling of most siblings |

| Cost-tiered iteration | 480p drafts, 1080p finals, same prompt and seed |

Limitations

Exit codes

| code | meaning |

|---|---|

| 0 | success |

| 64 | bad CLI args |

| 65 | bad input JSON / schema mismatch (e.g. no reference supplied, duration out of 2–30) |

| 69 | upstream 5xx |

| 75 | retryable: timeout / 429 |

| 77 | not signed in or token rejected |

Full reference: docs.runcomfy.com/cli/troubleshooting.

How it works

The skill invokes runcomfy run wan-ai/wan-3.0-prime/reference-to-video with a JSON body matching the schema above. The CLI POSTs to the RunComfy Model API with the user's bearer token, receives a request id, polls until the request reaches a terminal state, fetches the result, and downloads any .runcomfy.net / .runcomfy.com URL into --output-dir. Ctrl-C cancels the in-flight request before billing.

Related skills

Security & Privacy

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.