MAKEUGC PLATFORM API · DOCS V2
Seedance 2.0 Pro
Generate video from a prompt, with optional image and audio references.
VIDEO OUTPUTRequest
/seedance/generate
Model ID: seedance-2.0.
Send all input fields at the top level of the JSON body.
Body parameters
| Parameter | Description |
|---|---|
model
string
Required
|
Use this exact model ID.
Allowed: |
prompt
string
Required
|
Describe the video.
Allowed: |
duration
integer
Optional
|
Output seconds. Use -1 for Auto; numeric strings are rejected.
Allowed:
Default: |
aspect_ratio
string
Optional
|
Output aspect ratio.
Allowed:
Default: |
resolution
string
Optional
|
Output resolution.
Allowed:
Default: |
generate_audio
boolean
Optional
|
Generate an audio track.
Default: |
image_url
string
Optional
|
One public reference image URL. Mutually exclusive with image_urls. |
image_urls
string[]
Optional
|
Public reference image URLs. Mutually exclusive with image_url.
Allowed: |
audio_url
string
Optional
|
Public reference audio URL; also provide at least one image. |
project_id
string
Optional
|
An existing project belonging to your account. Omit to create a project automatically. |
webhook_url
string
Optional
|
HTTP(S) notification URL. Keep status polling as a fallback. |
Code examples
Set MAKEUGC_API_KEY on your server. Replace example media URLs with files you host and keep accessible during processing.
curl --fail-with-body --max-time 120 -X POST "https://app.makeugc.ai/api/platform/seedance/generate" \
-H "X-Api-Key: $MAKEUGC_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"model": "seedance-2.0",
"prompt": "A slow camera move around a ceramic coffee cup in warm morning light.",
"duration": 10,
"aspect_ratio": "9:16",
"resolution": "720p",
"generate_audio": true
}'
// Run on your server with Node.js 20+.
const apiKey = process.env.MAKEUGC_API_KEY;
if (!apiKey) throw new Error("Set MAKEUGC_API_KEY first");
const response = await fetch("https://app.makeugc.ai/api/platform/seedance/generate", {
method: "POST",
headers: {
"X-Api-Key": apiKey,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "seedance-2.0",
"prompt": "A slow camera move around a ceramic coffee cup in warm morning light.",
"duration": 10,
"aspect_ratio": "9:16",
"resolution": "720p",
"generate_audio": true
}),
signal: AbortSignal.timeout(120000),
});
const text = await response.text();
if (!response.ok) {
throw new Error(`HTTP ${response.status}: ${text} (request ${response.headers.get("x-request-id")})`);
}
const result = JSON.parse(text);
console.log(result);
# Install the requests package before running.
import os
import requests
payload = {
"model": "seedance-2.0",
"prompt": "A slow camera move around a ceramic coffee cup in warm morning light.",
"duration": 10,
"aspect_ratio": "9:16",
"resolution": "720p",
"generate_audio": True
}
response = requests.post(
"https://app.makeugc.ai/api/platform/seedance/generate",
headers={"X-Api-Key": os.environ["MAKEUGC_API_KEY"]},
json=payload,
timeout=120,
)
if not response.ok:
raise RuntimeError(f"HTTP {response.status_code}: {response.text} "
f"(request {response.headers.get('x-request-id')})")
print(response.json())
200 · Job accepted
{
"status": true,
"message": "Video generation started",
"data": {
"id": "request_123",
"project_id": "project_123",
"model": "seedance-2.0",
"status": "processing",
"estimated_credits": 1.1
}
}
Retrieve the result
Save data.id, then poll every
5–10 seconds. A successful generation request does not mean the output is
ready.
curl --fail-with-body --max-time 120 -X GET "https://app.makeugc.ai/api/platform/seedance/status?id=request_123" \
-H "X-Api-Key: $MAKEUGC_API_KEY"
// Run on your server with Node.js 20+.
const apiKey = process.env.MAKEUGC_API_KEY;
if (!apiKey) throw new Error("Set MAKEUGC_API_KEY first");
const response = await fetch("https://app.makeugc.ai/api/platform/seedance/status?id=request_123", {
method: "GET",
headers: {
"X-Api-Key": apiKey,
},
signal: AbortSignal.timeout(120000),
});
const text = await response.text();
if (!response.ok) {
throw new Error(`HTTP ${response.status}: ${text} (request ${response.headers.get("x-request-id")})`);
}
const result = JSON.parse(text);
console.log(result);
# Install the requests package before running.
import os
import requests
response = requests.get(
"https://app.makeugc.ai/api/platform/seedance/status?id=request_123",
headers={"X-Api-Key": os.environ["MAKEUGC_API_KEY"]},
timeout=120,
)
if not response.ok:
raise RuntimeError(f"HTTP {response.status_code}: {response.text} "
f"(request {response.headers.get('x-request-id')})")
print(response.json())
200 · Completed
{
"status": true,
"message": "Video is completed",
"data": {
"id": "request_123",
"status": "completed",
"url": "https://your-cdn.example/result.mp4"
}
}
Read data.status: processing, completed or failed. Output
is in data.url.
If completed has no output URL yet, continue polling within your timeout.
See jobs & webhooks.
Credits & errors
Cost: based on duration and resolution. Read returned credit fields when available. See credit units and limits.
Invalid inputs return 400; insufficient credits can return 400 or 402 depending on the generation path. Access restrictions return 403 and temporary model unavailability can return 503. See error handling. Each POST can start a billable job; do not automatically resubmit after a timeout.