generate_image
Turn text descriptions into images with CogView-4. Control size and quality, then save the output to a local path.
Instructions
Generate an image from text prompt using CogView-4 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>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size. Default: 1024x1024 | |
| prompt | Yes | Text description of the image to generate | |
| quality | No | Image quality. hd: higher quality but slower (20s), standard: faster (5-10s). Default: standard | |
| save_path | No | Local path to save the generated image |