Generate image
generate_imageCreate an image from a text prompt using OpenAI-compatible or Volcengine Ark providers, returning image content and metadata with optional local saving.
Instructions
Generate one image from a text prompt using configured OpenAI-compatible or Volcengine Ark (Seedream) providers. Uses the same settings as the standalone CLI. Returns image content and metadata; optionally saves to a new local file. This is image creation, not image analysis, and works regardless of native vision capability.
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 | Provider-supported image size, e.g. 1024x1024 or 2K for Ark; omitted uses provider default | |
| prompt | Yes | Description of the image to create | |
| quality | No | OpenAI-compatible quality; not supported by volcengine-ark, omit for Ark | |
| output_path | No | Optional local file path; parent must exist and file must not exist |