API · Models
Audio
gpt-realtime-2.1
GPT-Realtime-2.1 updates GPT-Realtime-2 with improved alphanumeric recognition, silence and noise handling, and interruption behavior. It supports speech-to-speech interactions with configurable reasoning effort, instruction following, and tool use for complex voice-agent workflows.
Context 128K·Max out 32K
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/openai/gpt-realtime-2.1'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- 4
- Output $/M
- 24
- Context window
- 128K
- Max output
- 32K
- Supported parameters
- —
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| GPT-OSS 120B | Text | 131K | 0.1 |
| Blackbox Pro | Text | 400K | 1.75 |
| GPT-5.5 Pro | Text | 1M | 30 |
| GPT-5.5 | Text | 1M | 5 |
| GPT-5.4 Pro | Text | 1.1M | 30 |