generate_image
Generate images by sending a text prompt to the Grok media endpoint, returning parsed image URLs. Supports aspect ratios, multiple modes, and optional cookie-based authentication.
Instructions
Generate images through the working Grok media endpoint and return parsed image URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | fast or expert | fast |
| count | No | ||
| extra | No | Optional payload fields merged into the Grok request. | |
| prompt | Yes | ||
| account | No | Optional Grok account name from cookies/<name>.json. Overrides cookies.json if provided. | |
| cookies | No | Optional Grok cookies. If omitted, server uses account or cookies.json. | |
| timeout | No | ||
| enable_nsfw | No | ||
| aspect_ratio | No | Examples: 16:9, 9:16, 1:1, 2:3, 3:2 | |
| send_to_telegram | No | ||
| telegram_caption | No | ||
| telegram_chat_id | No | ||
| telegram_bot_token | No |