Skip to documentation
MakeInfluencer.ai
v1

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

POSThttps://www.makeinfluencer.ai/api/v1/models/nano-banana-2/generations

Model ID

nano-banana-2

Typical time

10s

Sample quote

5,264 credits

The displayed price is input-specific

The sample quote is Fast image generation and editing with Google Nano Banana 2 2k. Preview your exact payload before generating; previews do not charge.

Create a generation

Send the model fields inside input. The request returns HTTP 202 with an owned generation ID.

cURL
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

FieldTypeDefaultAccepted values
promptrequiredtext
aspectRatioenummatch_input_imagematch_input_image, 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
resolutionenum2k0.5k, 1k, 2k, 4k
imageUrlsimageArrayUp to 14 items

The same contract is available fromGET /models/nano-banana-2 for server-side validation and dynamic tooling.

Preview credits

POST · no charge
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

GET · image
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.