Okay, here's a comparison of the API costs for the latest available Grok models, Gemini models, and Claude 3 Sonnet, presented in a table.
Important Note: As of April 1, 2025, Grok 3 has been announced and previewed [16, 28], but there is no public API pricing available for Grok 3 yet [11, 18, 23]. The pricing listed below for Grok is for the currently available Grok-2 models via the xAI API [1, 5, 9, 14, 16, 21, 24]. xAI has mentioned Grok 3 will be available via API in the coming weeks [25].
Here's the cost comparison table (all prices are per million tokens):
| Model Family | Specific Model | Input Cost (per 1M tokens) | Output Cost (per 1M tokens) | Notes |
|---|
| xAI Grok | Grok 3 / Grok 3 Mini | Not Yet Available | Not Yet Available | API access announced but pricing not released [18, 25]. |
| Grok-2 (grok-2-1212) | $2.00 | $10.00 | Text model, 131k context [1, 9, 16]. |
| Grok-2 Vision (grok-2-vision-1212) | $2.00 (Text or Image Input) | $10.00 | Vision model, 32k context [1, 16]. |
| Grok Beta (Deprecated) | $5.00 | $15.00 | Older model, 131k context [1, 2, 15, 22, 24, 29]. |
| Google Gemini | Gemini 1.5 Pro | 3.50(prompts≤128ktokens)<br>7.00 (prompts > 128k tokens) | 10.50(prompts≤128ktokens)<br>21.00 (prompts > 128k tokens) | Pricing often quoted per 1k characters/second for multimodal inputs [17]. The token prices here are derived/stated equivalents [8, 19]. Up to 2M token context [19]. |
| Gemini 1.5 Flash | 0.075(prompts≤128ktokens)<br>0.15 (prompts > 128k tokens) | 0.60 (prompts > 128k tokens) |
| Gemini 1.0 Pro | $0.125 | $0.375 | Older model, often priced per 1k characters [17, 26]. |
| Anthropic Claude | Claude 3.7 Sonnet | $3.00 | $15.00 | Latest Sonnet model [3, 6, 13, 25]. |
| Claude 3 Sonnet (Legacy) | $3.00 | $15.00 | Original Claude 3 Sonnet [4, 10, 13]. |
Key Considerations:
- Grok 3 Pricing: Is currently unknown for API usage. Access is available via X Premium+ (40−50/month) or SuperGrok ($30/month) subscriptions for direct use [18, 23, 25, 28].
- Model Capabilities: These models differ significantly in their strengths (e.g., reasoning, coding, speed, multimodality, context window size) [1, 3, 8, 9, 16, 19, 25]. Cost is only one factor in choosing the right model.
- Gemini Pricing Structure: Google often lists Vertex AI pricing per 1,000 characters or per second for multimodal inputs (image, video, audio) [17]. The table shows the equivalent per-token pricing where available for easier comparison [8, 19]. Pricing for Gemini 1.5 Pro doubles for inputs/outputs when context exceeds 128k tokens [8, 19].
- Claude 3 Family: Anthropic also offers Claude 3 Haiku (cheaper, faster) and Claude 3 Opus (more expensive, more capable) [4, 10, 13]. Claude 3.7 Sonnet is the latest iteration in the Sonnet line [3, 6, 13].
- Beta/Deprecated Models: Grok Beta pricing is included for reference but it's a deprecated model [1]. Gemini 1.0 Pro is older but still available [17, 26].
- Regions and Availability: API availability and specific model access can vary by region and account status [1].
- Discounts: Volume discounts, free tiers, promotional credits (like xAI's $25 monthly beta credit), or batch processing discounts may apply [1, 3, 5, 15, 17, 18, 19].
Always check the official pricing pages for xAI, Google AI / Vertex AI, and Anthropic for the most current information, as prices can change.