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.7-Videoedit (wan2.7-videoedit)
wan2.7-videoedit0 models support this endpoint

Wan2.7 video editing supports both localized and global edits using prompts. Seamlessly replaces elements with image references and replicates complex dynamic processes, including motion, special effects, and camera movements. https://bailian.console.alibabacloud.com/cn-beijing?tab=model#/model-market/detail/wan2.7-videoedit?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.

video_url*string

Required. Upload the video to edit (mp4/mov, 2-10s, ≤100MB).

RequiredExample Value: https://static.modelstream.ai/demo/wan/wan2.7-r2v_result.mp4
reference_images?array

Upload up to 4 reference images for local edits or style guidance.

Value Range: 0 ≤ value ≤ 4
prompt*string

Describe how you want to modify the video (e.g., convert to claymation, change background). Max 5000 chars.

RequiredExample Value: Transform the entire video into a stunning, high-detail claymation style. Enhance the textures to look like real hand-sculpted clay, and apply a subtle stop-motion aesthetic to the character movements. Maintain the original composition and lighting.
negative_prompt?string

Optional. Describe content to exclude, max 500 chars.

Example Value: low resolution, blurry, distorted, deformed, flickering, noisy
resolution?string

Output resolution tier, 720P or 1080P; directly affects cost. Default 1080P.

Example Value: 1080P
Enum/Options:
1080P720P
ratio?string

Output video aspect ratio: 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

Truncate video to specified seconds. Set to 0 to keep original duration.

Example Value: 0Value Range: 0 ≤ value ≤ 10step: 1
audio_setting?string

'Auto' regenerates the soundtrack; 'Origin' keeps the original video's audio. Default Auto.

Example Value: auto
Enum/Options:
Auto: autoOrigin: origin
prompt_extend?boolean

When on, an LLM intelligently rewrites your prompt. Enabled by default.

Example Value: true
watermark?boolean

Add a fixed 'AI生成' watermark to the bottom-right of the video. Disabled by default.

Example Value: false
seed?number

Random seed, range [0, 2147483647]. System generates a random seed when unspecified.

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.7-videoedit",
  "prompt": "Transform the entire video into a stunning, high-detail claymation style. Enhance the textures to look like real hand-sculpted clay, and apply a subtle stop-motion aesthetic to the character movements. Maintain the original composition and lighting.",
  "size": "1080P",
  "duration": 0,
  "metadata": {
    "input": {
      "media": [
        {
          "type": "video",
          "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260402/ldnfdf/wan2.7-videoedit-style-change.mp4"
        }
      ],
      "negative_prompt": "low resolution, blurry, distorted, deformed, flickering, noisy",
      "audio_setting": "auto"
    },
    "parameters": {
      "ratio": "16:9",
      "prompt_extend": true,
      "watermark": false
    }
  }
}'
{
  "task_id": "abcd1234efgh",
  "status": "queued"
}