text_to_image
Generate images from text prompts via Grok Imagine. Submit a prompt, get task ID, status, and output URLs, with optional polling and webhook support.
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 | Not accepted by this model. | |
| 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 | Not accepted by this model. |