ModelRover

Qwen Video

Create Wan and HappyHorse text-to-video, image-to-video, reference, and editing tasks.

Endpoints

POST /v1/services/aigc/video-generation/video-synthesis
POST /v1/videos/generations
Authorization: Bearer $API_KEY
Content-Type: application/json

Both paths are equivalent and accept the same body. The upstream accepts the task immediately; poll via GET /v1/tasks/{taskId}.

Models

ModelCapabilityResolutionsDuration
qwen/wan3.0-videotext, image (first/last frame), reference, edit, extend480P/720P/1080P2–30s or -1 smart
qwen/wan3.0-video-primesame as above (high-speed)480P/720P/1080P2–30s or -1 smart
qwen/wan2.7-t2vtext to video720P/1080P2–15s
qwen/wan2.7-i2vimage to video (first / first+last frame)720P/1080P2–15s
qwen/wan2.7-r2vreference to video720P/1080P2–15s
qwen/wan2.7-videoeditvideo editing720P/1080P2–10s
qwen/happyhorse-1.1-t2vtext to video with audio480P/720P/1080P3–15s
qwen/happyhorse-1.1-i2vimage to video, first frame, with audio480P/720P/1080P3–15s
qwen/happyhorse-1.1-r2vreference to video (1–9 reference images)480P/720P/1080P3–15s
qwen/happyhorse-1.0-video-editvideo editing720P/1080P3–15s

Request body

FieldTypeRequiredDescription
modelstringYesComplete public model ID.
input.promptstringConditionalText prompt; required when no media is provided.
input.mediaarrayConditionalMedia item list; required when no prompt is provided.
parameters.resolutionstringNoDefaults to 1080p. Accepts 480p, 720p, 1080p.
parameters.ratiostringNoAspect ratio; adaptive is recommended for image-to-video and editing modes. Accepts 21:9, 16:9, 9:16, 1:1, adaptive, and others.
parameters.durationintegerNoSeconds; -1 lets the model pick the duration automatically. wan3.0 defaults to -1; others default to 5.
parameters.audiobooleanNoWhether to generate synchronized audio; defaults to true for the HappyHorse series.
callback_urlstringNoPublic terminal callback URL handled by the platform.

Each media item contains a type and url (public URL or base64):

typeDescription
first_frameFirst-frame image
last_frameLast-frame image (requires a first frame)
reference_imageReference image for reference-to-video
reference_videoReference / edit / extend video
reference_audioReference audio
videoSource video for editing

Examples

curl "https://api.modelrover.ai/v1/services/aigc/video-generation/video-synthesis" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "model": "qwen/wan3.0-video",
  "input": {
    "prompt": "Detective noir: a rain-soaked New York street at night, neon signs flickering, a detective in a black trench coat walking briskly"
  },
  "parameters": {
    "resolution": "1080p",
    "ratio": "16:9",
    "duration": -1
  },
  "callback_url": "https://example.com/hooks/video?token=unguessable"
}'

Create response

{
  "output": { "task_id": "9dcf8ab2-c4b7-42be-a516-597223897b99", "task_status": "PENDING" },
  "request_id": "..."
}

output.task_id is rewritten to the platform task ID.

Task response

curl "https://api.modelrover.ai/v1/tasks/9dcf8ab2-c4b7-42be-a516-597223897b99" \
-H "Authorization: Bearer $API_KEY"
{
  "output": {
    "task_id": "9dcf8ab2-c4b7-42be-a516-597223897b99",
    "task_status": "SUCCEEDED",
    "video_url": "https://cdn.qwencloud.com/..."
  }
}

Task statuses are PENDING, RUNNING, SUCCEEDED, and FAILED. Video results are retained for 48 hours—download and transfer them immediately after completion.

Restrictions

  • For wan3.0-video, first-last-frame mode cannot be combined with reference media; different task-type media roles cannot be mixed.
  • parameters.duration: -1 is supported by the wan3.0 series only; passing -1 to other models returns an error.
  • Client routing and paid service-tier selections are rejected.

See Tasks and callbacks for polling, callback delivery, and task lifecycle.

Help us improve this page

Found something unclear, outdated, or incorrect?

Last updated on