generate_image
Generate an image from a text description using Grok's Aurora model and save it to a file. Supports multiple variations and custom models.
Instructions
Generate an image using Grok's Aurora image model and save it to a local file. Default model: grok-imagine-image-quality. Use the optional 'model' parameter to use a different image model.
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>",
"file_path": "<file_path>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of image variations to generate (1-10, default 1) | |
| model | No | Image model to use for this request. Defaults to "grok-imagine-image-quality". Use list_models to see available image models. | |
| prompt | Yes | Text description of the image to generate | |
| file_path | Yes | Path where the image file should be saved. Relative paths resolve from cwd; absolute paths must be within SAFE_WRITE_BASE_DIR (or cwd if unset). Example: images/output.png |