API · Models
TextFeatured
Gemini 3.1 Pro
Gemini 3.1 Pro Preview is Google's frontier reasoning model with enhanced software engineering, mathematics, and science capabilities and a 1M token context window.
Context 1.0M·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-3.1-pro-preview'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- $2
- Output $/M
- $12
- Context window
- 1.0M
- Max output
- 65.5K
- Supported parameters
- tool-usereasoningvisionjson-mode
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| Blackbox Pro | Text | 400K | $1.75 |
| GPT-5.3 Codex | Text | 400K | $1.75 |
| MiniMax M2.5 | Text | 128K | $0.30 |
| Claude Opus 4.6 | Text | 1M | $5 |
| Sonnet 4.6 | Text | 1M | $3 |