text_to_image
Turn text prompts into images by creating a Grok Imagine task on RunAPI. Returns task ID, status, and output URLs for generated images.
Instructions
Create a Grok Imagine 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 generation prompt. | |
| enable_pro | No | Enable Pro image generation mode. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. | |
| callback_url | No | Webhook URL for terminal Task delivery. | |
| poll_interval_ms | No | ||
| enable_safety_checker | No | Enable content safety checks. |