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
5.0
(1)
Developer
ImageAI Bot
Maintained by CommunityActor stats
0
Bookmarked
25
Total users
19
Monthly active users
17 hours 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
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
Other image API
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
Each successful generate operation charges one pay-per-event event:
1K/Image-1K- $0.04 per generated task2K/Image-2K- $0.07 per generated task4K/Image-4K- $0.10 per generated task
Prices are configured in the Actor's Apify Monetization settings. The maximum total charge for a run must cover the selected event. If it does not, the Actor stops before calling the image generation API.
Query operations are free. Each query is a separate Actor run and writes one dataset item, so frequent polling still consumes platform resources. The Analytics result count includes generate, query, and error items; it is not the number of charged events.
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:
{"success": true,"operation": "generate","status": "SUBMITTED","taskId": "123","billing": {"size": "2K","eventName": "Image-2K"}}
Demo 2: Query the task result
{"success": true,"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.
- A generated task is considered billable only when Apify confirms that exactly one matching event was charged.
- NanoBanana: NanoBanana
