gemini-2.5-flash-image
Provider list prices: no platform markup, pay-as-you-go. These are official list prices. Logged-in customers may see effective prices including workspace discounts on /console/pricing.
Use gemini-2.5-flash-image in 30 seconds
OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/images/generations
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.images.generate(
model="gemini-2.5-flash-image",
prompt="a watercolor lighthouse at dawn",
size="1024x1024",
)
print(resp.data[0].b64_json[:80])import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.images.generate({
model: "gemini-2.5-flash-image",
prompt: "a watercolor lighthouse at dawn",
size: "1024x1024",
});
console.log(resp.data?.[0]?.b64_json?.slice(0, 80));curl https://synthorai.io/v1/images/generations \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-flash-image",
"prompt": "a watercolor lighthouse at dawn",
"size": "1024x1024"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Images.Generate(context.TODO(), openai.ImageGenerateParams{
Model: "gemini-2.5-flash-image",
Prompt: "a watercolor lighthouse at dawn",
Size: "1024x1024",
})
fmt.Println(resp.Data[0].B64JSON[:80])
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.images.*;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ImagesResponse resp = client.images().generate(
ImageGenerateParams.builder()
.model("gemini-2.5-flash-image")
.prompt("a watercolor lighthouse at dawn")
.size("1024x1024")
.build());
System.out.println(resp.data().orElseThrow().get(0).b64Json().orElseThrow().substring(0, 80));About gemini-2.5-flash-image
Gemini 2.5 Flash Image, known as Nano Banana, is Google's image generation and editing model that the official page calls its best engine for high-velocity visual creation, with state-of-the-art speed and efficiency.
- It is designed for high-volume scenarios, conversational image editing, and low-latency workflows, combining native multimodal understanding of image and text input with image-and-text output.
- Token limits are 65,536 for input and 32,768 for output, and structured outputs, caching, and batch processing are supported.
- Synthorai serves it behind the same OpenAI-compatible endpoint as its chat models.
Specs & limits
| Max output (vendor spec) | 32,768 |
| Modalities | text + image → image + text |
| Features | vision · structured_output · batch · caching |
| Image capabilities | Native multimodal image generation with conversational image editing, optimized for high-volume, low-latency creative workflows; image+text in, image+text out |
| Notable | Unusually for an image model, publishes a knowledge cutoff (June 2025); function calling and thinking not supported. |
FAQ
Is the gemini-2.5-flash-image API free to try?
Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. That's enough to try gemini-2.5-flash-image against your real workload before adding a payment method.
What is gemini-2.5-flash-image best at?
Best engine for high-velocity visual creation, plus conversational image editing at low latency and state-of-the-art speed and efficiency. See the About section for the full picture from the vendor's own release notes.
How much does gemini-2.5-flash-image cost?
gemini-2.5-flash-image costs $0.3 per million input tokens and $30 per million output tokens on Synthorai. That is the provider's list price, with no platform markup.
How do I generate images with the gemini-2.5-flash-image API?
POST to /v1/images/generations on Synthorai with model="gemini-2.5-flash-image". It follows the OpenAI images API shape, so no vendor SDK is needed.
How do I get access to gemini-2.5-flash-image?
Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="gemini-2.5-flash-image", and you're done. One API key covers every model on the gateway.