create_variation
Generate up to four variations of an existing image while preserving its style and composition, with configurable size and model.
Instructions
图生图变体:Create variations of an existing image. Keeps the overall style and composition while generating new versions (保持风格和构图,生成变体).
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": {
"image": "<image>"
},
"name": "create_variation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of variations to generate. Default: 1 | |
| size | No | Output image size. Default: 1024x1024 | |
| image | Yes | Base64-encoded PNG image or URL to create variations from | |
| model | No | Model to use. Defaults to gpt-image-2.5-sunburst |