Generate Image
sirv_generate_imageCreate 1–4 new images from a text prompt when no source image exists; choose the model, aspect ratio, and image count.
Instructions
Generate 1 to 4 new images from a text prompt.
Use it when there is no source image. Do not use it to change an existing image (use sirv_edit_image) or to put a real product into a scene (use sirv_place_product_in_scene).
Inputs: prompt is required. model defaults to nano-banana-2-lite, aspect_ratio to 1:1 and num_images to 1.
Returns result_urls, one URL for each image.
Credits: spends workspace credits. The cost depends on the model and options.
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": "sirv_generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Image model. Default: nano-banana-2-lite | nano-banana-2-lite |
| prompt | Yes | The image to make, in words, up to 2000 characters | |
| num_images | No | How many images to make, 1 to 4. Default: 1 | |
| aspect_ratio | No | Width to height of the images. Default: 1:1 | 1:1 |