Nano Banana is available on Pixapi — one endpoint, usage-based credits, ready for production.
Back to model catalog
ImageGoogle

gemini-3.1-flash-image-preview

Gemini 3.1 Flash Image Preview is exposed through Pixapi with an OpenAI-compatible image API for developer products that need prompt-based generation and image editing.

512/1K/2K/4KNano Banana 2Text to imageImage to image

Pricing details

Transparent usage pricing with no hidden fees. Pay only for successful outputs.

Credits

Credits are billed per successful image output and selected resolution.

RuleCreditsNotes
gemini-3.1-flash-image-preview-5124 / image512px output. Official price ~$0.05/image; savings ~20%.
gemini-3.1-flash-image-preview4 / image1K (1024px) output. Official price ~$0.067/image; savings ~40%.
gemini-3.1-flash-image-preview-2k6 / image2K (2048px) output. Official price ~$0.101/image; savings ~40%.
gemini-3.1-flash-image-preview-4k8 / image4K (4096px) output. Official price ~$0.151/image; savings ~47%.

* Final billing follows the actual model output and dashboard records.

gemini-3.1-flash-image-preview API facts

These fields are the citable integration facts for this model page.

Canonical model idgemini-3.1-flash-image-preview
Provider shown on PixapiGoogle
Supported capabilitiesText to image, Image to image
API endpointsPOST /v1/images/generations, POST /v1/async/images/generations, POST /v1/images/edits, POST /v1/async/images/edits
Required request fieldsmodel, prompt
Returned output fieldscreated, data[].url, data[].b64_json
Starting credit costfrom 4 Credits/image

gemini-3.1-flash-image-preview professional API access

Gemini 3.1 Flash Image Preview

Pixapi connects gemini-3.1-flash-image-preview from Google behind one production-ready API contract, covering authentication, credit metering, response normalization, and dashboard visibility.

Get key

gemini-3.1-flash-image-preview

Model id

Google

Provider

from 4 Credits/image

Starting cost

2

Capabilities

How teams use the gemini-3.1-flash-image-preview API in production

gemini-3.1-flash-image-preview API gives teams a documented route for image generation with Pixapi authentication, credits, and model-specific guidance.

gemini-3.1-flash-image-preview API keeps the model id explicit in your backend configuration.
gemini-3.1-flash-image-preview API connects model choice to pricing, docs, and related routes.
gemini-3.1-flash-image-preview API lets teams test a route without managing a separate provider account.
gemini-3.1-flash-image-preview API supports product planning because cost, capability, and output behavior stay visible.

A reliable gemini-3.1-flash-image-preview API page should explain more than the model name. Pixapi uses the gemini-3.1-flash-image-preview API page to show what the model does, how the request is routed, how credits are consumed, and where developers can find the matching docs. When a team evaluates the gemini-3.1-flash-image-preview API, it can judge capability, cost, and implementation effort before committing the route to a production feature.

The gemini-3.1-flash-image-preview API is useful when a product needs a clear backend contract. Instead of exposing provider credentials or model experiments in the browser, teams can call the gemini-3.1-flash-image-preview API from a server route, store the request id, and map outputs to their own users. That keeps the gemini-3.1-flash-image-preview API aligned with customer permissions, rate limits, moderation rules, and asset retention policy.

For model comparison, the gemini-3.1-flash-image-preview API should be easy to evaluate against related routes. Pixapi keeps the gemini-3.1-flash-image-preview API beside pricing tables, feature cards, use cases, and related models so teams can compare quality, speed, and cost. If another route becomes a better fit, the surrounding API key, credit balance, and dashboard workflow remain familiar after testing the gemini-3.1-flash-image-preview API.

Cost planning is another reason to read the gemini-3.1-flash-image-preview API page before implementation. The gemini-3.1-flash-image-preview API shows how Pixapi thinks about successful outputs, credit usage, and production monitoring. Product teams can decide whether the gemini-3.1-flash-image-preview API belongs in a free tier, a paid plan, an internal workflow, or a high-volume batch process before customer demand increases.

Documentation quality matters for the gemini-3.1-flash-image-preview API because developers and coding agents both need exact endpoint patterns. Pixapi links the gemini-3.1-flash-image-preview API to model docs and request examples so implementation can stay close to the current contract. A clear gemini-3.1-flash-image-preview API page reduces guesswork around model ids, prompt fields, response handling, and operational follow-up.

Choose the gemini-3.1-flash-image-preview API when this model matches the creative or media job your product needs. Pixapi wraps the gemini-3.1-flash-image-preview API with account management, credits, pricing context, related routes, and support touchpoints. That makes the gemini-3.1-flash-image-preview API easier to move from a one-request test into a maintained feature that your users can rely on.

Model features

Production capabilities for builders who need reliable creative model access.

OpenAI-compatible image contract

Call /v1/images/generations or /v1/images/edits for synchronous image requests, or use /v1/async/images/generations and /v1/async/images/edits for async image tasks. Pass gemini-3.1-flash-image-preview or nano-banana-2 in the model field.

Credit cost

nano-banana-2 is an alias for this model. 512/1K/2K/4K variants cost 4/4/6/8 credits per image.

Developer API ready

Use bearer token authentication, OpenAI-style request fields, and data[] image responses.

Unified API contract

Use Gemini 3.1 Flash Image Preview without provider-specific account setup, signatures, or response mapping.

Enterprise stability

Redundant infrastructure, request tracing, and a 99.9% availability target for production traffic.

Fast asset delivery

Generated media can be stored and distributed through Pixapi's global delivery layer.

Credit billing

Track usage and remaining credits from one dashboard across your connected models.

Use cases

Typical workflows where teams connect this model through Pixapi.

Product image generation

Create catalog images, ads, thumbnails, and concept art from prompts.

Reference-guided workflows

Use image editing inputs for product variants, style transfer, or controlled visual iterations.

Model comparison

Switch the model id to compare latency, cost, resolution, and prompt adherence across Gemini image models.

Application integration

Embed Gemini 3.1 Flash Image Preview in SaaS products, internal tools, automations, and user-facing workflows.

Batch production

Run high-volume creative jobs with consistent costs, retries, and operational visibility.

Quick start

Connect the model in minutes with the same API key and billing account.

1

Create an account

Sign up for Pixapi and open your developer dashboard.

2

Add credits

Recharge once and use the balance across supported models.

3

Generate a key

Create an API key, choose the model id, and send your first request.

Frequently asked questions

Which endpoint should I use for gemini-3.1-flash-image-preview?

Use /v1/images/generations for synchronous text-to-image, /v1/images/edits for synchronous edits, or /v1/async/images/generations and /v1/async/images/edits when you want task-based async processing.

How is gemini-3.1-flash-image-preview billed?

nano-banana-2 is an alias for this model. 512/1K/2K/4K variants cost 4/4/6/8 credits per image.

Can I request multiple outputs?

Yes. Use n to request multiple images.