Nano Banana 2.1 · 1K
$0.03 per image
- Text-to-image and image editing
Nano Banana 2.1 API - lightning-fast image generation and image editing
Released by Google, Nano Banana 2.1 provides fast image generation and editing for creative projects, content workflows, and AI-powered applications. Try the dedicated 2.1 Playground in PiAPI.
Choose a Nano Banana 2.1 resolution tier. Prices are shown for each resolution.
$0.03 per image
$0.04 per image
$0.09 per image
Developer-first image generation and editing through PiAPI with a dedicated 2.1 Playground and unified integration.
Nano Banana 2.1 produces output at lightning-fast speed, making it a strong fit for rapid creative and production workflows.
Nano Banana 2.1 grounds generations in current information to create more accurate diagrams, layouts, and data-driven visuals.
Nano Banana 2.1 performs strongly on text rendering and multilingual use cases, helping teams create cleaner visual assets with embedded text.
Generate production-ready outputs with flexible aspect ratios, multiple formats, and resolutions up to 4K.
Support for character and object references helps preserve consistency across complex scenes.
Nano Banana 2.1 follows creative instructions closely, giving teams more control over image generation and editing tasks.
Expect richer textures, stronger lighting, and sharper details across outputs, from quick previews to polished assets.
Nano Banana 2.1 delivers high-fidelity image generation and image editing for production workflows.
Use the PiAPI Playground to test Nano Banana 2.1, then ship the same request shape through the unified API.
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini",
"task_type": "nano-banana-2.1",
"input": {
"prompt": "A modern smartphone on a reflective surface with water droplets.",
"aspect_ratio": "1:1",
"resolution": "1K",
"output_format": "png"
}
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'image_urls / image_url
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini",
"task_type": "nano-banana-2.1",
"input": {
"prompt": "A modern smartphone on a reflective surface with water droplets.",
"aspect_ratio": "1:1",
"resolution": "1K",
"output_format": "png",
"image_urls": [
"YOUR_IMAGE_URL"
]
}
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'image_urls / image_url
Nano Banana 2.1 is a Google image generation and editing API available through PiAPI. It supports text-to-image and image-to-image workflows with configurable formats, aspect ratios, and resolutions.
Yes. Upload one or more reference images and describe the change you want. Nano Banana 2.1 supports controlled transformations while keeping key elements consistent.
Full reference and examples for Nano Banana 2.1 are available in the Nano Banana API docs.
When you first sign up in PiAPI's Workspace, you can use free credits to try Nano Banana 2.1 in the playground.
No, we do not offer refunds. New users receive free credits first, so you can test Nano Banana 2.1 before making payments.
Our no-code workspace at piapi.ai/workspace/nano-banana?version=nano-banana-2.1 lets you test the model directly in your browser before integration.
Yes, webhook notifications are available for asynchronous workflows.
Integration is straightforward with our REST API. Use the version-specific task_type, then poll until the completed response contains output.image_urls.
Clear, descriptive prompts and well-chosen reference images usually produce the best results.
There are no hard total generation limits, but request-level constraints depend on the selected model configuration.
Please email us at support@piapi.ai and we would be happy to help.
More questions? See the API docs.
Nano Banana 2.1 API