opentweet_generate_image
Generate AI images from text prompts using Grok Imagine and get a permanent URL for use in tweets.
Instructions
Generate an AI image from a text prompt using Grok Imagine (xAI). Returns a permanent URL ready to use in tweets via media_urls. Requires XAI_API_KEY to be configured on the server.
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": "opentweet_generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the image to generate | |
| resolution | No | Image resolution. Default: 1k | |
| aspect_ratio | No | Image aspect ratio. Default: 1:1 |