# Seedream 5.0 Flash > Model `seedream-5-0-flash` on the Advanced Computing gateway API. Output: image. ## Request POST https://advanced-computing.com/api/v1/generations Authorization: Bearer Send `{ "model": "seedream-5-0-flash", "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. - `resolution` (string; optional; One of: 1K, 1.5K, 2K; default "1K"). Resolution of the output. - `aspect_ratio` (string; optional; One of: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9; default "1:1"). Width to height ratio of the output. - `output_format` (string; optional; One of: png, jpeg; default "jpeg"). File format of the output image. ### Mode `reference` - `mode` (string; required; One of: reference). How to generate. Each mode takes its own fields. - `prompt` (string; required; 1 to 2000 characters). What to generate, in natural language. - `reference_image_urls` (array; required; 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. - `resolution` (string; optional; One of: 1K, 1.5K, 2K; default "1K"). Resolution of the output. - `output_format` (string; optional; One of: png, jpeg; default "jpeg"). File format of the output image. - `background` (string; optional; One of: opaque, transparent; default "opaque"). Background of the output image. A channel may refuse a `transparent` background it cannot produce, and the generation then fails. ## 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": "seedream-5-0-flash", "input": { "mode": "text", "prompt": "A ceramic coffee cup on a linen tablecloth, morning light", "resolution": "2K", "aspect_ratio": "4:3" } }' ``` ### Mode `reference` ```bash curl https://advanced-computing.com/api/v1/generations \ -H "Authorization: Bearer $AC_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedream-5-0-flash", "input": { "mode": "reference", "prompt": "Put the cup from Image 1 on the table in Image 2", "reference_image_urls": [ "https://example.com/cup.jpg", "https://example.com/table.jpg" ], "resolution": "2K" } }' ```