xAI API
Get a xAI API key and call the xAI models (Grok) below through Token Harbor with a single key — pay-as-you-go, no separate xAI account or console. Fully OpenAI- and Anthropic-compatible, with transparent per-token pricing. See xAI API pricing per model below.
Call it with one key
curl https://tokenharbor.ai/v1/chat/completions \
-H "Authorization: Bearer $TOKENHARBOR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-4.5","messages":[{"role":"user","content":"Hello"}]}'Get a free key at /dashboard/api-keys · point any tool at us with the Connect CLI or manual setup.
xAI models (3)
| Model | Context | $/1M in · out |
|---|---|---|
Grok 4.5grok-4.5 | 500k | $2.00 · $6.00 |
Grok 4.6grok-4.6 | 500k | $2.00 · $6.00 |
Grok 4.7grok-4.7 | 500k | $2.00 · $6.00 |
See the full model catalog or read the API docs.