text_to_image
Generate images from text prompts using Flux 2 models on RunAPI. Submit a prompt, choose model and settings, and receive task status and output image URLs.
Instructions
Create a Flux 2 task on RunAPI (text to image). Returns a task id, status, and output URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | Yes | Image description. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. | |
| callback_url | No | Webhook URL for async notifications. | |
| output_count | No | Number of images to generate. | |
| poll_interval_ms | No | ||
| output_resolution | No | Output resolution. | |
| enable_safety_checker | No | Enable the safety checker. |