Skip to main content
POST
/
video-generation
happyhorse-1.0
curl --request POST \
  --url https://api.linkmodel.ai/api/v1/video-generation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "happyhorse-1.0",
  "first_frame_image": "<string>",
  "images": [
    "<string>"
  ],
  "duration": 9,
  "prompt": "<string>",
  "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
model
enum<string>
required
Available options:
happyhorse-1.0
first_frame_image
string<url>
images
string[]

Maximum 9 items.

Maximum array length: 9
duration
integer

Must be between 3 and 15.

Required range: 3 <= x <= 15
prompt
string

Length must be at most 5000.

Maximum string length: 5000
resolution
enum<string>

Must be one of: 1080P, 720P.

Available options:
1080P,
720P
size
enum<string>

Must be one of: 16:9, 1:1, 3:4, 4:3, 4:5, 5:4, 9:16.

Available options:
16:9,
1:1,
3:4,
4:3,
4:5,
5:4,
9:16
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"