generate_image
Create blog cover images with Google Gemini AI, automatically convert to WebP format, upload to CDN, and return optimized image URLs for web use.
Instructions
Generate an image using Google Gemini AI, convert to WebP format, upload to Qiniu CDN, and return the CDN URL
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>",
"slug": "<slug>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The text prompt describing the image to generate | |
| slug | Yes | The slug identifier for the filename (will be prefixed with date) | |
| path | No | Upload directory path on CDN (default: 'aigc/image') | aigc/image |