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:

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.

  1. Create a key: generate an API key in the RelayDance console.
  2. Submit the task: send POST https://relaydance.com/v1/video/generations with 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 in metadata: ratio, resolution, generate_audio, callback_url and content[].
  3. Store the task_id: the response identifies your task for later lookups.
  4. Poll for status: call GET /v1/video/generations/{task_id} until status is succeeded or failed.
  5. 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:

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

ItemValueSource
Seedance 2.0 720p priceabout $0.190 / secondrelaydance.com/models
Seedance 2.0 1080p priceabout $0.470 / secondrelaydance.com/models
Seedance 2.5 1080p priceabout $0.711 / second, added 2026-10-10, model doubao-seedance-2-5-1080prelaydance.com/models
Seedance Fast priceabout $0.152 / secondrelaydance.com/models
Seedance native 4K priceabout $4.90 per 5-second cliprelaydance.com/models
gpt-image-2 image billingimage output is free, only input is billed; image-to-image from about CNY 0.035; 4K and 1K output cost the samerelaydance.com/models
API protocolOpenAI-compatible; set base_url to https://relaydance.com/v1relaydance.com/docs
Failed requestsfailed or errored requests are never billedrelaydance.com/docs

Data verified 2026-06-29; live prices are on the official /models page.


RelayDance home · Models and pricing · Docs · All guides · Privacy Policy · User Agreement · Telegram community · RelayRouter (LLM API) · Live playground