image_generation
Generate images from text prompts through the Grok AI API, with configurable size, count, and response format.
Instructions
Generate images via /v1/images/generations using grok-imagine-1.0.
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": "image_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| size | No | ||
| prompt | Yes | Image generation prompt. | |
| stream | No | 暂不支持 true;当前仅支持 false/留空 | |
| timeout_ms | No | Optional timeout override | |
| response_format | No |