Vertex imagen generate
vertex.imagen.generateGenerate one or more images from a text prompt, with optional model and aspect ratio controls, returning base64-encoded output for downstream use.
Instructions
Generate n images, returned as base64 (default model gemini-3.1-flash-image; pass model to override). Incurs Vertex cost per image.
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": "vertex.imagen.generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| model | No | ||
| prompt | Yes | ||
| aspect_ratio | No | 1:1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||