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_KEY

models_title

3.0

models_kling3_title

models_kling3_desc

col_typecol_descriptioncol_durationcol_credits
pro-text-to-videomodel_pro_t2v5s / 10s240 / 480
pro-image-to-videomodel_pro_i2v5s / 10s240 / 480
std-text-to-videomodel_std_t2v5s / 10s180 / 360
std-image-to-videomodel_std_i2v5s / 10s180 / 360
O3

models_o3_title

models_o3_desc

col_typecol_descriptioncol_durationcol_credits
o3-pro-text-to-videomodel_o3_pro_t2v3-15s48/s
o3-pro-image-to-videomodel_o3_pro_i2v3-15s48/s
o3-pro-reference-to-videomodel_o3_pro_ref2v3-15s72/s
o3-pro-video-editmodel_o3_pro_editauto435 fixed
o3-std-text-to-videomodel_o3_std_t2v3-15s36/s
o3-std-image-to-videomodel_o3_std_i2v3-15s36/s
o3-std-reference-to-videomodel_o3_std_ref2v3-15s20/s
o3-std-video-editmodel_o3_std_editauto360 fixed

endpoints_title

POST/api/generate
endpoint_generate_desc

request_body

ParameterTypeRequisDescription
typestringRequisparam_type
promptstringRequisparam_prompt
durationnumberOptionnelparam_duration (Par défaut : 5)
aspect_ratiostringOptionnelparam_aspect_ratio (Par défaut : 16:9)
imagestringOptionnelparam_image
end_imagestringOptionnelparam_end_image
videostringOptionnelparam_video
imagesstring[]Optionnelparam_images
soundbooleanOptionnelparam_sound (Par défaut : false)
negative_promptstringOptionnelparam_negative_prompt
cfg_scalenumberOptionnelparam_cfg_scale (Par défaut : 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/status

playground_title

playground_desc

Aire de jeux APIPOST

errors_title

StatusCodeDescription
400 Mauvaise requêteINVALID_PROMPTerror_invalid_prompt
400 Mauvaise requêteINVALID_DURATIONerror_invalid_duration
400 Mauvaise requêteINVALID_TYPEerror_invalid_type
400 Mauvaise requêteMISSING_IMAGEerror_missing_image
400 Mauvaise requêteMISSING_VIDEOerror_missing_video
401 Non autoriséINVALID_API_KEYerror_invalid_api_key
402 INSUFFICIENT_CREDITSerror_insufficient_credits
429 Trop de requêtesRATE_LIMITEDerror_rate_limited
500 Erreur interne du serveurINTERNAL_ERRORerror_internal