Gemini 2.5 Flash Image is Google's hosted image generation and editing model, also called Nano Banana. For the Gemini Developer API, standard image output is listed at $0.039 per image, with input charges billed separately; use gemini-2.5-flash-image for the production request below. Google announced general availability on October 2, 2025. Production announcement Pricing Model identifier
To integrate Gemini 2.5 Flash Image, configure hosted access and decide how your application stores and reviews returned images. Google's Cloud model page provides hosted inference routes and no open-weight download. Google Cloud model documentation
What are the key facts about Gemini 2.5 Flash Image?
| Fact | Verified detail |
|---|---|
| Developer | Google. Production announcement |
| Released | General availability announced October 2, 2025. Production announcement |
| Type | Hosted image generation and editing. Google Cloud model page |
| Size or parameters | Not published in the cited model documentation. Google Cloud model page |
| License and access | Hosted services; Gemini Developer API image generation requires the paid tier. No open-weight download is provided by the Cloud model page. Pricing Cloud model page |
| Where it runs | Google's infrastructure, including the documented Vertex AI route. Production announcement |
Which output controls does Gemini 2.5 Flash Image support?
The general-availability release added explicit aspect-ratio selection and image-only output. Those controls matter when your application needs to request a particular layout and distinguish an image deliverable from a conversational response. Production announcement
Treat the output contract as part of the feature specification. A product-card service, for example, needs to define which source image to use, what change is permitted, and how the accepted image will be stored. Write those requirements before expanding the number of requests.
Keep a small evaluation collection that represents the actual work: an uncomplicated product, a reflective object, a scene with lettering, and an image with details that must remain fixed. These are suggested test categories, not performance claims about the model.
The sibling Gemini photo prompting guide covers how to express the edit itself. Here, the emphasis is on making that request measurable and recoverable when your application receives an unexpected response.
The dedicated model page lists Batch API support but excludes capabilities such as function calling and Search grounding. Build around the selected image model's documented interface rather than assuming it inherits all Gemini assistant features. Model capability listing
Model availability is separate from your application's reliability. Decide what the user sees when no image is returned, when a request fails, and when the result does not meet the visual brief. Do not treat a completed network request as evidence of an acceptable asset.
How much does Gemini 2.5 Flash Image cost?
Google's Gemini Developer API lists these rates in USD. Its standard image-output footnote applies the $0.039 figure to images up to 1024 × 1024 pixels. Pricing table
| Processing mode | Image output | Text and image input |
|---|---|---|
| Standard | $0.039 per image. Pricing | $0.30 per million tokens. Pricing |
| Batch | $0.0195 per image. Pricing | $0.15 per million tokens. Pricing |
The pricing page lists no free API tier for this model. Check the table for your processing mode before budgeting a run. Pricing
Estimate costs using the number of attempted outputs and the inputs your workflow actually sends. Track discarded generations and revisions alongside accepted files. A budget based only on final published images leaves out the work required to select them.
How do you call Gemini 2.5 Flash Image in production?
For a Gemini Developer API integration, create an API key and configure billing for the paid tier in Google AI Studio. Keep the key in the server environment as GEMINI_API_KEY. Setup documentation Model pricing
Use gemini-2.5-flash-image, the stable identifier listed on the model page. The preview identifier is marked deprecated. Model versions
The following request asks for image-only output and a portrait composition using the documented content-generation endpoint and image controls. API reference Production controls
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "Create a studio photograph of an amber glass vase on cream paper, with room above it for a headline."}]}],
"generationConfig": {
"responseModalities": ["IMAGE"],
"imageConfig": {"aspectRatio": "4:5"}
}
}'
This prints an API response, not a finished image file. Parse the candidate content, check for returned image data, and decode it using the MIME type in the response. Keep the error path visible when there is no usable image. Response schema
For a Google Cloud deployment, follow the authentication and model-access instructions on its own model page. Do not copy a Developer API hostname into a Cloud-specific integration and assume the credentials or billing setup are interchangeable. Google Cloud model documentation
Before connecting the call to a larger job, complete a small acceptance run:
- Save the exact prompt, selected model identifier, and reference-file version.
- Submit a bounded set of representative requests.
- Record whether each response contains an image and whether the image meets the brief.
- Compare observed usage with your budget assumptions.
- Define how a reviewer approves the selected file.
If a revision changes the prompt or references, retain the previous accepted output. That gives you a recovery point and lets the reviewer decide whether the change improved the intended feature.
Give retries an explicit limit in your application. Decide which failures merit another attempt and which require a user-visible explanation. This is an operating recommendation: it avoids silently treating every unsuccessful edit as a reason to keep generating.
How does Gemini 2.5 Flash Image compare with Nano Banana Pro?
| Option | Integration decision |
|---|---|
| Gemini 2.5 Flash Image | Stable hosted image endpoint with documented batch support. Model page |
| Gemini 3 Pro Image | A separate image model with thinking and Search grounding listed as supported. Pro model page |
Choose using your evaluation collection and required capabilities. The sibling Nano Banana Pro overview explains the alternative model in more detail.
If the deployment decision includes operating image models yourself, use the ComfyUI complete guide as the relevant workflow pillar. Compare total operating effort as well as the visible cost of a generation request.
What else should you know about Gemini 2.5 Flash Image?
Which API model identifier should I use in production?
Use gemini-2.5-flash-image, the stable identifier in Google's model listing. The gemini-2.5-flash-image-preview identifier is deprecated. Model documentation
Does the listed image price include the input?
Google lists image output and input token charges separately. Calculate the combination needed by your request, and consult the pricing table for the service and processing mode you use. Pricing documentation
Can I run Gemini 2.5 Flash Image on my own GPU?
Google's Cloud model page documents hosted access and provides no model-weight download for a local GPU. A client running on your machine sends requests to the hosted model. Google Cloud model page
Does general availability guarantee every edit will be usable?
General availability describes the release status announced by Google. Set your own visual acceptance checks and failure handling before relying on the generated asset in an application. Production announcement
Sources
- Google's production release announcement
- Google Cloud model documentation
- Gemini 2.5 Flash Image model details
- Gemini Developer API pricing
- Gemini API getting started
- Content-generation API reference
- Gemini 3 Pro Image documentation
Top comments (0)