curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2-5-flash-refs",
"prompt": "Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music",
"ref_imgs": [
"https://your-cdn.com/product.jpg"
],
"ref_videos": [
"https://your-cdn.com/camera-ref.mp4"
],
"ref_audios": [
"https://your-cdn.com/bgm.mp3"
],
"duration": 10,
"quality": "720p",
"aspect_ratio": "16:9"
}
'import requests
url = "https://api.goenhance.ai/api/v1/videos/generations"
payload = {
"model": "seedance-2-5-flash-refs",
"prompt": "Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music",
"ref_imgs": ["https://your-cdn.com/product.jpg"],
"ref_videos": ["https://your-cdn.com/camera-ref.mp4"],
"ref_audios": ["https://your-cdn.com/bgm.mp3"],
"duration": 10,
"quality": "720p",
"aspect_ratio": "16:9"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seedance-2-5-flash-refs',
prompt: 'Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music',
ref_imgs: ['https://your-cdn.com/product.jpg'],
ref_videos: ['https://your-cdn.com/camera-ref.mp4'],
ref_audios: ['https://your-cdn.com/bgm.mp3'],
duration: 10,
quality: '720p',
aspect_ratio: '16:9'
})
};
fetch('https://api.goenhance.ai/api/v1/videos/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goenhance.ai/api/v1/videos/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedance-2-5-flash-refs',
'prompt' => 'Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music',
'ref_imgs' => [
'https://your-cdn.com/product.jpg'
],
'ref_videos' => [
'https://your-cdn.com/camera-ref.mp4'
],
'ref_audios' => [
'https://your-cdn.com/bgm.mp3'
],
'duration' => 10,
'quality' => '720p',
'aspect_ratio' => '16:9'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.goenhance.ai/api/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"seedance-2-5-flash-refs\",\n \"prompt\": \"Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music\",\n \"ref_imgs\": [\n \"https://your-cdn.com/product.jpg\"\n ],\n \"ref_videos\": [\n \"https://your-cdn.com/camera-ref.mp4\"\n ],\n \"ref_audios\": [\n \"https://your-cdn.com/bgm.mp3\"\n ],\n \"duration\": 10,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.goenhance.ai/api/v1/videos/generations")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seedance-2-5-flash-refs\",\n \"prompt\": \"Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music\",\n \"ref_imgs\": [\n \"https://your-cdn.com/product.jpg\"\n ],\n \"ref_videos\": [\n \"https://your-cdn.com/camera-ref.mp4\"\n ],\n \"ref_audios\": [\n \"https://your-cdn.com/bgm.mp3\"\n ],\n \"duration\": 10,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"seedance-2-5-flash-refs\",\n \"prompt\": \"Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music\",\n \"ref_imgs\": [\n \"https://your-cdn.com/product.jpg\"\n ],\n \"ref_videos\": [\n \"https://your-cdn.com/camera-ref.mp4\"\n ],\n \"ref_audios\": [\n \"https://your-cdn.com/bgm.mp3\"\n ],\n \"duration\": 10,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5",
"cost": 5.82
}
}Seedance 2.5 Flash Reference to Video
Seedance 2.5 Flash reference-to-video: drive generation with reference images, videos and audio. Reference the assets inside the prompt as @image1, @video1, @audio1 — the array order is what those numbers refer to.
Seedance 2.5 Flash is the faster, lower-cost tier of Seedance 2.5 Reference to Video, with the same quality options (480p and 720p) and the same parameters. The only difference is in how many assets you can send.
Asset limits (lower than Seedance 2.5 Reference to Video, which allows 30/10/10):
- Up to 10 reference images, 5 reference videos and 5 reference audio clips.
- Reference videos and audio are 2–30 seconds each, and each type may total up to 30 seconds.
- At least one image, video or audio clip is required — audio alone is enough.
durationis any integer from 4 to 30 seconds.
Pricing — in tokens (USD at $0.02/token). Without reference videos (images and/or audio only), only the generated seconds are billed, at the same price as Seedance 2.5 Flash. With reference videos, a lower per-second rate applies to output seconds + max(total reference video seconds, output seconds):
| resolution | references | tokens/s | USD/s | billed seconds |
|---|---|---|---|---|
| 480p | images / audio only | 5.915 | $0.1183 | output |
| 480p | with reference videos | 3.64 | $0.0728 | output + max(reference videos, output) |
| 720p | images / audio only | 12.675 | $0.2535 | output |
| 720p | with reference videos | 7.735 | $0.1547 | output + max(reference videos, output) |
The total reference video length is measured from your files before any tokens are charged, and rounded up to the next 0.1 second. Reference images and audio are not charged. Native audio is included at no extra charge.
Examples at 720p:
- 5 seconds with reference images only: 63.38 tokens (= $1.2676)
- 5 seconds with an 8-second reference video: 13 billed seconds, 100.56 tokens (= $2.0112)
- 10 seconds with a 5-second reference video: 20 billed seconds, 154.7 tokens (= $3.094)
To quote a request with reference videos via POST /api/v1/pricing/quote, include ref_videos and declare their total length as input_video_seconds in the payload (the quote endpoint does not download your files).
Returns an img_uuid; poll GET /api/v1/jobs/detail (or use custom_callback_url) to get the generated video.
curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2-5-flash-refs",
"prompt": "Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music",
"ref_imgs": [
"https://your-cdn.com/product.jpg"
],
"ref_videos": [
"https://your-cdn.com/camera-ref.mp4"
],
"ref_audios": [
"https://your-cdn.com/bgm.mp3"
],
"duration": 10,
"quality": "720p",
"aspect_ratio": "16:9"
}
'import requests
url = "https://api.goenhance.ai/api/v1/videos/generations"
payload = {
"model": "seedance-2-5-flash-refs",
"prompt": "Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music",
"ref_imgs": ["https://your-cdn.com/product.jpg"],
"ref_videos": ["https://your-cdn.com/camera-ref.mp4"],
"ref_audios": ["https://your-cdn.com/bgm.mp3"],
"duration": 10,
"quality": "720p",
"aspect_ratio": "16:9"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seedance-2-5-flash-refs',
prompt: 'Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music',
ref_imgs: ['https://your-cdn.com/product.jpg'],
ref_videos: ['https://your-cdn.com/camera-ref.mp4'],
ref_audios: ['https://your-cdn.com/bgm.mp3'],
duration: 10,
quality: '720p',
aspect_ratio: '16:9'
})
};
fetch('https://api.goenhance.ai/api/v1/videos/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goenhance.ai/api/v1/videos/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedance-2-5-flash-refs',
'prompt' => 'Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music',
'ref_imgs' => [
'https://your-cdn.com/product.jpg'
],
'ref_videos' => [
'https://your-cdn.com/camera-ref.mp4'
],
'ref_audios' => [
'https://your-cdn.com/bgm.mp3'
],
'duration' => 10,
'quality' => '720p',
'aspect_ratio' => '16:9'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.goenhance.ai/api/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"seedance-2-5-flash-refs\",\n \"prompt\": \"Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music\",\n \"ref_imgs\": [\n \"https://your-cdn.com/product.jpg\"\n ],\n \"ref_videos\": [\n \"https://your-cdn.com/camera-ref.mp4\"\n ],\n \"ref_audios\": [\n \"https://your-cdn.com/bgm.mp3\"\n ],\n \"duration\": 10,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.goenhance.ai/api/v1/videos/generations")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seedance-2-5-flash-refs\",\n \"prompt\": \"Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music\",\n \"ref_imgs\": [\n \"https://your-cdn.com/product.jpg\"\n ],\n \"ref_videos\": [\n \"https://your-cdn.com/camera-ref.mp4\"\n ],\n \"ref_audios\": [\n \"https://your-cdn.com/bgm.mp3\"\n ],\n \"duration\": 10,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"seedance-2-5-flash-refs\",\n \"prompt\": \"Use the camera movement of @video1 and keep the product in @image1, with @audio1 as background music\",\n \"ref_imgs\": [\n \"https://your-cdn.com/product.jpg\"\n ],\n \"ref_videos\": [\n \"https://your-cdn.com/camera-ref.mp4\"\n ],\n \"ref_audios\": [\n \"https://your-cdn.com/bgm.mp3\"\n ],\n \"duration\": 10,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5",
"cost": 5.82
}
}Body
Reference videos (up to 5). mp4/mov, 2–30s each and ≤30s in total, 24–60 fps, ≤100MB each. Longer clips are trimmed automatically — the 30s budget is split evenly across them (1 clip keeps 30s, 3 clips get 10s each). Referenced as @video1, @video2, … in array order. ⚠️ Using this field changes how the request is priced — see the pricing note above.
5Reference audio (up to 5). wav/mp3, 2–30s each and ≤30s in total, ≤15MB each. Not transcoded — clips exceeding the total budget are rejected by the model. Referenced as @audio1, @audio2, … in array order. At least one of ref_imgs / ref_videos / ref_audios is required; audio on its own is accepted.
5