# Wan 3.0 > Model `wan-3` on the Advanced Computing gateway API. Output: video. ## Request POST https://advanced-computing.com/api/v1/generations Authorization: Bearer Send `{ "model": "wan-3", "input": { ... } }`. The request is asynchronous: it returns 202 with a generation object; poll `GET https://advanced-computing.com/api/v1/generations/{id}` or pass `webhook_url` to be called when it finishes. ## Input fields Unknown fields are rejected with a 400 error. `mode` is required: it names how to generate, and each mode takes its own fields (fields ending in `_url` or `_urls` are input assets). ### Mode `text` - `mode` (string; required; One of: text). How to generate. Each mode takes its own fields. - `prompt` (string; required; 1 to 2000 characters). What to generate, in natural language. - `duration` (integer | string; optional; 2 to 30; or one of: auto; default 5). Length of the output video, in seconds, or `auto` to let the model choose. - `resolution` (string; optional; One of: 480p, 720p, 1080p; default "1080p"). Resolution of the output. - `aspect_ratio` (string; optional; One of: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16). Width to height ratio of the output. Left out, the model chooses. - `generate_audio` (boolean; optional; default true). Whether the output video has sound. - `enhance_prompt` (boolean; optional; default true). Whether the model may rewrite the prompt in more detail before generating. - `seed` (integer; optional; 0 to 2147483647). Fixes the random seed, so the same input repeats its output. ### Mode `frames` - `mode` (string; required; One of: frames). How to generate. Each mode takes its own fields. - `prompt` (string; optional; 1 to 2000 characters). What to generate, in natural language. - `first_frame_image_url` (string; required; URL). Image the output starts from. An HTTPS URL, or a data URI of at most 10 MB. - `last_frame_image_url` (string; optional; URL). Image the output ends on. An HTTPS URL, or a data URI of at most 10 MB. - `duration` (integer | string; optional; 2 to 30; or one of: auto; default 5). Length of the output video, in seconds, or `auto` to let the model choose. - `resolution` (string; optional; One of: 480p, 720p, 1080p; default "1080p"). Resolution of the output. - `aspect_ratio` (string; optional; One of: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16). Width to height ratio of the output. Left out, the model chooses. - `generate_audio` (boolean; optional; default true). Whether the output video has sound. - `enhance_prompt` (boolean; optional; default true). Whether the model may rewrite the prompt in more detail before generating. - `seed` (integer; optional; 0 to 2147483647). Fixes the random seed, so the same input repeats its output. ### Mode `reference` - `mode` (string; required; One of: reference). How to generate. Each mode takes its own fields. - `prompt` (string; optional; 1 to 2000 characters). What to generate, in natural language. - `reference_image_urls` (array; optional; 1 to 10 items). Images the output follows, in order: a prompt can refer to them by position. Each is an HTTPS URL, or a data URI of at most 10 MB; data URIs total at most 20 MB per request. Send at least one image, video or audio. - `reference_video_urls` (array; optional; 1 to 5 items). Videos the output follows, in order: a prompt can refer to them by position. Each is an HTTPS URL. Send at least one image, video or audio. - `reference_audio_urls` (array; optional; 1 to 5 items). Audio the output follows, in order: a prompt can refer to it by position. Each is an HTTPS URL. Send at least one image, video or audio. - `duration` (integer | string; optional; 2 to 30; or one of: auto; default 5). Length of the output video, in seconds, or `auto` to let the model choose. - `resolution` (string; optional; One of: 480p, 720p, 1080p; default "1080p"). Resolution of the output. - `aspect_ratio` (string; optional; One of: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16). Width to height ratio of the output. Left out, the model chooses. - `generate_audio` (boolean; optional; default true). Whether the output video has sound. - `enhance_prompt` (boolean; optional; default true). Whether the model may rewrite the prompt in more detail before generating. - `seed` (integer; optional; 0 to 2147483647). Fixes the random seed, so the same input repeats its output. ## Example requests ### Mode `text` ```bash curl https://advanced-computing.com/api/v1/generations \ -H "Authorization: Bearer $AC_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan-3", "input": { "mode": "text", "prompt": "A paper boat drifts down a rain-filled gutter at dusk", "duration": 10, "resolution": "1080p", "aspect_ratio": "16:9" } }' ``` ### Mode `frames` ```bash curl https://advanced-computing.com/api/v1/generations \ -H "Authorization: Bearer $AC_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan-3", "input": { "mode": "frames", "prompt": "The paper boat sails out of frame as the rain stops", "first_frame_image_url": "https://example.com/boat-start.png", "last_frame_image_url": "https://example.com/boat-end.png", "duration": "auto", "resolution": "720p" } }' ``` ### Mode `reference` ```bash curl https://advanced-computing.com/api/v1/generations \ -H "Authorization: Bearer $AC_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan-3", "input": { "mode": "reference", "prompt": "The cat from Image 1 walks the path in Video 1, purring to Audio 1", "reference_image_urls": [ "https://example.com/cat.png" ], "reference_video_urls": [ "https://example.com/garden-path.mp4" ], "reference_audio_urls": [ "https://example.com/purr.mp3" ], "duration": 10, "resolution": "1080p" } }' ```