xAI's frontier Grok model for coding, agents, and visual knowledge work.
| Provider | Context | Price · in / out |
|---|---|---|
| 256K | $1.50 / $3.00/MTok |
routing.strategyproviders.onlyproviders.excludeproviders.ordermax_cost_usddata_policydocs →Collecting — charts appear after two days.
curl https://www.ninjachat.ai/api/v1/chat/completions \
-H "Authorization: Bearer $NINJACHAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4",
"messages": [{ "role": "user", "content": "Hello!" }],
"stream": true
}'xAI's Grok with strong reasoning and up-to-date knowledge.
Grok 4 costs $1.50/M input tokens and $3.00/M output tokens.
Grok 4 accepts text and returns text.
POST /api/v1/chat/completions with `"model": "grok-4"`.
Grok 4.6.
Anthropic's fastest Claude variant — lightning-quick responses.
Anthropic's most intelligent model — use when quality is paramount.
Anthropic's Opus 5 for complex agentic coding and enterprise knowledge work.