grok_image
Generate or edit images by providing a prompt, image path, or mask with customizable parameters like aspect ratio and resolution.
Instructions
Generate or edit images through /images/generations or /images/edits. Defaults to grok-imagine-image and grok-imagine-image-quality.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "grok_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | ||
| image_path | No | ||
| mask_path | No | ||
| model | No | ||
| aspect_ratio | No | ||
| resolution | No | ||
| size | No | ||
| n | No | ||
| response_format | No |