generate_image
Generate high-resolution AI images from text prompts, adjusting size and quality as needed. Uses ImageAPI credits.
Instructions
Generate a fresh high-resolution AI image from a text prompt. Deducts credits from your ImageAPI account.
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_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Image width in pixels (Default: 512). Range: 256 to 2048. | |
| height | No | Image height in pixels (Default: 512). Range: 256 to 2048. | |
| prompt | Yes | The detailed text prompt describing the image to generate. | |
| quality | No | Inference quality level (Default: medium). | medium |