Skip to main content
POST
/
v1
/
video
/
seedance-2
Create video task
curl --request POST \
  --url https://api.outai.top/api/v1/video/seedance-2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "seedance_2_0",
  "prompt": "A futuristic city at sunset",
  "function_mode": "omni_reference",
  "ratio": "16:9",
  "duration": 5,
  "image_urls": [],
  "audio_urls": [],
  "video_urls": []
}
'
{ "code": 200, "trace_id": "45c30d76f06549b199a3775544523689", "message": null, "data": { "task_id": "task_id", "status": "running", "created_at": "2023-11-07T05:31:56Z", "credits_cost": 12 } }

Documentation Index

Fetch the complete documentation index at: https://docs.outai.top/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Validation notes: prompt is required; model, ratio, and function_mode must use supported values; duration must be between 4 and 15; when function_mode=first_last_frames, at most 2 images are allowed; when function_mode=omni_reference, audio-only input is not allowed, so if audio_urls is provided, include at least one image or video.

prompt
string
required

Text prompt for video generation.

model
enum<string>
default:seedance_2_0
Available options:
seedance_2_0,
seedance_2_0_fast
function_mode
enum<string>
default:omni_reference
Available options:
first_last_frames,
omni_reference
ratio
enum<string>
default:16:9
Available options:
21:9,
16:9,
4:3,
1:1,
3:4,
9:16
duration
integer
default:5
Required range: 4 <= x <= 15
image_urls
string<uri>[]
Maximum array length: 9
audio_urls
string<uri>[]
Maximum array length: 3
video_urls
string<uri>[]
Maximum array length: 3

Response

Task created successfully

code
integer
Example:

200

trace_id
string
Example:

"45c30d76f06549b199a3775544523689"

message
string | null
Example:

null

data
object