Google · image model
Nano Banana 2 API
Use the Nano Banana 2 API for hosted AI image generation with model-aware inputs, asynchronous jobs, and MakeInfluencer credits.
Endpoint overview
https://www.makeinfluencer.ai/api/v1/models/nano-banana-2/generationsModel ID
nano-banana-2Typical time
10s
Sample quote
5,264 credits
The displayed price is input-specific
Create a generation
Send the model fields inside input. The request returns HTTP 202 with an owned generation ID.
curl --request POST \
https://www.makeinfluencer.ai/api/v1/models/nano-banana-2/generations \
--header "Authorization: Bearer $MAKEINFLUENCER_API_KEY" \
--header "Idempotency-Key: nano-banana-2-001" \
--header "Content-Type: application/json" \
--data '{
"input": {
"prompt": "Editorial portrait of a fashion creator in a sunlit studio",
"aspectRatio": "1:1",
"resolution": "2k"
}
}'Model parameters
| Field | Type | Default | Accepted values |
|---|---|---|---|
promptrequired | text | — | — |
aspectRatio | enum | match_input_image | match_input_image, 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
resolution | enum | 2k | 0.5k, 1k, 2k, 4k |
imageUrls | imageArray | — | Up to 14 items |
The same contract is available fromGET /models/nano-banana-2 for server-side validation and dynamic tooling.
Preview credits
curl --request POST \
https://www.makeinfluencer.ai/api/v1/models/nano-banana-2/preview-credits \
--header "Authorization: Bearer $MAKEINFLUENCER_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"input": {
"prompt": "Editorial portrait of a fashion creator in a sunlit studio",
"aspectRatio": "1:1",
"resolution": "2k"
}
}'A valid response returns the exact credit cost and pricing description. The dashboard, REST API, and MCP use one balance at the same model price.
Poll the result
curl \
https://www.makeinfluencer.ai/api/v1/generations/image/GENERATION_ID \
--header "Authorization: Bearer $MAKEINFLUENCER_API_KEY"Poll until terminal is true. On success, ready is true. Readurl for video orurls for image output. See the polling guide for statuses and backoff.
Nano Banana 2 API FAQ
How much does the Nano Banana 2 API cost?
The documented sample request costs 5,264 MakeInfluencer credits. Final cost depends on the exact model inputs, and the preview-credits endpoint returns an exact quote without charging.
Does the Nano Banana 2 API use a separate balance?
No. REST, MCP, and the MakeInfluencer dashboard use the same account credit balance.
How do I receive Nano Banana 2 results?
Creation returns HTTP 202 with a generation ID. Poll the image generation-status endpoint until terminal is true. On success, ready is true and the response contains the output URL.