6 min left

BlogGuide

Google AI Studio API Key for Nano Banana: Setup and Billing

A source-backed setup guide for Google's current auth keys, paid image models, Prepay rules, spend controls, and data-use terms.

Person holding a phone and USB security key beside a laptop with a masked credential field
The laptop shows a masked field while the person holds a phone and physical security key.

Create the key in Google AI Studio, confirm that it belongs to the intended Cloud project, and connect billing before making an image request. Google’s image API has no free tier for its four Nano Banana image models. Creating a key does not itself create a charge, but image generation is paid usage.

The important 2026 changes are easy to miss. New keys are authorization keys, older Standard keys are being retired, Prepay balances expire, and paid use has better data-use terms without being a zero-retention service. This guide uses Google documentation accessed July 11, 2026.

How do you create a Google AI Studio API key?

Eligible users in supported regions can create a key from Google AI Studio. Check Google’s current region list before troubleshooting an account or Workspace restriction.

  1. Open the Google AI Studio API Keys page and accept the applicable terms.
  2. Confirm the Cloud project shown in the dashboard.
  3. Create an authorization key and copy it once into a password manager or secure credential store.
  4. Keep the key out of source code, shared screenshots, PSD metadata, and public support messages.

Google’s API key guide says new users normally receive a default Cloud project and API key after accepting the terms. Existing Google Cloud users may need to import a project first, then create the key inside that project. Workspace policy, age requirements, region, and project permissions can all affect access, so account eligibility is not universal.

Woman holding a USB security key above a foam-lined locking drawer at a studio equipment workstation
The removable security key is held above a compartmented drawer with a lock.

What changed for Standard API keys in 2026?

All new keys made in AI Studio are auth keys. Google began rejecting unrestricted Standard keys on June 19, 2026. Restricted Standard keys continue to work for the moment, but that is only a transition state. In September 2026 Google will reject Standard-key requests, so migrate to a new auth key before then.

Do not work around the migration by publishing a different Standard key. Create an auth key, update the application or plugin, test it, and revoke the old credential after the new one works.

Does the Nano Banana API have a free tier?

No. The official Gemini API pricing page lists no API free tier for the four current Nano Banana image models. Google AI Studio is a separate surface: AI Studio usage can remain free unless you link a paid API key, and usage through a linked paid key is billed to that project.

That distinction explains a common failure. A new key may work with a free-tier text model but return a quota or billing error for an image model. Verify the exact model ID, project, key type, billing state, region, quota dashboard, and returned error instead of assuming one cause.

What do the four Nano Banana models cost?

These are Google’s displayed standard image-output prices as reviewed on July 11, 2026. Prompt, reference-image, text or thinking output, and Search use can add charges.

Model API model ID Resolution Standard image output Batch image output
Nano Banana 2 Lite gemini-3.1-flash-lite-image 1K $0.0336 $0.0168
Nano Banana 2 gemini-3.1-flash-image 0.5K $0.045 $0.022
Nano Banana 2 gemini-3.1-flash-image 1K $0.067 $0.034
Nano Banana 2 gemini-3.1-flash-image 2K $0.101 $0.050
Nano Banana 2 gemini-3.1-flash-image 4K $0.151 $0.076
Nano Banana Pro gemini-3-pro-image 1K $0.134 $0.067
Nano Banana Pro gemini-3-pro-image 2K $0.134 $0.067
Nano Banana Pro gemini-3-pro-image 4K $0.24 $0.12
Nano Banana (original) gemini-2.5-flash-image Up to 1024px $0.039 $0.0195

The original model does not expose a native 2K tier. If a tool shows a 2K result for that model, confirm whether the tool is resizing or upscaling the 1024px-class output. For model selection and reference limits, use the current four-model comparison.

How do you connect billing safely?

Open the project in AI Studio and follow its Set up billing flow. Google assigns eligible accounts to Prepay or Postpay, and the purchase screen shows the current regional minimum and maximum. Do not rely on an old universal minimum from a tutorial.

Google’s billing documentation establishes four practical rules:

  • Billing is associated with projects and a billing account, not with a single model.
  • Prepay credits expire 12 months after purchase and are normally non-refundable.
  • A depleted shared Prepay balance can stop every API key in every project connected to that billing account.
  • Project spend caps are experimental. Billing data can have around ten minutes of latency, so an overage beyond the cap is possible.

Use a separate project for tests, set a conservative experimental project cap, configure alerts, and review recorded usage after the first request. Treat the cap as a safety net, not as a guaranteed hard stop.

Does Google use prompts and images to improve its products?

The answer depends on service type and region. Under Google’s Gemini API terms, unpaid-service content outside the European Economic Area, Switzerland, and the United Kingdom may be used to improve Google products and may receive human review. In the EEA, Switzerland, and the UK, Google says the Paid Services data-use terms apply even to unpaid services.

For Paid Services, prompts and responses are not used to improve Google products. That does not mean no retention. Google’s separate abuse-monitoring policy says prompts, context, and outputs can be retained for 55 days for policy enforcement and legal or regulatory disclosures. Flagged content can be assessed by authorized employees through a controlled human-review process.

For confidential client work, confirm the project is treated as a Paid Service, minimize submitted data, and follow the client’s own approval and retention requirements. A billed request has stronger provider terms, but it is not a promise of absolute privacy.

How should you store the key for Photoshop?

Use the secure storage offered by the chosen plugin or workflow and verify how that tool handles credentials before pasting the key. Never put it inside a Photoshop action, a shared script, or a document delivered to a client.

Disclosure: Bielfor builds Creator MAX, a bring-your-own-key Photoshop plugin. That ownership can bias our interface recommendation, so the Google facts above are linked to Google directly. Our own Gemini API key setup page states where that plugin keeps the key and what it does with it, so you can judge the credential handling before installing anything. The same key also works with other compatible tools and scripts. See all Nano Banana Photoshop routes before choosing an interface.

FAQ

Is the Google AI Studio API key itself free?

Creating and holding a key does not have a separate fee. Requests made with it may be billable. Google’s current Nano Banana image API models have no free API tier.

Why does an image request return zero quota or RESOURCE_EXHAUSTED?

Check the exact error, billing state, model quota, auth-key type, project, and region. Missing billing is one possible cause, but it is not the only one.

Does one auth key call all four image models?

A key authenticates requests for its project. Actual model access still depends on availability, quota, region, and the model ID used in the request.

Is paid Gemini API use private?

Paid Services content is not used to improve Google products. Google still documents 55-day abuse-monitoring retention and possible authorized review of flagged content, so “private” is too broad a promise.

Evidence

Sources

  1. Using Gemini API keysGoogle AI for DevelopersPrimary sourceAccessed
  2. Gemini API available regionsGoogle AI for DevelopersPrimary sourceAccessed
  3. Gemini Developer API pricingGoogle AI for DevelopersPrimary sourceAccessed
  4. Gemini API billingGoogle AI for DevelopersPrimary sourceAccessed
  5. Gemini API Additional TermsGoogle AI for DevelopersPrimary sourceAccessed
  6. Gemini API abuse monitoringGoogle AI for DevelopersPrimary sourceAccessed