generate_image
Create images from text prompts using Agnes Image 2.1 Flash. Specify size, aspect ratio, and negative prompt to get an image URL or base64 data.
Instructions
Generate an image using Agnes Image 2.1 Flash. Returns the image URL or base64 data.
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 |
|---|---|---|---|
| size | No | Resolution tier: 1K (default), 2K, or 4K | |
| ratio | No | Aspect ratio (default 1:1). Options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 | |
| prompt | Yes | Text description of the image to generate | |
| negative_prompt | No | Things to avoid in the generated image |