generate_image
Create images from detailed text prompts using Cloudflare's Flux 1 Schnell model. Specify subject, style, and lighting to produce visual assets like logos or thumbnails.
Instructions
Generate an image from a text prompt using Cloudflare Workers AI (Flux 1 Schnell). Use this tool when the user asks for a picture, illustration, concept art, or visual asset — e.g. logos, scene descriptions, thumbnails, or design mockups. The image is generated by the Flux 1 Schnell model on Workers AI and returned as a base64-encoded string; decode it to obtain the image file (PNG or JPEG depending on the model output). Generation is asynchronous and typically takes a few seconds. Note: Cloudflare applies content moderation — prompts containing NSFW content are rejected with an error. Requires CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN environment variables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Number of diffusion steps. Default 4, maximum 8 for Flux 1 Schnell. More steps improve detail at the cost of latency. | |
| prompt | Yes | Detailed text description of the image to generate. Be specific about subject, style, colors, composition, and lighting for best results. |