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

ModelTypeContextInput $/M
GPT-5.5 ProText1M$30
GPT-5.5Text1M$5
GPT-5.4 ProText1.1M$30
GPT-5.4Text1.1M$2.50
GPT-5.3 CodexText400K$1.75