Pricing
Compare models →Each run costs $0.038.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
imagesRequired | array | List of URLs of input images for editing. Up to 10 images can be provided.Items: 0–10JSON schema{
"items": {
"type": "string"
}
} |
aspect_ratio | string | The aspect ratio of the generated image. If not specified, it is determined automatically from the input image.xxx-empty1:13:22:33:44:34:55:49:1616:921:9JSON schema{
"x-placeholder": "Select aspect ratio",
"x-clearable": true
} |
output_format | string | The format of the output image.pngjpeg"png" |
README
Gemini 2.5 Flash Image
Gemini 2.5 Flash Image is Google’s state-of-the-art image generation and editing model. It is a new variant of the Gemini 2.5 family, specifically designed for fast, conversational, and multi-turn creative workflows. This model is made available to developers through the Gemini API, Google AI Studio, and Vertex AI.
Key Features
- Native Image Generation and Editing: Gemini 2.5 Flash Image is a multimodal model that natively understands and generates images. This allows for a seamless, unified workflow for creating and editing visuals.
- Multi-image Fusion: This powerful feature allows you to combine multiple input images into a single, cohesive, new visual. For example, you can integrate a product into a new scene or restyle a room by merging images of different furniture and decor.
- Character and Style Consistency: A significant advancement is the ability to maintain a consistent character, object, or style across multiple prompts and images. This is essential for storytelling, branding, and generating a series of cohesive assets without needing time-consuming fine-tuning.
- Conversational Editing: The model enables precise, targeted edits using natural language. You can make specific changes like blurring a background, removing an object, altering a subject’s pose, or colorizing a black-and-white photo by simply describing the desired outcome.
- Visual Reasoning: Gemini 2.5 Flash Image benefits from the Gemini model’s deep world knowledge. It can go beyond simple photorealism to perform complex tasks that require genuine understanding, such as interpreting hand-drawn diagrams, assisting with educational queries, and following multi-step instructions.
- SynthID Watermarking: To promote responsible AI and transparency, all images created or edited with Gemini 2.5 Flash Image are embedded with an invisible digital watermark from SynthID. This watermark helps identify the content as AI-generated or edited.
Pricing
Each run costs $0.038.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Gemini 2.5 Flash Image Preview Edit API example
The catalog lists POST https://api.opensi.com.ai/api/v3/google/gemini-2.5-flash-image-preview/edit for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"images": [
"https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251118/6784e7f4b50aebc7e17fe396/onc2taa5gb9l.jpeg"
],
"aspect_ratio": "1:1",
"output_format": "png"
}Gemini 2.5 Flash Image Preview Edit API — Frequently asked questions
What is the Gemini 2.5 Flash Image Preview Edit API?
Gemini 2.5 Flash Image Preview Edit is a Google model for image editing, exposed as a REST API on OpenSIAI. Google Gemini 2.5 Flash Image Preview is an image-to-image editing model with advanced creative controls for precise image edits. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Gemini 2.5 Flash Image Preview Edit API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/google/gemini-2.5-flash-image-preview/edit.
How much does Gemini 2.5 Flash Image Preview Edit cost per run or per second?
Gemini 2.5 Flash Image Preview Edit starts at $0.038 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Gemini 2.5 Flash Image Preview Edit accept?
Key inputs: prompt, images, aspect_ratio, output_format. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/google/gemini-2.5-flash-image-preview/edit.
How long does Gemini 2.5 Flash Image Preview Edit take to generate?
Reported generation time on OpenSIAI is around 28 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Gemini 2.5 Flash Image Preview Edit outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Google). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
