Below is a comparison of API pricing for popular AI platforms, focusing on cost per 1 million tokens (unless specified otherwise) for input/output processing. Prices are sourced from official documentation (as of May 2024) and subject to change.
1. OpenAI
Model
Input (per 1M tokens)
Output (per 1M tokens)
Notes
GPT-4 Turbo
$10.00
$30.00
128K context
GPT-4
$30.00
$60.00
8K context
GPT-3.5 Turbo
$0.50
$1.50
Default for most use cases
Embeddings (Ada-2)
$0.10
N/A
Per 1M tokens
DALL·E 3 (Images)
0.040−0.080
N/A
Per generated image (1024×1024)
2. Anthropic (Claude)
Model
Input (per 1M tokens)
Output (per 1M tokens)
Notes
Claude 3 Opus
$15.00
$75.00
Most advanced
Claude 3 Sonnet
$3.00
$15.00
Balanced performance
Claude 3 Haiku
$0.25
$1.25
Fast & cost-effective
3. Google Cloud (Vertex AI)
Model
Input (per 1M chars)
Output (per 1M chars)
Notes
Gemini 1.0 Pro
$0.50
$1.50
1M characters ≈ 250K tokens
Gemini 1.5 Pro
$3.50
$10.50
1M context; higher for 128K/1M context
Embeddings
$0.10
N/A
Per 1K vectors
4. Amazon Bedrock
Model
Input (per 1M tokens)
Output (per 1M tokens)
Notes
Claude 3 Opus
$15.00
$75.00
Same as Anthropic direct
Claude 3 Sonnet
$3.00
$15.00
Llama 2 70B
$0.65
$0.85
Meta’s model
Mistral Large
$8.00
$24.00
Stable Diffusion XL
$0.036
N/A
Per image (1024×1024)
5. Microsoft Azure OpenAI
Pricing mirrors OpenAI but with additional Azure infrastructure costs.
Example: GPT-4 Turbo input ≈ $10–20% higher than native OpenAI.