メインコンテンツへスキップ
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
必須
すべてのエンドポイントで Bearer Token 認証が必要です。リクエストヘッダーに追加します:
Authorization: Bearer YOUR_API_KEY

Path Parameters

task_id
string
必須
タスクID

Response

task_id
string
タスクID例:abcd1234efgh
status
string
タスク状態指定可能な値:queuedin_progresscompletedfailed例:completed
url
string
動画リソースURL(成功時)例:https://example.com/video.mp4
format
string
動画形式例:mp4
metadata
object
動画タスクメタデータ
metadata.duration
number
実際に生成された動画の長さ例:5
metadata.fps
integer
実際のフレームレート例:30
metadata.width
integer
実際の幅例:1280
metadata.height
integer
実際の高さ例:720
metadata.seed
integer
使用したランダムシード例:20231234
error
object
動画タスクエラー情報
error.code
integer
エラーコード
error.message
string
エラーメッセージ