# Wan 2.7 API on Wizzx - Model ID: `wan-2.7` (Alibaba Wan 2.7) - Submit: `POST https://api.wizzx.ai/api/v1/task/submit/wan-2.7` - Status: `GET https://api.wizzx.ai/api/v1/task/{task_id}` - Idempotency: optional `Idempotency-Key: ` header on submit - Auth: header `Authorization: Bearer $WIZZX_API_KEY` (server-side only) - Price: from $0.124/second, billed in credits; failed tasks are refunded - Page: https://wizzx.ai/model/wan-2.7 - JSON Schema: https://wizzx.ai/api/models/wan-2.7/schema - API reference: https://docs.wizzx.ai/api-reference/endpoint/submit-wan-2-7 ## Flow 1. POST the JSON body to the submit URL. The response contains `data.task_id`. 2. Poll `GET /api/v1/task/{task_id}` until `data.status` is `SUCCEEDED`, then read the output URLs from `data.result_urls`. 3. Stop on `FAILED` or `REVIEW_REQUIRED`. Do not resubmit automatically. ## Parameters | Field | Type | Required | Default | Allowed | Description | |---|---|---|---|---|---| | `prompt` | string | yes | | ≤ 5,000 | Describe the video you want to generate | | `first_frame_image` | url | no | | | Optional opening frame URL. | | `last_frame_image` | url | no | | | Optional closing frame URL (requires First Frame; omit Reference Images). | | `reference_image_urls` | url[] ≤ 5 | no | | | Optional. Up to 5 reference images (max duration 10 seconds). | | `audio_url` | url | no | | | Optional audio URL for driving or voice reference. | | `duration` | integer | no | 5 | 2 – 15 | Video duration in seconds (max 10 seconds when Reference Images are used). | | `resolution` | string | no | 720p | 720p · 1080p | Resolution selects the per-second rate. | | `aspect_ratio` | string | no | 16:9 | 16:9 · 9:16 · 1:1 · 4:3 · 3:4 | | | `prompt_extend` | boolean | no | | | | | `negative_prompt` | string | no | | ≤ 500 | What you don't want in the video (max 500 characters) | | `seed` | integer | no | | 0 – … | Random seed for reproducibility | ## Example body ```json { "resolution": "720p", "duration": 5, "aspect_ratio": "16:9", "prompt": "Aerial drone shot following a lone cyclist on a winding coastal road high above a turquoise sea at golden hour. Waves break on the cliffs below, then the camera slowly rises to reveal the whole coastline." } ```