Skip to main content
POST
/
kling
/
v1
/
videos
/
text2video
curl --request POST \
  --url 'https://api.elkapi.com/kling/v1/videos/text2video' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "kling-v3",
  "prompt": "A small kitten running through a sunny garden, cinematic, highly detailed",
  "image": "https://example.com/image.png",
  "duration": 5,
  "response_format": "json",
  "metadata": {}
}'
{
  "task_id": "task_1234567890",
  "status": "queued"
}

Documentation Index

Fetch the complete documentation index at: https://docs.elkapi.com/llms.txt

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

curl --request POST \
  --url 'https://api.elkapi.com/kling/v1/videos/text2video' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "kling-v3",
  "prompt": "A small kitten running through a sunny garden, cinematic, highly detailed",
  "image": "https://example.com/image.png",
  "duration": 5,
  "response_format": "json",
  "metadata": {}
}'
{
  "task_id": "task_1234567890",
  "status": "queued"
}

Authorizations

Authorization
string
required
All endpoints require Bearer Token authentication.Add it to the request headers:
Authorization: Bearer YOUR_API_KEY

Body

model
string
default:"kling-v3"
Model/style IDExample: kling-v3
prompt
string
Text promptExample: The astronaut stands up and walks away
image
string
Image input (URL or Base64)Example: https://example.com/image.jpg
duration
number
Video duration (seconds)Example: 5
width
integer
Video widthExample: 1280
height
integer
Video heightExample: 720
fps
integer
Video frame rateExample: 30
seed
integer
Random seedExample: 20231234
n
integer
Number of videos to generateExample: 1
response_format
string
Response formatExample: url
user
string
User identifierExample: user-1234
metadata
object
Additional parameters (such as negative_prompt, style, quality_level)

Response

task_id
string
Task IDExample: abcd1234efgh
status
string
Task statusExample: queued