マーケットサポート← アプリに戻る

Kling

Kling モデルは統一された非同期ジョブ API で呼び出します。POST /api/generate でタスクを開始し、完了するまで GET /api/generate/{taskId} をポーリングします。このファミリーは 15 個のエンドポイントを提供します。

概要

すべてのエンドポイントは同じ外枠を共有し、変わるのは modelinput フィールドだけです。モデルマーケットの playground から任意に実行できます。

認証

/api-keys で API キーを作成し、Bearer トークンとして送信します。ログイン中のブラウザからのリクエストはセッション cookie 経由でも動作します。

Authorization: Bearer <YOUR_API_KEY>

タスクの作成

POST
POST https://97ai.97claude.com/api/generate

ボディ:{ "model": "<slug>", "input": { … } }

レスポンス:{ "taskId": "<id>", "state": "waiting" }

結果の照会

GET
GET https://97ai.97claude.com/api/generate/<taskId>

レスポンス:{ "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }

非同期
タスク作成の 200 は、タスクが受理されたことを意味するだけで、完了ではありません。statesuccess または fail になるまでこのエンドポイントをポーリングしてください。失敗したタスクは課金されません。

エンドポイント

モデルタスクmodel slug
KlingText to Videokling/text-to-video
KlingImage to Videokling/image-to-video
Kling V25 TurboImage to Videokling/v25-turbo-image-to-video-pro
Kling V25 TurboText to Videokling/v25-turbo-text-to-video-pro
KlingLip Synckling/ai-avatar-standard
KlingLip Synckling/ai-avatar-pro
Kling V2 1 MasterImage to Videokling/v2-1-master-image-to-video
Kling V2 1 MasterText to Videokling/v2-1-master-text-to-video
Kling V2 1 ProImage to Videokling/v2-1-pro
Kling V2 1 StandardImage to Videokling/v2-1-standard
KlingImage to Videokling/motion-control
KlingImage to Videokling/motion-control-v3
Kling 3.0Image to Videokling/kling-3-0
Kling V3 TurboText to Videokling/v3-turbo-text-to-video
Kling V3 TurboImage to Videokling/v3-turbo-image-to-video

Kling · Text to Video

POSTText to Videokling/text-to-video
input フィールド
promptstring必須

Text prompt describing the desired output.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/text-to-video",
    "input": { "prompt": "a red panda surfing" }
  }'

Kling · Image to Video

POSTImage to Videokling/image-to-video
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/image-to-video",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling V25 Turbo · Image to Video

POSTImage to Videokling/v25-turbo-image-to-video-pro
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/v25-turbo-image-to-video-pro",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling V25 Turbo · Text to Video

POSTText to Videokling/v25-turbo-text-to-video-pro
input フィールド
promptstring必須

Text prompt describing the desired output.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/v25-turbo-text-to-video-pro",
    "input": { "prompt": "a red panda surfing" }
  }'

Kling · Lip Sync

POSTLip Synckling/ai-avatar-standard
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/ai-avatar-standard",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling · Lip Sync

POSTLip Synckling/ai-avatar-pro
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/ai-avatar-pro",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling V2 1 Master · Image to Video

POSTImage to Videokling/v2-1-master-image-to-video
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/v2-1-master-image-to-video",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling V2 1 Master · Text to Video

POSTText to Videokling/v2-1-master-text-to-video
input フィールド
promptstring必須

Text prompt describing the desired output.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/v2-1-master-text-to-video",
    "input": { "prompt": "a red panda surfing" }
  }'

Kling V2 1 Pro · Image to Video

POSTImage to Videokling/v2-1-pro
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/v2-1-pro",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling V2 1 Standard · Image to Video

POSTImage to Videokling/v2-1-standard
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/v2-1-standard",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling · Image to Video

POSTImage to Videokling/motion-control
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/motion-control",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling · Image to Video

POSTImage to Videokling/motion-control-v3
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/motion-control-v3",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling 3.0 · Image to Video

POSTImage to Videokling/kling-3-0
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/kling-3-0",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Kling V3 Turbo · Text to Video

POSTText to Videokling/v3-turbo-text-to-video
input フィールド
promptstring必須

Text prompt describing the desired output.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/v3-turbo-text-to-video",
    "input": { "prompt": "a red panda surfing" }
  }'

Kling V3 Turbo · Image to Video

POSTImage to Videokling/v3-turbo-image-to-video
input フィールド
promptstring必須

Text prompt describing the desired output.

image_urlsstring[]必須

One or more source image URLs to condition on.

cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/v3-turbo-image-to-video",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'