# AC Ad > Model `ac-ad` on the Advanced Computing gateway API. Output: video. ## Request POST https://advanced-computing.com/api/v1/generations Authorization: Bearer Send `{ "model": "ac-ad", "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. - `negative_prompt` (string; optional; Up to 2000 characters). What the output should avoid. - `duration` (integer; optional; Exactly 5; default 5). Length of the output video, in seconds. - `resolution` (string; optional; One of: 480p, 1080p; default "480p"). Resolution of the output. - `aspect_ratio` (string; optional; One of: 16:9, 9:16, 1:1; default "16:9"). Width to height ratio of the output. - `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; required; 1 to 2000 characters). What to generate, in natural language. - `negative_prompt` (string; optional; Up to 2000 characters). What the output should avoid. - `first_frame_image_url` (string; required; URL). Image the output starts from. An HTTPS URL, or a data URI of at most 10 MB. - `duration` (integer; optional; Exactly 5; default 5). Length of the output video, in seconds. - `resolution` (string; optional; One of: 480p, 1080p; default "480p"). Resolution of the output. - `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": "ac-ad", "input": { "mode": "text", "prompt": "A paper boat drifts down a rain-filled gutter", "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": "ac-ad", "input": { "mode": "frames", "prompt": "The paper boat drifts away down the gutter", "first_frame_image_url": "https://example.com/paper-boat.png", "resolution": "1080p" } }' ```