Image to video API: how to animate an image with RelayDance
To animate an image with RelayDance, send a POST request to /v1/video/generations including your model, prompt, and seconds, then attach the source image in metadata.content[] and reference it in the prompt as @image1. RelayDance is OpenAI-compatible, so you set the base URL to https://relaydance.com/v1 and keep your existing SDK. Poll the task until status is succeeded, then read the video URL from the result.
How the image-to-video request works
You animate an image by placing it in metadata.content[] and citing it inside the prompt using @image1 to @imageN. A single request accepts up to 9 reference images, 3 reference videos, and 3 audio tracks, and clips can run up to 15 seconds. Additional metadata fields control ratio, resolution, generate_audio, and callback_url. According to the official relaydance.com/docs documentation, 「Set base_url to https://relaydance.com/v1 and keep your OpenAI SDK」. This means existing OpenAI client code can call RelayDance without rewriting the transport layer. Authentication uses an Authorization: Bearer YOUR_API_KEY header, with keys created in the console.
Steps to animate an image
Follow these numbered steps to turn a still image into a generated video clip.
- Set
base_urltohttps://relaydance.com/v1and add yourAuthorization: Bearer YOUR_API_KEYheader. - Upload or reference your source image and place it in
metadata.content[]. - Write a prompt that cites the image as
@image1, and setsecondsplusratio,resolution, and optionalgenerate_audio. - POST the payload to
/v1/video/generationsto create the task. - Poll
GET /v1/video/generations/{task_id}until status issucceededorfailed, or setmetadata.callback_urlto receive the final state by webhook. - Read the video URL from the succeeded result.
Model pricing for image-to-video
Pricing is pay-as-you-go per generated video, with rates that vary by model and resolution. The table below lists concrete Seedance rates from relaydance.com/models. According to the official relaydance.com documentation, 「Failed or errored requests are never billed」, so retries after an error do not add cost.
| Model / tier | Price |
|---|---|
| Seedance 2.0 (720p) | about $0.190 / second |
| Seedance 2.0 (1080p) | about $0.470 / second |
| Seedance Fast | about $0.152 / second |
| Seedance native 4K | about $4.90 per 5-second clip |
For image models, gpt-image-2 bills only input (image output is free), image-to-image starts from about CNY 0.035, and 4K and 1K output cost the same.
Access, payments, and billing
Access is direct and OpenAI-compatible, with no BytePlus enterprise account or KYC required. You create API keys at the console and authenticate with a bearer token. Payments are supported through USDT and Stripe card, and billing is pay-as-you-go per generated video. Because failed or errored requests are never billed, error handling and retries stay cost-neutral. Live per-model rates are published at relaydance.com/models, and the API reference is at relaydance.com/docs. Available models include ByteDance Seedance 2.0 and Seedance 1.5 Pro, HappyHorse video models, and Grok Imagine video and image models, plus Grok text models.
FAQ
How do I reference the source image in the prompt? Place the image in metadata.content[] and cite it as @image1 to @imageN. A request supports up to 9 reference images.
How long can a generated clip be? Clips run up to 15 seconds, with duration set by the seconds parameter.
Am I charged if a request fails? No. According to the official relaydance.com documentation, 「Failed or errored requests are never billed」.
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.0 720p price | about $0.190 / second | relaydance.com/models |
| Seedance 2.0 1080p price | about $0.470 / second | relaydance.com/models |
| Seedance Fast price | about $0.152 / second | relaydance.com/models |
| Seedance native 4K price | about $4.90 per 5-second clip | relaydance.com/models |
| 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 |
| 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-06-29; live prices are on the official /models page.