text_to_image
Convert text prompts into images via RunAPI's Flux Kontext model. Returns a task ID, status, and output URLs for generated or edited images.
Instructions
Create a Flux Kontext 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 (English only). | |
| watermark | No | Watermark identifier. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. Default: 16:9. | |
| callback_url | No | Webhook URL for async notifications. | |
| output_format | No | Output format. Default: jpeg. | |
| poll_interval_ms | No | ||
| safety_tolerance | No | Content safety threshold. 0-6 for generation, 0-2 for editing. Default: 2. | |
| source_image_url | No | Source image URL for editing mode. | |
| enable_translation | No | Auto-translate non-English prompts. Default: true. | |
| enable_prompt_expansion | No | Expand the prompt with more detail. Default: false. |