Generate an image
generate_imageRender an image and return a run id. Poll get_run_status for the URL. Call quote first if the budget matters.
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 |
|---|---|---|---|
| seed | No | ||
| model | No | Model id from list_models. Omit or pass "auto" for the default (nano-banana). | |
| prompt | Yes | What to render. Specific beats poetic. Describe what IS in the frame, never what is absent — the default model has no negative prompt, and naming a thing to exclude ("no text", "its green light off") tends to paint it instead. | |
| ref_urls | No | Reference images for identity or composition. Only some models accept these — check list_models. | |
| aspect_ratio | No | 9:16 for feeds and stories, 16:9 for landscape, 1:1 for square placements. | 9:16 |
| output_format | No |