Mogu IO/Models/

Wan 3.0 Video Edit

Video

Model Information

Model IDalibaba/wan-3.0
CategoryVideo
Endpoint/api/v1/videos

Create Task

POST https://mogu.io/api/v1/videos

Authentication: Authorization: Bearer <api-key>

Request Parameters

ParameterTypeRequiredDefaultDescription
modelstring✓Model ID: alibaba/wan-3.0
seednumber (-1..2147483647)-1Random seed (-1 for random)
videourl✓Source video URL to edit (first 15 seconds are used)
promptstring✓Editing instructions for the source video
durationnumber (2..15)5Output duration in whole seconds (2 to 15)
resolutionenum: 480p | 720p | 1080p"720p"Output video resolution
generate_audiobooleantrueGenerate audio; disable to preserve the source audio when available
reference_audiosarray<url>Optional reference audio, up to 5 clips and 15 seconds combined
reference_imagesarray<url>Optional reference images, up to 10
enable_prompt_expansionbooleanfalseEnable automatic prompt expansion

Code Examples

# Step 1: Create task
curl -X POST https://mogu.io/api/v1/videos \
  -H "Authorization: Bearer <api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "alibaba/wan-3.0",
  "seed": -1,
  "video": "https://example.com/image.jpg",
  "prompt": "Your prompt here",
  "duration": 5,
  "resolution": "720p",
  "generate_audio": true,
  "enable_prompt_expansion": false
}'

# Step 2: Poll for result
curl https://mogu.io/api/v1/videos/{task-id} \
  -H "Authorization: Bearer <api-key>"

Response

Create Response (202)

{
  "id": "task-uuid",
  "status": "pending",
  "polling_url": "/api/v1/videos/task-uuid"
}

Poll: GET https://mogu.io/api/v1/videos/:id — Completed

{
  "id": "task-uuid",
  "status": "completed",
  "output": {
    "urls": [
      "https://cdn.example.com/video.mp4"
    ]
  },
  "credit": 4000
}

Poll every 3-5 seconds. Status values: pending → in_progress → completed | failed

Error Codes

HTTPTypeDescription
400invalid_request_errorInvalid parameters
400content_moderationContent blocked by safety system
400input_too_largeInput exceeds model limit
401auth_errorInvalid API key
402insufficient_creditsNot enough credits
429rate_limit_errorToo many requests
502provider_errorUpstream error, retry later
504timeout_errorRequest timed out
Try in PlaygroundAPI ReferenceAll Models