generate_image
Create a 1K PNG image from a text prompt with a chosen aspect ratio, saving it to a local path; failed or refused generations are refunded automatically.
Instructions
Generate a 1K PNG image from a text prompt using Plantain (Nano Banana 2.1). Costs 1 credit (€0.02, less in bulk packs). Failed or refused generations are automatically refunded.
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 |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate (max 2000 characters). | |
| output_path | No | Optional local file path to save the generated PNG (e.g. ./out/hero.png). | |
| aspect_ratio | No | Output aspect ratio. 1:1 is 1024x1024; other ratios are ~1K on the long side. | 1:1 |