NanoBanana API
Pricing
from $40.00 / 1,000 1ks
NanoBanana API
NanoBanana Image API lets you submit AI image generation tasks and query task status with simple, production-ready inputs. It supports prompt-based generation, optional image references, aspect ratio and size controls (1K/2K/4K), plus webhook callback.website: [NanoBanana](https://zh-nanobanana.com)
Pricing
from $40.00 / 1,000 1ks
Rating
0.0
(0)
Developer
ImageAI Bot
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
2
Monthly active users
4 days ago
Last modified
Categories
Share
NanoBanana Image API
Create high-quality AI images on Apify with a simple, low-cost workflow.
This Actor is designed for users who want:
- Cheap, predictable pricing by image size
- A fast and simple way to submit image generation tasks
- Support for
1K,2K, and4Koutput tiers - A clean query flow to check task status and get the final image URL
Other image API
Why use this Actor
- Low cost for testing and production usage
- Easy to use directly from Apify Console or API
- Flexible input for both single-prompt and reference-image workflows
- Built-in size selection for different quality and price needs
Input
Generate task
Use operation=generate when you want to create an image task.
Required:
prompt
Optional:
imgUrls- reference images, up to 5aspectRatio-auto,1:1,2:3,3:2,3:4,4:3,4:5,5:4,9:16,16:9,21:9size-1K,2K, or4KnotifyHook- webhook callback URL
Query task
Use operation=query when you want to check task status.
Required:
taskId
Pricing
Pricing is based on the selected size:
1K- best for quick tests and lower cost2K- balanced quality and cost4K- highest quality tier
You can set your own prices for each tier through environment variables.
Quick Demo
The default input already includes sample text and two sample reference images, so you can test it immediately.
Demo 1: Generate an image task
{"operation": "generate","prompt": "The woman in picture 1 is wearing the clothes from picture 2","imgUrls": ["https://sh2-1256181000.cos.accelerate.myqcloud.com/w_a/u_a/1/addImg/member-20251127/w1024_h1024_gNXNDQmtVWWhqR05YcFdZT3djVmU2Zz09-20ee04d2acc3a16268038b29df750874.jpeg","https://sh2-1256181000.cos.accelerate.myqcloud.com/w_a/u_a/1/addImg/member-20250923/w1156_h1536_gNXNDQmtVWWhqR05YcFdZT3djVmU2Zz09-18debe4a45842af06885be6e3fb54d13.png"],"aspectRatio": "auto","size": "2K"}
Example response:
{"operation": "generate","taskId": "123"}
Demo 2: Query the task result
{"operation": "query","taskId": "123"}
Example response:
{"operation": "query","taskId": "123","status": "SUCCESS","imgUrl": "https://example.com/image.png"}
Output
Generate returns the submitted task information, including the task ID.
Query returns:
taskIdstatusimgUrl
Best For
- Product mockups
- Fashion and clothing transformation demos
- Fast image generation tests
- Affordable tiered image workflows
Notes
- This Actor submits generation tasks first, then you can query the result later.
- If you need higher quality, choose a larger size tier.
- The console input already includes sample prompt and reference images for easier testing.
- NanoBanana: NanoBanana