Nano Banana Pro image generation
A Nano Banana Pro text-to-image API. Generates images from a text prompt, optionally guided by one reference image, at 1K, 2K, or 4K.
3 specifications · Category: image tools
1. Overview
Supported specifications
Choose the tool ID for the specification you need. Availability and quota depend on your account's catalog.
Use cases
- Generate product scenes and marketing visuals from a written brief.
- Restyle or extend an existing image by passing it as a reference image.
Before you call
Write a prompt. Reference images are optional. You can pass up to 1 image. Generation tools require catalog version v2.0.3 or later: send "version": "v2.0.3" in the config request, or use Python SDK v2.0.3 or later. Check the config API or SDK task catalog to confirm that your account can use the tool ID you choose. Listing the catalog does not consume quota.
2. Try it
The examples use Nano Banana Pro 1K (SKM0023). To use another specification, replace the tool ID. vmake_run and the SDK load that specification's task, task_type, params, and profile from the config.
First paste the setup commands from HTTP API quick start into Bash. They define vmake_run, which gets the config, consumes quota, submits the task, and polls until it finishes. Reference images are optional. You can pass up to 1 image. To use them, add their HTTPS URLs after the parameters.
This command consumes quota.
The function prints data from the final response. When data.status is 10, read the output from data.result. When it is 2 or 20, read data.msg and see Errors and troubleshooting. To see each request on its own, follow the steps from Get config to Poll task status.
3. Parameters
With Python, pass the fields to override as a dict in params of SkillClient.run_task. With the CLI, pass the same structure as JSON to --params. With vmake_run, pass it as the second argument. For hand-built HTTP requests, merge these fields into the defaults from Get config, serialize the merged object as a JSON string, and use it as params in the submission request. Keep parameter.material_id from the defaults. It must match the tool ID you consume quota with. Send the same overrides as params in the quota request.
3.1 Aspect ratio (parameter.aspect_ratio)
3.2 Prompt (parameter.prompt)
Describe the subject, style, and composition. Required.
The JSON below shows the fields to override.
4. Reference
4.1 Task settings
These are the config values for each specification. Always use the current values from the config API. For HTTP submission, serialize params as a JSON string and, when present, copy the complete profile object to init_images[0].profile. The SDK handles this mapping automatically.
Nano Banana Pro 1K · SKM0023
Nano Banana Pro 2K · SKM0024
Nano Banana Pro 4K · SKM0025
4.2 Limits
4.3 Processing time
- Processing time depends on the model, resolution, and duration. Actual calls are authoritative.
- Follow
status_query.durationsfrom the token policy for polling intervals.vmake_runand the SDK poll automatically.
4.4 Pricing
- Quota is deducted before each submission.
vmake_runand the SDK do this automatically. Unit prices and free quota follow your plan and the selected tool ID. - If a task fails, the quota deducted for that task is returned to your account.
- Querying an existing task does not deduct quota again. Submitting again deducts quota again.