Skip to main content
POST
/
video-generation
kling-v3
curl --request POST \
  --url https://api.linkmodel.ai/api/v1/video-generation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "kling-v3",
  "prompt": "<string>",
  "resolution": "720P",
  "first_frame_image": "<string>",
  "last_frame_image": "<string>",
  "duration": 5,
  "size": "16x9",
  "extends": {},
  "extends.audio": false,
  "extends.cfg_scale": 0.5,
  "extends.negative_prompt": "<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

Must be one of: kling-v3.

Available options:
kling-v3
prompt
string
required

Length must be between 1 and 2500.

Required string length: 1 - 2500
resolution
enum<string>
default:720P
required

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

Available options:
1080P,
720P
first_frame_image
string<url>

Provide a reference image to run in image-to-video mode.

last_frame_image
string<url>

End frame for i2v mode only.

duration
enum<integer>
default:5

Must be one of: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. Defaults to 5. Value is in s.

Available options:
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
size
enum<string>
default:16x9

Video aspect ratio. Defaults to 16x9.

Available options:
16x9,
1x1,
9x16
extends
object
extends.audio
boolean
default:false

Defaults to false.

extends.cfg_scale
number
default:0.5

Must be between 0 and 1. Defaults to 0.5.

Required range: 0 <= x <= 1
extends.negative_prompt
string

Length must be at most 2500.

Maximum string length: 2500

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"