Text to image
image-gen_v1Returns JSON with a 1024x1024 JPEG generated from a text prompt by FLUX.1 schnell on Workers AI, as base64. Use when you need image generation or text to image from a prompt for illustrations or mockups and can poll an async job. Do not use when you need image edits, a specific size, photos of real people or more than one image per call. Price: 0.03 USDC per call. Asynchronous: the paid call returns a jobId and a free pollUrl; typical job time: 10000 ms (p95).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Diffusion steps (1-8, 4 when omitted); more steps, more detail | |
| prompt | Yes | What the image should show, in English |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||