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...
W
Wan2.6-T2V (wan2.6-t2v)
wan2.6-t2v0 models support this endpoint

Wan2.6 text to video, Intelligent shot scheduling supports multi-shot storytelling, generating multi-shot narrative videos with consistent subjects, scenes, and atmosphere, with a maximum duration of 15 seconds. It delivers better instruction following, and improved visual fidelity. https://bailian.console.alibabacloud.com/cn-beijing?tab=model#/model-market/detail/wan2.6-t2v?serviceSite=asia-pacific-china

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.

prompt*string

Describe the video you want to generate. Supports Chinese and English, max 5,000 chars. Control shots with natural language (e.g., 'single-shot', 'multi-shot'). When audio is generated, put dialogue in double quotes to improve speech.

RequiredExample Value: A breathtaking cinematic wide shot of a pristine coastline at dawn. Seagulls are soaring gracefully over the gentle waves, with the first light of the sun painting the sky in soft oranges and purples. Ultra-high resolution, photorealistic, 8k.Placeholder: e.g., A kitten running in the moonlight.
negative_prompt?string

Describe content to exclude from the video. Supports Chinese and English, max 500 chars.

Placeholder: Content you don't want in the video...
audio_url?string

Optional. URL of an audio file to drive the video (WAV/MP3, 2-30s, ≤15MB). If left empty, the model auto-generates matching audio.

Placeholder: https://...
resolution?string

Video output resolution. Options: 720P, 1080P. Default 1080P. Resolution affects billing.

Example Value: 1080P
Enum/Options:
720P1080P
ratio?string

Output aspect ratio. Options: 16:9, 9:16, 1:1, 4:3, 3:4. Default 16:9.

Example Value: 16:9
Enum/Options:
16:99:161:14:33:4
duration?number

Length of the generated video, an integer in [2, 15], default 5s. Duration affects billing.

Example Value: 5Value Range: 2 ≤ value ≤ 15step: 1
prompt_extend?boolean

When enabled, the model intelligently rewrites and refines your input prompt. Improves results for shorter prompts but increases processing time. Enabled by default.

Example Value: true
watermark?boolean

When enabled, adds an 'AI-generated' watermark in the lower-right corner of the video. Disabled by default.

Example Value: false
seed?number

Controls randomness, range [0, 2147483647]. The same prompt with the same seed yields similar results. Leave empty for random.

Placeholder: Leave blank for random

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": "wan2.6-t2v",
  "prompt": "A breathtaking cinematic wide shot of a pristine coastline at dawn. Seagulls are soaring gracefully over the gentle waves, with the first light of the sun painting the sky in soft oranges and purples. Ultra-high resolution, photorealistic, 8k.",
  "size": "1920*1080",
  "duration": 5,
  "metadata": {
    "input": {
      "audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250929/stjqnq/fox.mp3"
    },
    "parameters": {
      "resolution": "1080P",
      "ratio": "16:9",
      "prompt_extend": true,
      "watermark": false
    }
  }
}'
{
  "task_id": "abcd1234efgh",
  "status": "queued"
}