Gemini 2.5 Flash
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. Effective input at a 70% cache-hit rate:$0.111/M. Implicit caching is on by default for current Gemini models (discounted automatically on cache hits), plus an explicit CachedContent API with storage-based billing for guaranteed savings.
Use Gemini 2.5 Flash in 30 seconds
OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/chat/completions
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.chat.completions.create(
model="gemini-2.5-flash",
messages=[{"role": "user", "content": "Summarize this diff"}],
reasoning_effort="medium",
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "gemini-2.5-flash",
messages: [{ role: "user", content: "Summarize this diff" }],
reasoning_effort: "medium",
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-flash",
"messages": [{"role": "user", "content": "Hello"}],
"reasoning_effort": "medium"
}'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.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "gemini-2.5-flash",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
ReasoningEffort: openai.ReasoningEffortMedium,
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
import com.openai.models.ReasoningEffort;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("gemini-2.5-flash")
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));About Gemini 2.5 Flash
Gemini 2.5 Flash is Google's best price-performance Gemini 2.5 model, aimed at low-latency, high-volume workloads that still require reasoning, including large-scale processing and agentic applications.
- It is a thinking model with a 1,048,576-token context window and 65,536-token output limit, accepting text, image, video, and audio input.
- Supported capabilities include function calling, structured outputs, code execution, search grounding, URL context, and context caching, with a January 2025 knowledge cutoff.
- Developers reach it on Synthorai through the familiar OpenAI-compatible chat completions API.
Specs & limits
| Max output (vendor spec) | 65,536 |
| Modalities | text + image + video + audio → text |
| Features | tools · structured_output · streaming · vision · batch · caching · reasoning |
| Notable | First stable 2.5 Flash release; 1,048,576-token input / 65,536 output; text+image+video+audio input; thinking supported. |
| Prompt caching | automatic + explicit · min 1,024-token prefix |
FAQ
Is the Gemini 2.5 Flash API free to try?
Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. At $0.3/M input tokens, that credit alone covers roughly 416 requests of ~8K tokens against Gemini 2.5 Flash.
What is Gemini 2.5 Flash best at?
Best price-performance for high-volume reasoning, plus thinking model with 1,048,576-token context and code execution and search grounding built in. See the About section for the full picture from the vendor's own release notes.
How much does Gemini 2.5 Flash cost?
Gemini 2.5 Flash costs $0.3 per million input tokens and $2.5 per million output tokens on Synthorai. That is the provider's list price, with no platform markup. Cached input tokens bill at $0.03/M.
Does Gemini 2.5 Flash support prompt caching?
Yes: automatic caching is on by default, with an explicit mode for guaranteed savings. Cached input tokens bill at $0.03/M vs $0.3/M uncached; prompts need a 1,024-token stable prefix to cache. Prompt caching guide →
How do I get access to Gemini 2.5 Flash?
Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="gemini-2.5-flash", and you're done. One API key covers every model on the gateway.
What is Gemini 2.5 Flash's knowledge cutoff?
Gemini 2.5 Flash's knowledge cutoff is 2025-01, per the vendor's official documentation (as of 2026-07-09).