Pricing
Compare models →- $0.038 per image generation
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.1:13:22:33:44:34:55:49:1616:921:9"1:1"JSON schema{
"x-placeholder": "Select aspect ratio"
} |
output_format | string | The format of the output image.pngjpeg"png" |
README
Gemini 2.5 Flash Image — Google
Gemini 2.5 Flash Image is Google’s state-of-the-art image generation and editing model, part of the Gemini 2.5 family.
It’s optimized for fast, conversational, and multi-turn creative workflows, enabling high-quality visual generation and editing within seconds.
✨ Key Features
- Native Image Generation & Editing
Natively supports both creation and modification of images, offering a seamless multimodal workflow.
- Multi-Image Fusion
Combine multiple inputs into one cohesive image — perfect for product mockups, scene compositing, and style fusion.
- Character & Style Consistency
Maintains consistent appearance, identity, and aesthetic across prompts and sessions, ideal for storytelling and branding.
- Conversational Editing
Make precise visual changes simply by describing them in natural language (e.g., “remove the shadow,” “add a sunset glow”).
- Visual Reasoning
Performs complex understanding tasks such as diagram interpretation, layout composition, and conceptual illustration.
- SynthID Watermarking
All generated and edited images include Google’s invisible SynthID watermark for responsible AI use and transparency.
🧩 How to Use
- Enter your prompt describing the desired image or edit.
- Select the aspect ratio (e.g.,
16:9,3:2,1:1,9:16).
- Choose the output format (
pngorjpeg).
- (Optional) Enable sync mode for inline response generation.
- Click Run to create your image instantly.
💰 Pricing
- $0.038 per image generation
📝 Notes
- Works best with descriptive, context-rich prompts that include composition and style details.
- Supports aspect ratios up to 21:9 for wide cinematic frames.
- Output format supports PNG (for transparent graphics) and JPEG (for compressed photography).
- Please follow Google’s model usage policies.
- If your input violates the safety rules, the system will block generation and return an error message.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Gemini 2.5 Flash Image Text to Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/google/gemini-2.5-flash-image/text-to-image 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",
"aspect_ratio": "1:1",
"output_format": "png"
}Gemini 2.5 Flash Image Text to Image API — Frequently asked questions
What is the Gemini 2.5 Flash Image Text To Image API?
Gemini 2.5 Flash Image Text To Image is a Google model for image generation, exposed as a REST API on OpenSIAI. Google Gemini 2.5 Flash Image offers advanced text-to-image generation and image editing with creative controls for quality images. 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 Text To Image 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/text-to-image.
How much does Gemini 2.5 Flash Image Text To Image cost per run or per second?
Gemini 2.5 Flash Image Text To Image 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 Text To Image accept?
Key inputs: prompt, 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/text-to-image.
How long does Gemini 2.5 Flash Image Text To Image take to generate?
Reported generation time on OpenSIAI is around 18 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 Text To Image 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.
