generate_grok_image
Creates images from text prompts using Grok through snapgen, with options for speed/quality, orientation, and multiple results.
Instructions
Generate an image with Grok. POST /uapi/v1/imagen/grok.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_grok_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | SPEED | |
| prompt | Yes | ||
| file_urls | No | ||
| num_result | No | ||
| orientation | No | landscape | |
| ref_history | No |