API · Models
Text
GPT-5.4 Nano
GPT-5.4 Nano is designed for tasks where speed and cost matter most like classification, data extraction, ranking, and sub-agents.
Context 400K·Max out 128K
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-5.4-nano'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- $0.20
- Output $/M
- $1.25
- Context window
- 400K
- Max output
- 128K
- Supported parameters
- tool-usereasoningvisionjson-modestreamingweb-search
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| GPT-5.5 Pro | Text | 1M | $30 |
| GPT-5.5 | Text | 1M | $5 |
| GPT-5.4 Pro | Text | 1.1M | $30 |
| GPT-5.4 | Text | 1.1M | $2.50 |
| GPT-5.3 Codex | Text | 400K | $1.75 |