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.
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
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.
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 in the model field.
Credit cost
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.
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?
512/1K/2K/4K variants cost 4/4/6/8 credits per image.