Docs
Nano Banana Pro API developer guide
Nano Banana Pro is currently "Available". This guide provides model IDs, price snapshots, and copyable examples for integration. Nano Banana Pro model page
Overview
- Vendor: Google
- Type: Image
- Number of tiers: 1
- Endpoint tags: openai, image-task
Available tiers and pricing
The model in requests must use the model IDs in the table below, case-sensitive.
nano-banana-pro
Billed per output at the selected rate
- Resolution: 1k
- $0.018 / output image
- Resolution: 2k
- $0.024 / output image
More price combinations
- Resolution: 4k
- $0.036 / output image
Snapshot time Final charges depend on the actual request and settlement.
Base URL and authentication
Base URL is https://api.rokoapi.com/v1. All requests must include Authorization: Bearer $OPENAI_API_KEY.
Quickstart
curl https://api.rokoapi.com/v1/images/tasks \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-pro",
"prompt": "A serene lake at dawn, photorealistic",
"size": "1:1",
"quality": "1K"
}' Common parameters
| Parameter | Description |
|---|---|
model | Use the public model IDs from the table above. |
prompt / messages | Input prompt, conversation messages, or generation instructions; format depends on the endpoint. |
quality / duration / image_urls | Generation models can accept size, quality, duration, aspect ratio, or reference asset URLs based on model capabilities. |
After a successful async generation task submission, a task ID is returned. Poll GET /v1/tasks/{task_id} until the status becomes completed or failed.
Notes
- Use only the model IDs listed on this page; unprovisioned or retired names will return a model unavailable error.
- If you encounter a 403 error, check your account balance, key group, and model access permissions.
- Multimodal, tool calling, caching, and streaming capabilities depend on the upstream model and channel configuration; refer to actual responses.