@imageN reference not working in a Seedance prompt: ordering and content array pitfalls
An @imageN reference in a Seedance prompt fails when the token has no matching image in metadata.content[]. On RelayDance, reference media go in metadata.content[] of POST /v1/video/generations, and the prompt cites images as @image1 to @imageN. Make sure every token maps to an image you actually sent, the image count stays within the model limit (30 images on Seedance 2.5, 9 on Seedance 2.0), and the media sit inside metadata, not at the top level.
How does @imageN map to the content array?
Each @imageN token in the prompt refers to a reference image you pass in metadata.content[], numbered from @image1 up to @imageN. If you send two images, the valid tokens are @image1 and @image2. A prompt that mentions @image3 has nothing to point to. Keep the order of images in the array consistent with how you number them in the prompt, so that @image1 describes the image you intend as the main subject. Reference videos and audio clips also travel in metadata.content[]. Because the documented token format covers images, check the relaydance.com docs (https://relaydance.com/docs) for how mixed arrays of images, videos and audio are handled before you rely on position alone. Write tokens exactly in the documented form, for example @image1, with no spaces or other variations.
What are the most common content array pitfalls?
Most broken references come from placement, count or numbering errors rather than from the prompt wording itself.
- Wrong location: reference media placed at the top level of the request body instead of inside
metadata.content[]. - Token out of range: the prompt cites @image4 while the array holds three images.
- Order mismatch: the array was rebuilt or sorted in code, so @image1 no longer points to the intended picture.
- Model limit exceeded: sending 12 images to a Seedance 2.0 model, which accepts up to 9 images per request.
- Unreachable files: local files that were never uploaded. Use
POST /v1/filesto upload media before referencing them.
Review each item when a generated clip ignores a reference.
How many reference files can each Seedance model take?
Seedance 2.5 accepts up to 30 reference images, 10 reference videos and 10 audio clips per request, while Seedance 2.0 accepts up to 9 images, 3 videos and 3 audio tracks, according to the relaydance.com/docs/model-capabilities page. If your workflow needs more than 9 reference images, Seedance 2.5 is the model that fits within the documented limits. The table below summarizes the limits and listed prices.
| Item | Seedance 2.5 | Seedance 2.0 |
|---|---|---|
| Reference images | Up to 30 | Up to 9 |
| Reference videos | Up to 10 | Up to 3 |
| Reference audio | Up to 10 clips | Up to 3 tracks |
| Clip length | 4 to 30 seconds | See docs |
| 720p price | About $0.289 / second | About $0.190 / second |
| 1080p price | About $0.711 / second | About $0.470 / second |
| Other options | 480p about $0.130 / second | Fast about $0.152 / second; native 4K about $4.90 per 5-second clip |
Live per-model rates are listed at https://relaydance.com/models.
How do you debug a request with @imageN references?
Send a minimal request with two images and two tokens, confirm it works, then add references one at a time. RelayDance is OpenAI-compatible; according to the relaydance.com docs, “Set base_url to https://relaydance.com/v1 and keep your OpenAI SDK”. Authenticate with Authorization: Bearer YOUR_API_KEY. A test body contains model, a prompt such as "The person in @image1 stands in the room from @image2", seconds (4 to 30 on Seedance 2.5), and metadata with resolution and a content array holding two images. Poll GET /v1/videos/{task_id} until the status is completed (the clip is at metadata.url) or failed, or set metadata.callback_url to receive the final state. Testing is low risk: “Failed or errored requests are never billed”, according to relaydance.com.
FAQ
Can I reference a video or audio clip with a token like @imageN?
The documented token format is @image1 to @imageN for reference images. Videos and audio clips also go in metadata.content[]; check https://relaydance.com/docs for how to cite them in the prompt.
Does editing or extending a clip change how references work?
Seedance 2.5 and the Seedance 2.0 family can edit or extend an existing clip from the prompt with no masks. On Seedance 2.5, editing and extension require ratio adaptive, and editing omits seconds.
Am I charged when a request with a bad reference fails?
No. Failed or errored requests are never billed. Successful clips are billed pay-as-you-go per generated second, for example about $0.130 / second for Seedance 2.5 at 480p.
According to the official relaydance.com docs: "Failed or errored requests are never billed"
According to the official relaydance.com/docs docs: "Set base_url to https://relaydance.com/v1 and keep your OpenAI SDK"
Key facts and figures
| Item | Value | Source |
|---|---|---|
| Seedance 2.5 price | 480p about $0.130 / second, 720p about $0.289 / second, 1080p about $0.711 / second; clips of 4 to 30 seconds | relaydance.com/seedance-2-5-api |
| Seedance 2.0 price | 720p about $0.190 / second, 1080p about $0.470 / second, Fast about $0.152 / second, native 4K about $4.90 per 5-second clip | relaydance.com/seedance-2-0-api |
| Kling 4.0 price | kling-v4 (720p) $0.19625 / second, kling-v4-pro (1080p) $0.29375 / second; 3 to 30 seconds, native audio included in the price; 1.2x with a reference video | relaydance.com/docs/model-capabilities |
| MiniMax H3 price | minimax-h3-768p $0.10 / second, minimax-h3-2k $0.1625 / second; 4 to 15 seconds, native stereo audio | relaydance.com console pricing |
| Wan 3.0 price | 480p $0.0625 / second, 720p $0.125 / second, 1080p $0.25 / second; 2 to 15 seconds, text-to-video or one first-frame image, native stereo audio | relaydance.com/docs/model-capabilities |
| Seedream 4.5 images | $0.05 per image produced, 2K or 4K, reference pictures free, up to 15 related images per call, no watermark by default | relaydance.com/docs/image |
| gpt-image-2.6 images | flat $0.04 per image returned; PNG, JPEG, WebP, animated GIF or SVG; transparent backgrounds; image editing on /v1/images/edits | relaydance.com/docs/image |
| gpt-image-2 image billing | image output is free, only input is billed; image-to-image from about CNY 0.035; 4K and 1K output cost the same | relaydance.com/models |
| Video editing and extension | Seedance 2.5 and the Seedance 2.0 family edit or extend an existing clip from the prompt, no masks; on Seedance 2.5 editing and extension require ratio adaptive, and editing omits seconds | relaydance.com/docs/model-capabilities |
| Reference media limits | Seedance 2.5: up to 30 reference images, 10 reference videos and 10 audio clips per request; Seedance 2.0: up to 9 images, 3 videos and 3 audio tracks | relaydance.com/docs/model-capabilities |
| API protocol | OpenAI-compatible; set base_url to https://relaydance.com/v1 | relaydance.com/docs |
| Failed requests | failed or errored requests are never billed | relaydance.com/docs |
Data verified 2026-11-27; live prices are on the official /models page.