Side-by-side technical and economic comparison between Meta / Together's Llama 4 Maverick (400B) — Together AI and xAI's Grok 2.
• Llama 4 Maverick (400B) — Together AI: Classified as a Legacy Reference model (Deprecated on Together AI (Reference)).
• Grok 2: Classified as a Legacy Reference model (Generally Available).
| Metric | Llama 4 Maverick (400B) — Together AI | Grok 2 | Advantage |
|---|---|---|---|
| Provider Organization | Meta / Together | xAI | — |
| Standard Input / 1M | $0.27 | $2.00 | Llama 4 Maverick (400B) — Together AI (87% lower) |
| Cached Input / 1M | None | None | Llama 4 Maverick (400B) — Together AI lower |
| Output / 1M | $0.85 | $10.00 | Llama 4 Maverick (400B) — Together AI lower |
| Context Window | 1M | 128k | Llama 4 Maverick (400B) — Together AI (1M) |
| Max Generation Tokens | 16.4k | 8.2k | Llama 4 Maverick (400B) — Together AI |
| Tokenizer Family | Meta Llama 3/4 Tiktoken (128k vocabulary) | xAI Byte-level BPE (~131k vocabulary) | — |
Opt for Llama 4 Maverick (400B) — Together AI when your engineering requirements prioritize Meta / Together's ecosystem, specific tokenizer efficiencies (Calibrated Llama 3 Tokenizer (±3%)), or when your expected prompt-to-completion ratios favor its $0.27/M input rate.
Opt for Grok 2 when looking for xAI's tooling integration, specific context window depth (128k tokens), or when output generation volume favors its $10/M rate.