generate_image
Generate images from text prompts or modify reference images with AI. Choose from various aspect ratios and set random seeds for consistent results.
Instructions
Generate images using Volcengine visual generation API.
CRITICAL INSTRUCTIONS FOR AI AGENTS:
For image size, ONLY use the 'size' parameter (e.g., size="16:9"). DO NOT pass a 'ratio' or 'width'/'height' parameter.
If the user provides a custom Endpoint ID (starts with 'ep-'), you MUST pass it into the 'model' parameter.
Capabilities:
Text-to-Image: Provide 'prompt' and 'size'.
Image-to-Image: Provide 'prompt' AND 'image_urls' (list containing 1 image string).
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": {
"params": "<params>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |