DataEyesAI
Official SiteConsoleDocs HomeGetting StartedDeveloper ToolsAI Models API
Official SiteConsoleDocs HomeGetting StartedDeveloper ToolsAI Models API
  1. Wan Video Generation
  • OpenAI format (supports major original models)
    • Chat (Response)
      • Create Network Search
      • Create Model Response GPT-5 Enable Thinking
      • Create Function Call
      • Create Model Response
      • Create Model Response (Streaming Return)
      • Create Model Response (Control Thinking Length)
    • ChatGPT Interface
      • Audio
        • Audio to text gpt-4o-transcribe
        • GPT-4o-audio
        • Audio to text whisper-1
        • Audio to text gpt-4o-transcribe
        • Create voice gpt-4o-mini-tts
      • Chat
        • Create chat-based image recognition (non-streaming)
        • Create chat-based image recognition (streaming)
        • Create chat-based image recognition (streaming) best64
        • Official N test
        • Create structured output
        • Control the effort level of the inference model
        • Create chat function call
        • deepseek-ocr recognition
        • Create chat completion (non-stream)
      • Completions
        • ChatGPT automatic completion
        • Create completion
    • Image
      • Edit image
      • Create chat completion (streaming)
      • Create chat completion (qwen-mt-turbo)
      • Create chat completion with deepseek v3.1 level of reasoning (streaming)
    • Audio
      • Speech recognition
      • Speech synthesis
      • Official Function Calling invocation
      • Create chat-generated images (non-streaming)
    • Embedding
      • Text embeddings
  • Anthropic format
    • Chat
    • Chat(prompt cache)
    • Streaming response
    • Chat (deep reasoning)
    • Tool invocation (function call)
    • Analyze image
  • Google Gemini interface
    • Native format
      • Text-to-image + control over aspect ratio + clarity
      • Generate image
      • Text generation
      • Text generation - stream
      • Text generation + reasoning - stream
      • Image generation
      • Formatted output
      • Function call
      • Document understanding
      • URL context [native format]
      • Code execution
      • Video understanding
      • URL context
      • Video understanding - url [native format]
      • Imagen 4
      • Audio understanding
      • Embeddings
      • Chat
      • Edit image
    • Image-to-image Base64 request method
      • Multi-image fusion slice generation with gemini-3-pro-image-preview, controlling aspect ratio and clarity
      • Image editing
      • Single image gemini-3-pro-image-preview, controlling aspect ratio and clarity.
      • Image generation( gemini-2.5-flash-image)
      • Image generation gemini-2.5-flash-image, controlling aspect ratio.
      • Image understanding
    • Image-to-image URL request returns URL request format OpenAI
      • Single image generation with gemini-3-pro-image-preview, controlling aspect ratio and clarity.
      • Multi-image fusion slice generation with gemini-3-pro-image-preview, controlling aspect ratio and clarity.
      • Image understanding
  • NanoBanana
    • OpenAI request
      • Edit image
      • OpenAI image format
    • Gemini request
      • Generate image
      • Edit image
  • Midjourney format
    • Midjourney API Reference
    • Task query interface
    • Upload image
    • Get seed (Seed)
    • Submit Imagine task
    • Query tasks based on ID list
    • FaceSwap
    • Execute Action operation
    • /mj/submit/blend
    • Submit Describe task
    • Submit Modal
    • Refresh link
    • Edit image
    • Query task status by task ID
    • Get the seed of the task image
  • Doubao - Painting
    • doubao-seededit-3-0-i2i-250628
    • doubao-seedream-4-0-250828 - text-to-image
    • doubao-seedream-4-0-250828 - image-to-image
    • doubao-seedream-4-0-250828 - multi-image generation
  • Rerank Reordering Model
    • Rerank
  • Video Model
    • Grok Video Generation
      • 00-Overview
      • 01-Text-to-Video
      • 02-Image-to-Video
      • 03-Reference-to-Video
      • 04-Video-Editing
      • 05-Video-Extension
    • Seedance Video Generation
      • 00-Overview
      • 01-Create-Video-Generation-Task
      • 02-Query-Video-Generation-Task
      • 03-Query-Video-Generation-Task-List
      • 04-Cancel-or-Delete-Task
      • Seedance Private Asset Library API Documentation
    • MiniMax-H3 Video Generation
      • 00-Overview
      • 01-Create-Video-Generation
      • 02-Create-Video-Regeneration
      • 03-Create-H3-Context-IR
      • 04-Query-Task
      • 05-List-Tasks
      • 06-Cancel-or-Delete-Task
    • Hailuo Video Generation
      • 00-Overview
      • 01-Text-to-Video-T2V
      • 02-Image-to-Video-I2V
      • 03-First-Last-Frame-FL2V
      • 04-Subject-Reference-S2V
      • 05-Query-Task-Status
      • 06-Video-Download
      • 99-Appendix-Camera-Movement-and-Webhooks
    • Jimeng Video Generation
      • 00-Overview
      • 01-3.0-Pro-Video-Generation
      • 02-720P-Text-to-Video
      • 03-720P-Image-to-Video-First-Frame
      • 04-720P-Image-to-Video-Start-End-Frame
      • 05-720P-Image-to-Video-Camera
      • 06-1080P-Text-to-Video
      • 07-1080P-Image-to-Video-First-Frame
      • 08-1080P-Image-to-Video-Start-End-Frame
      • 09-Error-Codes
    • Kling AI Video Generation
      • 00-Overview
      • 01-Text-to-Video
      • 02-Image-to-Video
      • 03-Omni-Video
      • 04-Multi-Image-to-Video
      • 05-Motion-Control
      • 06-Multi-Elements
      • 07-Video-Extension
      • 08-Lip-Sync
      • 09-Avatar
      • 10-Text-to-Audio
      • 11-Video-to-Audio
      • 12-TTS
      • 13-Custom-Voices
      • 14-Image-Recognition
      • 15-Element-Management
      • 16-Video-Effects
    • Vidu Video Generation
      • 00-Overview
      • 01-Text-to-Video
      • 02-Image-to-Video
      • 03-Reference-to-Video
      • 04-Start-End-Frame
      • 05-Multi-Frame
      • 06-Scene-Template
      • 07-Template-Story
      • 08-Query-Tasks
    • HappyHorse
      • HappyHorse Text-to-Video
      • HappyHorse Image-to-Video (First Frame)
      • HappyHorse Reference-to-Video
      • HappyHorse Video Editing
    • Wan Video Generation
      • 00-Overview.md
      • 01-Text-to-Video
      • 02-Image-to-Video
      • 03-Reference-to-Video
      • 04-Video-Editing
      • 05-First-Last-Frame-to-Video
      • 06-Motion-Transfer-and-Character-Swap
      • 07-Digital-Human-Video
      • 08-VACE-Video-Editing
      • 09-Query-Task
  • Audio API
    • Audio API
    • Gemini TTS API
    • Google DeepMind Lyria API
    • Elevenlabs Speech to Text API Reference
    • Text-to-Music Suno
      • Task Submission
        • Generate Song (Inspiration Mode)
        • Generate Song (Custom Mode)
        • Generate Song (Continuation Mode)
        • Generate Song (Singer Style)
        • Generate Song (Secondary Creation from Uploaded Song)
        • Generate Song (Song Stitching)
        • Generate Lyrics
        • Song Stitching
      • Query Interface
        • Batch Retrieve Tasks
        • Query Single Task
  1. Wan Video Generation

04-Video-Editing

Video Editing#

Doc version:v1.0.0 | Last updated:2026-07-22
This platform fully supports the official Tongyi Wanxiang (Wan) video generation API. Requests and responses are transparently proxied; parameter semantics are identical to the official API.
Edit an existing video via text instructions (wan2.7-videoedit). Two usage patterns are supported:
Capabilitymedia compositionDescription
Instruction-only editingOnly 1 videoModify video content directly via instructions: add/remove/modify elements, change colors, modify environment or background, convert video style, change character behavior/lines/camera work, etc.
Instruction + reference-image editing1 video + up to 4 reference_imageApply elements from reference images (clothing, props, etc.) to the video, or replicate motion/camera moves/effects (video transfer)
Tasks are asynchronous: task creation returns output.task_id, then poll the query endpoint for the result. Generation typically takes 1–5 minutes.

Create Task#

POST https://platform.dataeyes.ai/ali/api/v1/services/aigc/video-generation/video-synthesis

Request Headers#

ParameterTypeRequiredDefaultDescription
Content-TypestringYesapplication/jsonData exchange format
AuthorizationstringYesAuthentication, Bearer {API_KEY}
The X-DashScope-Async: enable header required by the official API is automatically added by the platform — no need to include it in your request.

Request Body#

ParameterTypeRequiredDefaultDescription
modelstringYesModel identifier, fixed to wan2.7-videoedit
inputobjectYesBasic input information
input.promptstringNoEditing instruction prompt describing the desired elements and visual characteristics. Chinese or English, ≤ 5000 characters, automatically truncated if longer
input.negative_promptstringNoNegative prompt describing content you do not want to appear. ≤ 500 characters, automatically truncated if longer
input.mediaarrayYesList of media assets; elements are {type, url} objects. Exactly 1 video; up to 4 reference_image
input.media[].typestringYesvideo: the video to edit (required)
reference_image: reference image (optional)
input.media[].urlstringYesAsset location. Videos only support public URLs (HTTP/HTTPS); images support public URLs or Base64 (data:{MIME_type};base64,{base64_data}, supporting JPEG/PNG/BMP/WEBP)
parametersobjectNoVideo processing parameters
parameters.durationintegerNo0Output video duration in seconds. Default 0 means the input video's duration is inherited directly, with no truncation; only pass an integer in [2, 10] when truncation is needed — the system trims the source video from second 0 to that length
parameters.resolutionstringNo1080POutput resolution tier, options 720P, 1080P
parameters.ratiostringNoApproximate ratio of the input videoOutput aspect ratio, options 16:9, 9:16, 1:1, 4:3, 3:4; if omitted, the output uses an approximate ratio based on the input video
parameters.audio_settingstringNoautoAudio setting. auto: the model decides intelligently based on the prompt (when the instruction involves audio descriptions the audio may be regenerated, otherwise the original audio may be kept); origin: force keeping the input video's original audio, no regeneration
parameters.prompt_extendbooleanNotrueWhether to enable intelligent prompt rewriting. Noticeable improvement for shorter prompts, but increases processing time
parameters.watermarkbooleanNofalseWhether to add an "AI-generated" watermark in the bottom-right corner of the video
parameters.seedintegerNoRandomRandom seed, range [0, 2147483647]. A fixed seed improves reproducibility but does not guarantee identical results
duration=0 semantics (important): parameters.duration defaults to 0, meaning the output duration inherits the input video's duration; when you want the output to match the input length, no setting is needed (or pass 0). Since the actual duration can only be determined after the task completes, rely on the usage field in the query result.

resolution × ratio Output Resolution Table#

TierAspect ratioOutput (width × height)
720P16:91280×720
720P9:16720×1280
720P1:1960×960
720P4:31104×832
720P3:4832×1104
1080P16:91920×1080
1080P9:161080×1920
1080P1:11440×1440
1080P4:31648×1248
1080P3:41248×1648

Input Asset Requirements#

Video to edit (type=video):
ItemConstraint
CountExactly 1 (required)
FormatMP4, MOV
Duration2–10 seconds
ResolutionBoth width and height in [240, 4096] pixels
Aspect ratio1:8 ~ 8:1
File size≤ 100MB
Input methodPublic URL (HTTP/HTTPS); Base64 not supported
Reference image (type=reference_image):
ItemConstraint
CountUp to 4 (optional)
FormatJPEG, JPG, PNG (alpha channel not supported), BMP, WEBP
ResolutionBoth width and height in [240, 8000] pixels
Aspect ratio1:8 ~ 8:1
File size≤ 20MB
Input methodPublic URL or Base64

Request Example#

curl --request POST \
  --url 'https://platform.dataeyes.ai/ali/api/v1/services/aigc/video-generation/video-synthesis' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "wan2.7-videoedit",
    "input": {
      "prompt": "Paint the exterior walls of the building in the video a vivid red",
      "media": [
        {
          "type": "video",
          "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260409/dozxak/Wan_Video_Edit_33_1.mp4"
        }
      ]
    },
    "parameters": {
      "audio_setting": "origin",
      "duration": 0
    }
  }'

Response Example#

{
  "output": {
    "task_status": "PENDING",
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx"
  },
  "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx"
}

Response Fields#

FieldTypeDescription
output.task_idstringTask ID, used to query the result; valid for 24 hours
output.task_statusstringTask status, PENDING on successful creation
request_idstringUnique request identifier, used for tracing and troubleshooting
code / messagestringReturned only when creation fails; error code and details

Billing Notes#

After the query task succeeds, the fields in usage are the basis for billing (qualitative description; see the platform pricing page for unit prices):
usage.duration: total billed duration in seconds = input video duration + output video duration (input_video_duration + output_video_duration);
usage.SR: output video resolution tier (e.g. 720, 1080), which together with duration determines the cost;
Input reference images are not billed; failed tasks incur no charges.

Query Task#

Poll the task status with the task_id returned by task creation; once successful, get the video from output.video_url (valid for 24 hours).
GET https://platform.dataeyes.ai/ali/api/v1/tasks/{task_id}
See 09-Query-Task for details.
Previous
03-Reference-to-Video
Next
05-First-Last-Frame-to-Video