Skip to main content
POST
/
kling
/
v1
/
videos
/
text2video
Kling Text-to-Video
curl --request POST \
  --url https://api.aiid.edu.kg/kling/v1/videos/text2video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "kling-v1",
  "prompt": "宇航员站起身走了",
  "duration": 5,
  "width": 1280,
  "height": 720,
  "fps": 30
}
'
{
  "task_id": "abcd1234efgh",
  "status": "queued"
}

Authorizations

Authorization
string
header
required

Use Bearer Token authentication. Format: Authorization: Bearer sk-xxxxxx

Body

application/json

Video generation request

model
string

Model/Style ID

Example:

"kling-v1"

prompt
string

Text description prompt

Example:

"宇航员站起身走了"

image
string

Image Input (URL or Base64)

Example:

"https://example.com/image.jpg"

duration
number

Video duration (seconds)

Example:

5

width
integer

Video width

Example:

1280

height
integer

Video height

Example:

720

fps
integer

Video Frame Rate

Example:

30

seed
integer

Random Seed

Example:

20231234

n
integer

Number of videos generated

Example:

1

response_format
string

Response Format

Example:

"url"

user
string

User ID

Example:

"user-1234"

metadata
object

Extended parameters (such as negative_prompt, style, quality_level, etc.)

Response

Video generation task created successfully

Video generation task submission response

task_id
string

Task ID

Example:

"abcd1234efgh"

status
string

Task Status

Example:

"queued"