Kling
Kling モデルは統一された非同期ジョブ API で呼び出します。POST /api/generate でタスクを開始し、完了するまで GET /api/generate/{taskId} をポーリングします。このファミリーは 15 個のエンドポイントを提供します。
概要
すべてのエンドポイントは同じ外枠を共有し、変わるのは model と input フィールドだけです。モデルマーケットの playground から任意に実行できます。
認証
/api-keys で API キーを作成し、Bearer トークンとして送信します。ログイン中のブラウザからのリクエストはセッション cookie 経由でも動作します。
Authorization: Bearer <YOUR_API_KEY>タスクの作成
POST https://97ai.97claude.com/api/generateボディ:{ "model": "<slug>", "input": { … } }
レスポンス:{ "taskId": "<id>", "state": "waiting" }
結果の照会
GET https://97ai.97claude.com/api/generate/<taskId>レスポンス:{ "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state が success または fail になるまでこのエンドポイントをポーリングしてください。失敗したタスクは課金されません。エンドポイント
| モデル | タスク | model slug |
|---|---|---|
| Kling | Text to Video | kling/text-to-video |
| Kling | Image to Video | kling/image-to-video |
| Kling V25 Turbo | Image to Video | kling/v25-turbo-image-to-video-pro |
| Kling V25 Turbo | Text to Video | kling/v25-turbo-text-to-video-pro |
| Kling | Lip Sync | kling/ai-avatar-standard |
| Kling | Lip Sync | kling/ai-avatar-pro |
| Kling V2 1 Master | Image to Video | kling/v2-1-master-image-to-video |
| Kling V2 1 Master | Text to Video | kling/v2-1-master-text-to-video |
| Kling V2 1 Pro | Image to Video | kling/v2-1-pro |
| Kling V2 1 Standard | Image to Video | kling/v2-1-standard |
| Kling | Image to Video | kling/motion-control |
| Kling | Image to Video | kling/motion-control-v3 |
| Kling 3.0 | Image to Video | kling/kling-3-0 |
| Kling V3 Turbo | Text to Video | kling/v3-turbo-text-to-video |
| Kling V3 Turbo | Image to Video | kling/v3-turbo-image-to-video |
Kling · Text to Video
kling/text-to-videopromptstring必須Text prompt describing the desired output.
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
kling/image-to-videopromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/v25-turbo-image-to-video-propromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/v25-turbo-text-to-video-propromptstring必須Text prompt describing the desired output.
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
kling/ai-avatar-standardpromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/ai-avatar-propromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/v2-1-master-image-to-videopromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/v2-1-master-text-to-videopromptstring必須Text prompt describing the desired output.
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
kling/v2-1-propromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/v2-1-standardpromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/motion-controlpromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/motion-control-v3promptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/kling-3-0promptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
kling/v3-turbo-text-to-videopromptstring必須Text prompt describing the desired output.
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
kling/v3-turbo-image-to-videopromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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"] }
}'