Videoslash API
Creative studioGeneratedModels

Kling 4.0

Creative Studio video model reference for the public API.

Kling 4.0

Public model ID: kling-40

Asset type: video

Category: Video Generation

Starting credits: 5 (defaults: 12)

Prompt required.

Start a generation

curl -s -X POST "$API_BASE_URL/v1/creative-studio/generations" \
  -H "Authorization: Bearer vsl_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "kling-40",
    "prompt": "Your prompt here",
    "start_image": ["https://example.com/reference.jpg"],
    "resolution": "1080p"
  }' | jq

Poll GET /v1/creative-studio/generations/{id} until status is completed. Completed generations return outputUrl on cdn.videoslash.com.

Media parameters

NameTypeConstraintsDefaultDescription
start_imagestringoptional · max items: 1—First frame image. Supports .jpg/.jpeg/.png, max 30MB, min 300px, aspect ratio 2:5 to 5:2.
end_imagestringoptional · max items: 1—Last frame image. Same format requirements as the first frame.
reference_imagesarrayoptional · max items: 8[]Reference images (up to 8) for characters, objects, scenes or style. Up to 10 images in total across all image inputs.

Settings parameters

NameTypeConstraintsDefaultDescription
resolutionenumoptional · enum: 720p, 1080p1080pOutput resolution.
aspect_ratioenumoptional · enum: 16:9, 9:16, 1:1, 21:916:9Aspect ratio. Ignored when a first or last frame image is provided.
durationintegeroptional · min: 3 · max: 305Video duration in seconds.

On this page