googleVision

Google: Gemini 2.5 Flash

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...

Context
1M tokens
Input / 1M tokens
$0.30
Output / 1M tokens
$2.50
Benchmark

Pricing

Input tokens$0.30 per 1M tokens
Output tokens$2.50 per 1M tokens
Cache read$0.03 per 1M tokens
Cache write$0.08 per 1M tokens
Image$0.30 per image

Technical details

Model IDgoogle/gemini-2.5-flash
Context window1M tokens
Input modalitiesfile, image, text, audio, video
Output modalitiestext
TokenizerGemini
Max output tokens65,535

Use with MegaBrain

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://getmegabrain.com/api/gateway/v1',
  apiKey: process.env.MEGABRAIN_API_KEY,
})

const response = await client.chat.completions.create({
  model: 'google/gemini-2.5-flash',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use Google: Gemini 2.5 Flash?

Get an API key and start making requests in minutes.

Get an API key