Side-by-side comparison of API pricing, context windows, and capabilities. Both models are available through one MeshTok API key at official list pricing.
Cheaper input: Claude Sonnet 5 ($3.00/M) · Longer context: Claude Sonnet 5 (1M)
| Anthropic | xAI | |
|---|---|---|
| Input price | $3.00/M | $3.00/M |
| Output price | $15.00/M | $15.00/M |
| Context window | 1M | 256K |
| Vendor | Anthropic | xAI |
| Origin | US | US |
| Image input | Yes | Yes |
| Video input | No | No |
| Audio input | No | No |
| Reasoning | Yes | Yes |
| Coding | Yes | No |
| Tool use | Yes | Yes |