Openai API Pricing (Updated 2025)

This page tracks Openai API pricing for all 34 models. Prices are shown per 1,000 tokens (cost per token) with clear examples so you can estimate spend quickly.

Current Prices (per 1,000 tokens)

Model
Input ($/1K tokens)
Output ($/1K tokens)
Context Length
chatgpt-4o-latest
$0.005000
$0.015000
128,000
codex-mini
$0.001500
$0.006000
200,000
gpt-3.5-turbo
$0.000500
$0.001500
16,385
gpt-3.5-turbo-0613
$0.001000
$0.002000
4,095
gpt-3.5-turbo-16k
$0.003000
$0.004000
16,385
gpt-3.5-turbo-instruct
$0.001500
$0.002000
4,095
gpt-4
$0.030000
$0.060000
8,191
gpt-4-0314
$0.030000
$0.060000
8,191
gpt-4-1106-preview
$0.010000
$0.030000
128,000
gpt-4-turbo
$0.010000
$0.030000
128,000
gpt-4-turbo-preview
$0.010000
$0.030000
128,000
gpt-4.1
$0.002000
$0.008000
1,047,576
gpt-4.1-mini
$0.000400
$0.001600
1,047,576
gpt-4.1-nano
$0.000100
$0.000400
1,047,576
gpt-4o
$0.002500
$0.010000
128,000
gpt-4o-mini
$0.000150
$0.000600
128,000
gpt-4o-mini-search-preview
$0.000150
$0.000600
128,000
gpt-4o-search-preview
$0.002500
$0.010000
128,000
gpt-4o:extended
$0.006000
$0.018000
128,000
gpt-5
$0.001250
$0.010000
400,000
gpt-5-chat
$0.001250
$0.010000
400,000
gpt-5-mini
$0.000250
$0.002000
400,000
gpt-5-nano
$0.000050
$0.000400
400,000
gpt-oss-120b
$0.000073
$0.000290
131,072
gpt-oss-20b
$0.000040
$0.000160
131,072
o1
$0.015000
$0.060000
200,000
o1-mini
$0.001100
$0.004400
128,000
o1-pro
$0.150000
$0.600000
200,000
o3
$0.002000
$0.008000
200,000
o3-mini
$0.001100
$0.004400
200,000
o3-mini-high
$0.001100
$0.004400
200,000
o3-pro
$0.020000
$0.080000
200,000
o4-mini
$0.001100
$0.004400
200,000
o4-mini-high
$0.001100
$0.004400
200,000

* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.

What does "cost per token" mean?

Tokens are the basic units that AI models use to process text. Generally, 1,000 tokens ≈ ~750 words. The cost per token determines how much you pay for each unit of text processed by the model.

Formula: Total Cost = (tokens / 1,000) × price per 1K tokens

Examples

Example usage: A 500-word prompt + 300-word response ≈ ~1,067 tokens total.

  • • 1,000 tokens ≈ ~750 words of text
  • • Short email: ~200-400 tokens
  • • Blog post: ~1,000-3,000 tokens
  • • Research paper: ~10,000+ tokens

Compare with Other Providers

See how Openai compares with other AI providers including OpenAI, Anthropic, Google, and more.

View full pricing comparison →

Frequently Asked Questions

Currently, gpt-oss-20b is the most affordable at $0.000040 per 1,000 input tokens.
Count your input tokens (prompt) and expected output tokens (response). Use the formula: (input_tokens/1000 × input_price) + (output_tokens/1000 × output_price). Our pricing calculator can help automate this.
Openai pricing varies by model. Input costs range from $0.000040 to $0.150000 per 1,000 tokens. See the table above for specific model pricing.