Text to video API quickstart with an OpenAI compatible endpoint
To generate video from text through an OpenAI compatible endpoint on RelayDance, create an API key in the console and set base_url to https://relaydance.com/v1. Next, send POST /v1/video/generations with a model, prompt and seconds value. Then poll GET /v1/video/generations/{task_id} until the status is succeeded or failed, or receive the final state by webhook. Billing is pay-as-you-go per generated video, and failed requests are not charged.
How do I point my OpenAI SDK at RelayDance?
You keep your existing OpenAI SDK and change the base URL to https://relaydance.com/v1. According to the relaydance.com docs: “Set base_url to https://relaydance.com/v1 and keep your OpenAI SDK”. Authentication uses a standard bearer header, Authorization: Bearer YOUR_API_KEY, and you create keys at https://relaydance.com/console. The same base URL serves video and image endpoints:
- Video tasks:
POST /v1/video/generations - Images:
POST /v1/images/generations
Available model families include ByteDance Seedance 2.0 and Seedance 1.5 Pro, HappyHorse video models, Grok Imagine video and image models, and Grok text models. Seedance access does not require a BytePlus enterprise account or KYC. Payments are accepted in USDT and by Stripe card. Full parameter references are in the RelayDance docs.
What are the steps to generate a video from text?
You submit an asynchronous task, then retrieve the result by polling or webhook.
- Create a key: generate an API key in the RelayDance console.
- Submit the task: send
POST https://relaydance.com/v1/video/generationswith a JSON body such as{"model": "doubao-seedance-2-5-1080p", "prompt": "A paper boat drifting down a rainy street", "seconds": 5}. Optional settings go inmetadata: ratio, resolution, generate_audio, callback_url and content[]. - Store the task_id: the response identifies your task for later lookups.
- Poll for status: call
GET /v1/video/generations/{task_id}until status issucceededorfailed. - Download the video: a succeeded result contains the video url.
How do reference media and webhooks work?
Reference media go in metadata.content[], and webhooks are enabled by setting metadata.callback_url. In the prompt, you cite reference images as @image1 through @imageN, so a prompt can say, for example, that the character in @image1 walks into the scene shown in @image2. Each request accepts up to 9 reference images, 3 reference videos and 3 audio tracks, and clips can run up to 15 seconds. If you prefer not to poll, supply a callback URL: RelayDance POSTs the final task state to your server when the job finishes. This suits batch pipelines where many tasks run in parallel. Polling and webhook mode return the same final information, including the status and, on success, the video url. Details on field formats are listed in the docs.
How much does a text to video API call cost?
Cost depends on the model and resolution, billed per second of generated video, according to relaydance.com/models. Listed rates are approximate:
- Seedance Fast: about $0.152 per second
- Seedance 2.0 720p: about $0.190 per second
- Seedance 2.0 1080p: about $0.470 per second
- Seedance 2.5 1080p (
doubao-seedance-2-5-1080p, added 2026-10-10): about $0.711 per second - Seedance native 4K: about $4.90 per 5-second clip
For images, gpt-image-2 output is free and input is billed, with image-to-image from about CNY 0.035; 4K and 1K output cost the same. A 5-second Seedance 2.0 720p clip comes to roughly $0.95. According to the relaydance.com docs, “Failed or errored requests are never billed”.
FAQ
Do I need a new SDK to use RelayDance?
No. The API is OpenAI-compatible, so you keep your OpenAI SDK and set base_url to https://relaydance.com/v1.
How long can a generated clip be?
Clips can be up to 15 seconds, set through the seconds field in the request body.
What happens if a generation fails?
The task status returns failed, and failed or errored requests are not billed. Current per-model rates are published at https://relaydance.com/models.
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 2.5 1080p price | about $0.711 / second, added 2026-10-10, model doubao-seedance-2-5-1080p | 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.