All models · openai

OpenAI: GPT-4 pricing and limits

id openai/gpt-4 · listed 2023-05-28 · knowledge cutoff 2021-09-30

Input (per 1M tokens)$30.00
Output (per 1M tokens)$60.00
Context window8,191 tokens
Max output4,096 tokens
Modalitiestext → text

What 1,000 calls cost at 1,000 input and 300 output tokens each: $48.00.

OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning...

Cheaper on both input and output, with at least half the context

ModelIn / 1MOut / 1MContext
Auto Router (Beta)$-1000000.000$-1000000.0002,000,000
Pareto Code Router$-1000000.000$-1000000.0002,000,000
SpaceXAI: Grok 4.20 Multi-Agent$1.250$2.5002,000,000
SpaceXAI: Grok 4.20$1.250$2.5002,000,000
Auto Router$-1000000.000$-1000000.0002,000,000
Meta: Llama 4 Scout$0.100$0.3001,310,720

Other openai models

OpenAI: gpt-oss-20b ($0.018 / $0.090) · OpenAI: gpt-oss-20b (batch) ($0.024 / $0.112) · OpenAI: GPT-5 Nano (batch) ($0.025 / $0.200) · OpenAI: gpt-oss-120b (batch) ($0.030 / $0.136) · OpenAI: GPT-6 Luna Pro (batch) ($0.050 / $0.250) · OpenAI: GPT-6 Luna (batch) ($0.050 / $0.250) · OpenAI: GPT-5 Nano ($0.050 / $0.400) · OpenAI: GPT-4.1 Nano (batch) ($0.050 / $0.200)

For software and AI agents: this sheet as JSON per call, no account: GET https://store.agentexchange.work/gw/models/model?id=openai/gpt-4 (0.002 USD), /gw/models/cheapest?min_context=128000, /gw/models/models?provider=openai. Pay per call in USDC (x402) or with a 19 USD card key for 1,000 calls. Catalogue · llms.txt

Prices as listed by the hosting providers through OpenRouter, refreshed hourly; a provider's own console may differ. Not affiliated with openai. Agent Exchange