Skip to main content
GET
/
kling
/
v1
/
videos
/
image2video
/
{task_id}
curl --request GET \
  --url 'https://api.elkapi.com/kling/v1/videos/image2video/task_1234567890' \
  --header 'Authorization: Bearer <token>'
{
  "task_id": "task_1234567890",
  "status": "completed",
  "url": "https://example.com/image.png",
  "format": "mp4",
  "metadata": {
    "duration": 5,
    "fps": 30,
    "width": 1280,
    "height": 720,
    "seed": 12345
  },
  "error": {
    "code": 1,
    "message": "message"
  }
}

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 GET \
  --url 'https://api.elkapi.com/kling/v1/videos/image2video/task_1234567890' \
  --header 'Authorization: Bearer <token>'
{
  "task_id": "task_1234567890",
  "status": "completed",
  "url": "https://example.com/image.png",
  "format": "mp4",
  "metadata": {
    "duration": 5,
    "fps": 30,
    "width": 1280,
    "height": 720,
    "seed": 12345
  },
  "error": {
    "code": 1,
    "message": "message"
  }
}

Authorizations

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

Path Parameters

task_id
string
required
Task ID

Response

task_id
string
Task IDExample: abcd1234efgh
status
string
Task statusAllowed values: queued, in_progress, completed, failedExample: completed
url
string
Video asset URL (on success)Example: https://example.com/video.mp4
format
string
Video formatExample: mp4
metadata
object
Video task metadata
metadata.duration
number
Actual generated video durationExample: 5
metadata.fps
integer
Actual frame rateExample: 30
metadata.width
integer
Actual widthExample: 1280
metadata.height
integer
Actual heightExample: 720
metadata.seed
integer
Random seed usedExample: 20231234
error
object
Video task error information
error.code
integer
Error code
error.message
string
Error message