Gemini 2.5 Flash Image Edit API

Gemini 2.5 Flash Image Edit enables text-guided image editing powered by Google's Gemini 2.5 Flash model.

Modalities
Image, TextImage
Price
$0.039per generation
Model type
Image generation
Released
Feb 23, 2026

Gemini 2.5 Flash Image Edit overview

Aspect ratio
Sample Gemini 2.5 Flash Image Edit image generated through AI/ML API: A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lette

Gemini 2.5 Flash Image Edit by Google

Meet Gemini 2.5 Flash Image Edit: describe the change and it edits your photo directly, blending reference images while keeping subject and style consistent

Gemini 2.5 Flash Image Edit specs

Model ID
google/gemini-2.5-flash-image-edit
Developer
Google
Input
Image, Text
Output
Image
Endpoint
POST https://api.aimlapi.com/v1/images/generations

What Is Gemini 2.5 Flash Image Edit API?

Gemini 2.5 Flash Image Edit is Google’s image generation and editing model for conversational, low-latency creative workflows. Google describes Gemini 2.5 Flash Image, also known as Nano Banana, as best for high-volume generation, conversational image editing, and native multimodal understanding.

The model supports image and text inputs and returns image and text outputs, and Google lists image generation as supported for this model.

Technical Reference

DeveloperGoogle
Model IDgoogle/gemini-2.5-flash-image-edit
Release DateFebruary 22, 2026
ModalitiesImage, Text → Image

What Gemini 2.5 Flash Image Edit Brings to the Table

Conversational editing
Google says the model supports natural-language image edits, including precise local changes such as blur, object removal, pose changes, and recoloring.

Multi-image fusion
The model can understand and merge multiple input images into a single result, enabling composition and style-transfer workflows.

Character and style consistency
Google says it can maintain the same subject or visual style across multiple generations for richer storytelling and repeated-use assets.

Supported data types
Google’s model page lists images and text as inputs, and images and text as outputs.

Where Gemini 2.5 Flash Image Edit Makes the Most Sense

Product and marketing visuals
Google gives examples such as combining multiple reference images into a single marketing, training, or advertising visual.

Photo cleanup and retouching
The model is described as useful for removing people or objects, fixing small details, and other targeted edits through natural-language prompts.

Iterative creative workflows
Google and its docs describe multi-turn or conversational editing, where users refine an image over multiple prompt turns.

Composited scene creation
Google says users can put objects into scenes, restyle rooms, and fuse images with a single prompt.

Gemini 2.5 Flash Image Edit vs the Alternatives

Gemini 3.1 Flash Image Preview
Google’s Vertex AI documentation lists this model as another image-editing option alongside Gemini 2.5 Flash Image.

Gemini 3 Pro Image Preview
Google’s Vertex AI documentation also lists this model as supporting image editing.

Sources: https://ai.google.dev/gemini-api/docs/models/gemini-2.5-flash-image · https://cloud.google.com/blog/products/ai-machine-learning/gemini-2-5-flash-image-on-vertex-ai · https://developers.googleblog.com/introducing-gemini-2-5-flash-image/

Use cases

Gemini 2.5 Flash Image Edit is documented for conversational image editing, including targeted transformations and precise local edits such as removing a person from a photo, fixing a stain, changing colors, or altering a subject’s pose. It is also suited to multi-image composition and style transfer, where multiple reference images are combined into a single new image. Another documented use is maintaining character and style consistency across multiple generations, such as placing the same subject or product in different scenes without losing identity. It is also described as useful for high-volume generation and low-latency creative workflows that require native multimodal understanding.

Gemini 2.5 Flash Image Edit API pricing

Gemini 2.5 Flash Image Edit pricing in US dollars
UsagePriceUnit
Image generation$0.039per generation

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Gemini 2.5 Flash Image Edit vs other image models: prices

AI/ML API rates for 5 models, per generation.

AI/ML API prices in USD per generation
ModelPer generation
Gemini 2.5 Flash Image Edit$0.039
Nano Banana$0.039
Gemini 3 Pro Image Edit$0.15
Nano Banana Pro Edit$0.15
Nano Banana Pro$0.25

How to use the Gemini 2.5 Flash Image Edit API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "google/gemini-2.5-flash-image-edit",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'

Gemini 2.5 Flash Image Edit FAQ

How much does Gemini 2.5 Flash Image Edit cost?

Gemini 2.5 Flash Image Edit costs $0.039 per generation on AI/ML API, billed as you go with no subscription.

What inputs and outputs does Gemini 2.5 Flash Image Edit support?

Gemini 2.5 Flash Image Edit takes image, text as input and returns image.

When was Gemini 2.5 Flash Image Edit released?

Gemini 2.5 Flash Image Edit became available on February 23, 2026.

Can Gemini 2.5 Flash Image Edit take an existing image as input?

Yes, Gemini 2.5 Flash Image Edit accepts image input as well as a text prompt.

Who created Gemini 2.5 Flash Image Edit?

Gemini 2.5 Flash Image Edit was built by Google.

How do I call Gemini 2.5 Flash Image Edit on AI/ML API?

Send a request to https://api.aimlapi.com/v1/images/generations with google/gemini-2.5-flash-image-edit as the model id.

Is Gemini 2.5 Flash Image Edit available through a single API key?

Yes. Gemini 2.5 Flash Image Edit is served through AI/ML API, so the same key and endpoint format used for other models applies.

What is the Gemini 2.5 Flash Image Edit model ID?

Use google/gemini-2.5-flash-image-edit as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.

Start building with Gemini 2.5 Flash Image Edit

Gemini 2.5 Flash Image Edit API

google/gemini-2.5-flash-image-edit

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "google/gemini-2.5-flash-image-edit",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'