API pricing and billing

Browse 95 published models with pricing, context limits, API protocols, and examples. Availability and parameter support depend on the selected model and route.

Catalog updated 2026-11-04 · Published base prices are shown below. Account discounts, offers, and final billing are shown in your dashboard. Different billing units are not directly comparable.

How to read pricing

Text models bill input and output tokens separately; tiered prices depend on input size. Image and audio models may bill per image, request, character, or duration. Open a model for billing units and limits; cache prices apply only where supported and eligible.

Errors and billing checks

OpenAI

gpt-realtime-2.1-mini

Text input
$0.60
/ 1M tokens
Audio input
$10.00
/ 1M tokens
Image input
$0.80
/ 1M tokens
Text output
$2.40
/ 1M tokens
Audio output
$20.00
/ 1M tokens

/v1/realtime

OpenAI

gpt-transcribe

$0.000075
/ audio second

/v1/audio/transcriptions · /v1/realtime?intent=transcription

OpenAI

gpt-4o-mini-tts

Input
$0.60
/ 1M tokens
Output
$12.00
/ 1M tokens

/v1/audio/speech

OpenAI

gpt-image-2.5-sunburst

Text input
$5.00
/ 1M tokens
Image input
$8.00
/ 1M tokens
Image output
$30.00
/ 1M tokens

/v1/images/generations · /v1/images/edits

OpenAI

gpt-image-2.5-flare

Text input
$5.00
/ 1M tokens
Image input
$8.00
/ 1M tokens
Image output
$30.00
/ 1M tokens

/v1/images/generations · /v1/images/edits

OpenAI

gpt-image-2

Text input
$5.00
/ 1M tokens
Image input
$8.00
/ 1M tokens
Image output
$30.00
/ 1M tokens

/v1/images/generations · /v1/images/edits

OpenAI

gpt-6.1-terra

Input
≤272K: $1.00
>272K: $2.00
/ M tokens
Output
≤272K: $5.00
>272K: $7.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-6.1-sol

Input
≤272K: $2.00
>272K: $4.00
/ M tokens
Output
≤272K: $10.00
>272K: $15.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-6-sol

Input
$2.00
/ M tokens
Output
$10.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-6-luna

Input
$0.10
/ M tokens
Output
$0.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-6-astra

Input
$10.00
/ M tokens
Output
$50.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.6-sol

Input
$5.00
/ M tokens
Output
$30.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.6-terra

Input
$1.00
/ M tokens
Output
$6.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.6-luna

Input
$0.10
/ M tokens
Output
$0.60
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.5

Input
≤272K: $5.00
>272K: $10.00
/ M tokens
Output
≤272K: $30.00
>272K: $45.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.4-pro

Input
≤272K: $30.00
>272K: $60.00
/ M tokens
Output
≤272K: $180.00
>272K: $270.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.4-mini

Input
$0.75
/ M tokens
Output
$4.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.4-nano

Input
$0.20
/ M tokens
Output
$1.25
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.4

Input
≤272K: $2.50
>272K: $5.00
/ M tokens
Output
≤272K: $15.00
>272K: $22.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.3-codex

Input
$1.75
/ M tokens
Output
$14.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.2-codex

Input
$1.75
/ M tokens
Output
$14.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.2

Input
$1.75
/ M tokens
Output
$14.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.1

Input
$1.25
/ M tokens
Output
$10.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.1-codex-max

Input
$1.25
/ M tokens
Output
$10.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.1-codex

Input
$1.25
/ M tokens
Output
$10.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5.1-codex-mini

Input
$0.25
/ M tokens
Output
$2.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5

Input
$1.25
/ M tokens
Output
$10.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5-mini

Input
$0.25
/ M tokens
Output
$2.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5-nano

Input
$0.05
/ M tokens
Output
$0.40
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5-codex

Input
$1.25
/ M tokens
Output
$10.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-5-pro

Input
$15.00
/ M tokens
Output
$120.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-oss-120b

Input
$0.05
/ M tokens
Output
$0.24
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-4.1

Input
$2.00
/ M tokens
Output
$8.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-4.1-nano

Input
$0.10
/ M tokens
Output
$0.40
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

gpt-4.1-mini

Input
$0.40
/ M tokens
Output
$1.60
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

codex-mini

Input
$1.50
/ M tokens
Output
$6.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

o3-pro

Input
$20.00
/ M tokens
Output
$80.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

o4-mini

Input
$1.10
/ M tokens
Output
$4.40
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

o3

Input
$2.00
/ M tokens
Output
$8.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

o3-mini

Input
$1.10
/ M tokens
Output
$4.40
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

OpenAI

o1

Input
$15.00
/ M tokens
Output
$60.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Black Forest Labs

FLUX.2-pro

Reference image input
$0.015
/ MP
First MP per image
$0.03
/ MP
Additional output
$0.015
/ MP

/v1/images/generations · /v1/images/edits

Black Forest Labs

FLUX.2-flex

Reference image input
$0.06
/ MP
Image output
$0.06
/ MP

/v1/images/generations · /v1/images/edits

Black Forest Labs

FLUX-1.1-pro

$0.04
/ image

/v1/images/generations

MiniMax

MiniMax-M3

Input
$0.30
/ M tokens
Output
$1.20
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Z.ai

GLM-5.3-Flash

Input
$0.15
/ M tokens
Output
$0.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Z.ai

GLM-5.3

Input
$1.40
/ M tokens
Output
$4.40
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Google

gemini-3.8-flash

Input
$0.375
/ M tokens
Output
$1.875
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Google

gemini-4-argon

Input
$2.00
/ M tokens
Output
$10.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Anthropic

claude-haiku-5-5

Input
≤100K: $0.10
>100K: $0.50
/ M tokens
Output
≤100K: $0.50
>100K: $2.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses · /v1/messages

Anthropic

claude-sonnet-5-5

Input
$2.00
/ M tokens
Output
$10.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses · /v1/messages

Anthropic

claude-opus-5-5

Input
$4.00
/ M tokens
Output
$20.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses · /v1/messages

Anthropic

claude-opus-5

Input
$5.00
/ M tokens
Output
$25.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses · /v1/messages

Anthropic

claude-sonnet-5

Input
$2.00
/ M tokens
Output
$10.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses · /v1/messages

Anthropic

claude-fable-5

Input
$10.00
/ M tokens
Output
$50.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses · /v1/messages

Anthropic

claude-opus-4-8

Input
$5.00
/ M tokens
Output
$25.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses · /v1/messages

Anthropic

claude-haiku-4-5

Input
$1.00
/ M tokens
Output
$5.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses · /v1/messages

Deepseek

DeepSeek-V4-Pro

Input
$0.435
/ M tokens
Output
$0.87
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Deepseek

DeepSeek-V4-Flash

Input
$0.14
/ M tokens
Output
$0.28
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Deepseek

DeepSeek-V3.2-Speciale

Input
$0.27
/ M tokens
Output
$0.41
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Deepseek

DeepSeek-V4-Flash-0731

Input
$0.14
/ M tokens
Output
$0.28
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Deepseek

DeepSeek-V3.2

Input
$0.25
/ M tokens
Output
$0.38
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

MoonshotAI

Kimi-K3

Input
$2.90
/ M tokens
Output
$15.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

MoonshotAI

Kimi-K2.7-Code

Input
$0.74
/ M tokens
Output
$3.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

MoonshotAI

Kimi-K2.6

Input
$0.66
/ M tokens
Output
$3.41
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

MoonshotAI

Kimi-K2.5

Input
$0.60
/ M tokens
Output
$3.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

xAI

grok-4.7

Input
≤200K: $1.60
>200K: $3.20
/ M tokens
Output
≤200K: $4.80
>200K: $9.60
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

xAI

grok-4.6

Input
≤200K: $2.00
>200K: $4.00
/ M tokens
Output
≤200K: $6.00
>200K: $12.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

xAI

grok-4-20-non-reasoning

Input
≤200K: $1.25
>200K: $2.50
/ M tokens
Output
≤200K: $2.50
>200K: $5.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

xAI

grok-4-20-reasoning

Input
≤200K: $1.25
>200K: $2.50
/ M tokens
Output
≤200K: $2.50
>200K: $5.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

xAI

grok-4-1-fast-reasoning

Input
$1.25
/ M tokens
Output
$2.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

xAI

grok-4.3

Input
≤200K: $1.25
>200K: $2.50
/ M tokens
Output
≤200K: $2.50
>200K: $5.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

xAI

grok-code-fast-1

Input
$0.20
/ M tokens
Output
$1.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

xAI

grok-4

Input
$3.00
/ M tokens
Output
$15.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Ministral

Mistral-Large-3

Input
$0.50
/ M tokens
Output
$1.50
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Ministral

Ministral-3B

Input
$0.04
/ M tokens
Output
$0.04
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Ministral

mistral-medium-2505

Input
$0.40
/ M tokens
Output
$2.00
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Ministral

mistral-small-2503

Input
$0.03
/ M tokens
Output
$0.11
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Ministral

Codestral-2501

Input
$0.30
/ M tokens
Output
$0.90
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Meta

Llama-3.3-70B-Instruct

Input
$0.10
/ M tokens
Output
$0.32
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Microsoft

Phi-4

Input
$0.06
/ M tokens
Output
$0.14
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Microsoft

Phi-4-mini-reasoning

Input
$0.03
/ M tokens
Output
$0.07
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Microsoft

Phi-4-reasoning

Input
$0.07
/ M tokens
Output
$0.35
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses

Microsoft

Phi-4-mini-instruct

Input
$0.03
/ M tokens
Output
$0.07
/ M tokens
USD / 1M tokens

/v1/chat/completions · /v1/responses