ModelStream LogoModelStream Logo
Models
Video API
Image API
Chat API
Audio API
Studio
Pricing
Docs
Menu
IntroductionQuickstartAPI KeysUse with Hermes AgentUse with OpenClaw
Model ListBilling Guide
ModelStream

Video API

  • Seedance 2.0
  • Happyhorse 1.0
  • Vidu Q3
  • Kling V3.0
  • Veo 3.1
  • Wan 2.7
  • More Video Models →

Image API

  • GPT Image 2
  • Nano Banana 2
  • Seedream 5.0
  • Imagen 4
  • Qwen Image 2.0
  • Z-Image Turbo
  • More Image Models →

Audio API

  • Suno Music
  • Qwen3 TTS Flash
  • More Audio Models →

Chat API

  • GLM-5.2
  • Claude Opus 4.8
  • Gemini 3.5 Flash
  • Qwen 3.7 Max
  • GPT 5.5
  • More Chat Models →

About Us

  • Privacy Policy
  • Terms of Service
  • Support
  • Enterprise

© 2026 ModelStream Inc. All rights reserved.

API Documentation
API Reference
Videos
Generate Video

Generate Video

Loading models...
K
Kling V2.6 (kling-v2-6)
kling-v2-60 models support this endpoint

kling-v2-6 is the final and most polished iteration of the second-generation Kling series by Kuaishou. It offers mature and highly stable image-to-video capabilities, featuring advanced motion control, superior text-video alignment, and cinematic aesthetics, bridging the gap to the next generation of video generation models. https://kling.ai/document-api/apiReference/model/imageToVideo

Generate video

https://api.modelstream.ai
POST/v1/video/generations

Authentication

BearerAuth
AuthenticationBearer <token>

All API requests must be authenticated using a Bearer token in the Authorization header. Please ensure your API key is active.Authorization: Bearer sk-xxxxxx

Parameter Location: Header Param

Request Body

application/json

These parameters come from the selected model form_schema. Switching models updates this list and the request example.

Generation Mode

Choose the generation mode. Text to Video: generate from storyboard prompts only. Image to Video: upload a first-frame image (optional last frame) as the start/end of the video, combined with storyboard prompts. Only one mode at a time.

image*string

[Image to Video] The starting frame for video generation. JPG/PNG, ≤10MB, min 300px.

RequiredExample Value: https://p2-kling.klingai.com/kcdn/cdn-kcdn112452/kling-qa-test/multi-2.pngValue Range: 0 ≤ value ≤ 1
image_tail?string

[Image to Video] Optional. End-frame control for precise first-to-last frame transition.

Value Range: 0 ≤ value ≤ 1
multi_prompt*array

Add multiple shots with unique prompts and durations. Total duration must match the setting below. Each prompt up to 2500 characters.

RequiredExample Value: [{"index":1,"prompt":"A wide panoramic shot of a bustling futuristic city street at dusk, with neon lights reflecting on wet pavement.","duration":"5"},{"index":2,"prompt":"Cinematic transition to a detailed close-up following a pedestrian's cybernetic details.","duration":"5"}]
size?string

Output video resolution. Default 1080P.

Example Value: 1920x1080
Enum/Options:
1080P (1920x1080): 1920x1080720P (1280x720): 1280x7204K (3840x2160): 3840x2160
multi_shot?boolean

When enabled, multiple storyboard shots can be controlled separately.

Example Value: true
shot_type?string

Customize: you set each shot's prompt and duration; Intelligence: the model plans the shot layout automatically.

Example Value: customize
Enum/Options:
Customize: customizeIntelligence: intelligence
watermark_enabled?boolean

When enabled, the generated video carries a watermark. Disabled by default.

Example Value: false
negative_prompt?string

Describe content you don't want to see. Max 2500 characters.

Example Value: blurry, low quality, distorted, flicker, watermark
mode?string

Generation quality mode. Pro is higher quality but slower; Standard is faster. Pro is required when sound is enabled.

Example Value: pro
Enum/Options:
Professional (1080P): proStandard (720P): std
duration?number

Total video duration in seconds. In multi-shot mode it must equal the sum of shot durations. For single-shot the standard values are 5 or 10 seconds.

Example Value: 10Value Range: 5 ≤ value ≤ 15step: 1
cfg_scale?number

Prompt adherence, range 0-1, default 0.5. Higher values follow the prompt more strictly but reduce flexibility.

Example Value: 0.5Value Range: 0 ≤ value ≤ 1step: 0.1
sound?string

Whether to generate native audio matching the visuals. Pro mode is required when on.

Example Value: on
Enum/Options:
On: onOff: off

Response Parameters

application/json
200apiDocs.responses.successCreateVideoGenTask
task_id?string

Parameter description for Task Id

status?string

Parameter description for Status

400apiDocs.responses.badRequestParams
error?object

Parameter description for Error

message?string

Error Message

type?string

Error Type

param?string

Related Parameters

code?string

Error Code

curl -X POST "https://api.modelstream.ai/v1/video/generations" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-v2-6",
  "prompt": "A wide panoramic shot of a bustling futuristic city street at dusk, with neon lights reflecting on wet pavement.",
  "size": "1920x1080",
  "duration": 10,
  "mode": "pro",
  "metadata": {
    "multi_shot": true,
    "shot_type": "customize",
    "multi_prompt": [
      {
        "index": 1,
        "prompt": "A wide panoramic shot of a bustling futuristic city street at dusk, with neon lights reflecting on wet pavement.",
        "duration": "5"
      },
      {
        "index": 2,
        "prompt": "Cinematic transition to a detailed close-up following a pedestrian's cybernetic details.",
        "duration": "5"
      }
    ],
    "image": "https://p2-kling.klingai.com/kcdn/cdn-kcdn112452/kling-qa-test/multi-2.png",
    "sound": "on",
    "negative_prompt": "blurry, low quality, distorted, flicker, watermark",
    "cfg_scale": 0.5,
    "watermark_info": {
      "enabled": false
    }
  }
}'
{
  "task_id": "abcd1234efgh",
  "status": "queued"
}