Gemini 2.5 Flash
Sign in to try Gemini 2.5 Flash
Sign in with your Google account and top up credits to get started.
Sign in with GoogleUse via API
Base URL: https://adverraai.com/hub/api/v1 · Authenticate with Authorization: Bearer YOUR_API_KEY — create a key in your dashboard
curl https://adverraai.com/hub/api/v1/chat/completions \
-H "Authorization: Bearer $ADVERRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-2.5-flash",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'
# pip install openai
from openai import OpenAI
client = OpenAI(base_url="https://adverraai.com/hub/api/v1", api_key="YOUR_API_KEY")
r = client.chat.completions.create(
model="google/gemini-2.5-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)
const r = await fetch("https://adverraai.com/hub/api/v1/chat/completions", {
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ model: "google/gemini-2.5-flash", messages: [{ role: "user", content: "Hello" }] })
});
const data = await r.json();
console.log(data.choices[0].message.content, data.usage.credits);
Fully compatible with OpenAI Chat Completions: stream, temperature, max_tokens, tools, image messages, etc. The response includes usage.credits showing the credits used.
Parameters for this model
Send as JSON in the request body. Fields marked * are required.
| Parameter | Type | Allowed values | Default | Description |
|---|---|---|---|---|
model * |
string | – | – | ID of the model to call — google/gemini-2.5-flash |
messages * |
array | – | – | Conversation messages, each with role (system / user / assistant) and content |
max_tokens |
integer | – | – | Maximum tokens in the answer |
temperature |
number | 0 – 2 | 1 | Randomness of the answer; lower is steadier |
top_p |
number | 0 – 1 | 1 | Nucleus sampling threshold |
stream |
boolean | true, false | false | Stream the answer back in chunks (SSE) |
stop |
string | array | – | – | Sequences where generation stops |
tools |
array | – | – | Tools (functions) the model may call |
tool_choice |
string | object | – | – | Controls how tools are chosen |
response_format |
object | – | – | Forces an answer format such as JSON |
About this model
Gemini 2.5 Flash is a Chat & Text model by Google
Gemini 2.5 Flash is Google's state-of-the-art workhorse model, specifically designed for advanced reasoning, coding, mathematics, and scientific tasks. It includes built-in "thinking" capabilities, enabling it to provide responses with greater...
Preparing details in English…