title
description
API v1.0 Base URL: https://kling3api.com
quickstart_title
bash
curl -X POST 'https://kling3api.com/api/generate' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"type": "pro-text-to-video",
"prompt": "A cinematic shot of mountains at sunrise",
"duration": 5,
"aspect_ratio": "16:9"
}'auth_title
auth_desc
auth_note: auth_note_desc
http
Authorization: Bearer YOUR_API_KEYmodels_title
3.0
models_kling3_title
models_kling3_desc
| col_type | col_description | col_duration | col_credits |
|---|---|---|---|
pro-text-to-video | model_pro_t2v | 5s / 10s | 240 / 480 |
pro-image-to-video | model_pro_i2v | 5s / 10s | 240 / 480 |
std-text-to-video | model_std_t2v | 5s / 10s | 180 / 360 |
std-image-to-video | model_std_i2v | 5s / 10s | 180 / 360 |
O3
models_o3_title
models_o3_desc
| col_type | col_description | col_duration | col_credits |
|---|---|---|---|
o3-pro-text-to-video | model_o3_pro_t2v | 3-15s | 48/s |
o3-pro-image-to-video | model_o3_pro_i2v | 3-15s | 48/s |
o3-pro-reference-to-video | model_o3_pro_ref2v | 3-15s | 72/s |
o3-pro-video-edit | model_o3_pro_edit | auto | 435 fixed |
o3-std-text-to-video | model_o3_std_t2v | 3-15s | 36/s |
o3-std-image-to-video | model_o3_std_i2v | 3-15s | 36/s |
o3-std-reference-to-video | model_o3_std_ref2v | 3-15s | 20/s |
o3-std-video-edit | model_o3_std_edit | auto | 360 fixed |
endpoints_title
POST
/api/generateendpoint_generate_desc
request_body
| Parameter | タイプ | 必須 | 説明 |
|---|---|---|---|
type | string | 必須 | param_type |
prompt | string | 必須 | param_prompt |
duration | number | 任意 | param_duration (デフォルト: 5) |
aspect_ratio | string | 任意 | param_aspect_ratio (デフォルト: 16:9) |
image | string | 任意 | param_image |
end_image | string | 任意 | param_end_image |
video | string | 任意 | param_video |
images | string[] | 任意 | param_images |
sound | boolean | 任意 | param_sound (デフォルト: false) |
negative_prompt | string | 任意 | param_negative_prompt |
cfg_scale | number | 任意 | param_cfg_scale (デフォルト: 0.5) |
example_kling3_t2v
json
{
"type": "pro-text-to-video",
"prompt": "A majestic eagle soaring through clouds at sunset",
"duration": 5,
"aspect_ratio": "16:9",
"sound": true
}example_kling3_i2v
json
{
"type": "pro-image-to-video",
"prompt": "The character slowly turns and smiles",
"image": "https://example.com/my-image.jpg",
"duration": 5
}example_o3_ref2v
json
{
"type": "o3-pro-reference-to-video",
"prompt": "The character walks through a futuristic city",
"images": [
"https://example.com/character-reference.jpg",
"https://example.com/style-reference.jpg"
],
"duration": 5,
"aspect_ratio": "16:9"
}example_o3_edit
json
{
"type": "o3-pro-video-edit",
"prompt": "Change the background to a snowy mountain landscape",
"video": "https://example.com/original-video.mp4",
"keep_original_sound": true
}responses
Task created successfully
{
"code": 200,
"message": "success",
"data": {
"task_id": "n70abc123kling3",
"status": "IN_PROGRESS",
"consumed_credits": 240
}
}GET
/api/statusplayground_title
playground_desc
API プレイグラウンドPOST
errors_title
| Status | Code | Description |
|---|---|---|
| 400 不正なリクエスト | INVALID_PROMPT | error_invalid_prompt |
| 400 不正なリクエスト | INVALID_DURATION | error_invalid_duration |
| 400 不正なリクエスト | INVALID_TYPE | error_invalid_type |
| 400 不正なリクエスト | MISSING_IMAGE | error_missing_image |
| 400 不正なリクエスト | MISSING_VIDEO | error_missing_video |
| 401 認証エラー | INVALID_API_KEY | error_invalid_api_key |
| 402 | INSUFFICIENT_CREDITS | error_insufficient_credits |
| 429 リクエストが多すぎます | RATE_LIMITED | error_rate_limited |
| 500 サーバー内部エラー | INTERNAL_ERROR | error_internal |