text_to_image
Create a Grok Imagine image generation task on RunAPI from a text prompt; receive a task id, status, and output URLs for polling or webhook delivery.
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. Declared type: string. | |
| enable_pro | No | Not accepted by this model. Declared type: boolean. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. Declared type: string. Known values: "1:1", "2:3", "3:2", "16:9", "9:16". | |
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| poll_interval_ms | No | ||
| enable_safety_checker | No | Not accepted by this model. Declared type: boolean. |