Pricing
Compare models →| Output | Price |
|---|---|
| Per image | $0.038 |
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
Google Gemini 2.5 Flash Image Preview — Text-to-Image
Gemini 2.5 Flash Image Preview is Google's fast and efficient text-to-image generation model built on the Gemini architecture. Generate high-quality images from text descriptions with flexible aspect ratios and multiple output formats — all at an affordable price.
Why It Stands Out
- Fast generation: Optimized for speed while maintaining high visual quality.
- Prompt Enhancer: Built-in AI-powered prompt optimization for better image results.
- Flexible aspect ratios: Choose from multiple aspect ratio presets to fit your content needs.
- Multiple output formats: Export as PNG or other formats based on your requirements.
- Powered by Gemini: Leverages Google's advanced multimodal AI for strong prompt understanding.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate. |
| aspect_ratio | No | Output aspect ratio (square, portrait, landscape, etc.). |
| output_format | No | Output format: png, jpeg, etc. (default: png). |
| enable_sync_mode | No | Wait for result before returning response (API only). |
| enable_base64_output | No | Return base64 string instead of URL (API only). |
How to Use
- Write a prompt describing the image you want. Use the Prompt Enhancer for AI-assisted optimization.
- Select aspect ratio — choose the format that fits your use case.
- Choose output format — select PNG or other available formats.
- Click Run and download your image.
Best Use Cases
- Quick Prototyping — Rapidly generate visual concepts and ideas.
- Social Media Content — Create images sized for different platforms.
- Marketing & Advertising — Produce eye-catching visuals for campaigns.
- Creative Exploration — Experiment with different styles and concepts affordably.
- Design Mockups — Generate placeholder images and visual references.
Pricing
| Output | Price |
|---|---|
| Per image | $0.038 |
Pro Tips for Best Quality
- Be descriptive in your prompt — include style, mood, lighting, composition, and specific details.
- Use style keywords like "photorealistic," "illustration," "digital art," or "cinematic" to guide the aesthetic.
- Choose the appropriate aspect ratio for your intended use (square for social media, wide for banners, etc.).
- Use PNG format when you need higher quality or transparency support.
Notes
- Processing time varies based on current queue load.
- Please ensure your prompts comply with Google's Safety Guidelines.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Gemini 2.5 Flash Image Preview Text to Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/google/gemini-2.5-flash-image-preview/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 Preview Text to Image API — Frequently asked questions
What is the Gemini 2.5 Flash Image Preview Text To Image API?
Gemini 2.5 Flash Image Preview Text To Image is a Google model for image generation, exposed as a REST API on OpenSIAI. Google Gemini 2.5 Flash Text-to-Image delivers state-of-the-art text-to-image generation and image editing with previews. 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 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-preview/text-to-image.
How much does Gemini 2.5 Flash Image Preview Text To Image cost per run or per second?
Gemini 2.5 Flash Image Preview 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 Preview 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-preview/text-to-image.
How long does Gemini 2.5 Flash Image Preview 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 Preview 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.
