Models/Grok
Text

Grok

by xAI

xAI Grok models for real-time reasoning, coding, and tool-driven agent workflows.

Capabilities

  • Chat
  • Reasoning
  • Live search

Available models

Pass any of these IDs in the model field.

Model IDDetailPrice
grok-5256K context$3.00 / 1M input tokens
grok-5-mini256K context$0.30 / 1M input tokens

Pricing starts at

$0.0003 / 1K tokens

Pay only for what you use. Each response returns the exact amount settled against your balance — no subscriptions, no minimums.

Quickstart

Grok · grok-5

cURL
curl https://capi.ai/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-5",
    "messages": [{"role": "user", "content": "Hello"}]
  }'