Skip to content

GPT 5.4

model: 'gpt-5-4'

Available through openai and openrouter.

Configuration

ts
// OpenAI
{
  provider: 'openai',
  model: 'gpt-5-4',
  extra: { apiKey: process.env.OPENAI_API_KEY },
}

// OpenRouter
{
  provider: 'openrouter',
  model: 'gpt-5-4',
  extra: { apiKey: process.env.OPENROUTER_API_KEY },
}

See OpenAI or OpenRouter for authentication.

Specifications

Max input tokens1,000,000
Max output tokens128,000
TemperatureNot sent — sampling parameters are unsupported on this model

Cost

Cost
Input tokens$2.50 / million
Output tokens$15.00 / million

Costs are estimates. Actual billing depends on the provider and region.

JSON output

JSON enrichers use response_format: json_schema (strict: true). See JSON output and schemas.

Timeout

timeoutMs applies per individual LLM call within a batch. If unset, no explicit timeout is applied beyond the provider's default.