Skip to main content
POST
/
video-generation
seedance-2-0
curl --request POST \
  --url https://api.linkmodel.ai/api/v1/video-generation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "duration": 4,
  "resolution": "720P",
  "first_frame_image": "<string>",
  "last_frame_image": "<string>",
  "size": "16x9",
  "audios": [
    "<string>"
  ],
  "model": "seedance-2-0",
  "videos": [
    "<string>"
  ]
}
'
{
  "code": 0,
  "data": {
    "task_id": "cb6111cf-e89f-4978-b8e3-aa59c21cceff",
    "order_id": "019da9cf-d1db-78e1-ac23-526774d01193",
    "status": "processing",
    "price": 0.074
  },
  "msg": "success",
  "request_id": "250b66dd-e1fb-4bb6-b5f6-c668efadc35d"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
prompt
string
required

Length must be between 0 and 2500.

Maximum string length: 2500
duration
enum<integer>
default:4

Must be one of: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13. Defaults to 4.

Available options:
4,
5,
6,
7,
8,
9,
10,
11,
12,
13
resolution
enum<string>
default:720P

Must be one of: 480P, 720P. Defaults to 720P.

Available options:
480P,
720P
first_frame_image
string<url>
last_frame_image
string<url>
size
enum<string>
default:16x9

Must be one of: 16x9, 1x1, 21x9, 3x4, 4x3, 9x16. Defaults to 16x9.

Available options:
16x9,
1x1,
21x9,
3x4,
4x3,
9x16
audios
string[]

Maximum 3 items.

Maximum array length: 3
model
enum<string>
Available options:
seedance-2-0
videos
string<url>[]

Maximum 3 items.

Maximum array length: 3

Response

Task accepted and queued for generation.

code
integer
Example:

0

data
object
msg
string
Example:

"success"

request_id
string<uuid>
Example:

"250b66dd-e1fb-4bb6-b5f6-c668efadc35d"