API · Models
Text

Gemini 2.5 Flash

Gemini 2.5 Flash is a thinking model that offers great, well-rounded capabilities. It is designed to offer a balance between price and performance with multimodal support and a 1M token context window.

FilesReasoningToolsVisionweb searchCache
Context 1M·Max out 65.5K

Quickstart

import { streamText } from 'ai';
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';

const blackbox = createOpenAICompatible({
  name: 'blackbox',
  apiKey: process.env.BLACKBOX_API_KEY!,
  baseURL: 'https://api.blackbox.ai/v1',
});

const result = streamText({
  model: blackbox('blackboxai/google/gemini-2.5-flash'),
  prompt: 'Why is the sky blue?',
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}

Specs & pricing

Input $/M
0.3
Output $/M
2.50
Context window
1M
Max output
65.5K
Supported parameters

Related models

ModelTypeContextInput $/M
Gemma 4 31BText262.1K0.14
Gemma 4 26BText262.1K0.15
Gemini 3.5 FlashText1M1.50
Gemini 3.1 Flash LiteText1M0.25
Gemini 3.1 ProText1.0M2