1. 7API
  2. Models
  3. Grok

Grok API access

xAI's Grok 4.x models through 7API, with the same key and base URL as every other family.

ModelIDContextMax outputInput / 1MOutput / 1MCached / 1M
Grok 4.7grok-4.7500K66K$0.10$0.10$0.02
Grok 4.6grok-4.6500K66K$0.10$0.10$0.02
Grok 4.5grok-4.5200K64K$0.10$0.10$0.02

Rates are in USD per million tokens. Last checked 2026-11-20.

What to know

Quick start

curl
curl https://7api.st/v1/chat/completions \
  -H "Authorization: Bearer $SEVENAPI_API_KEY" -H "Content-Type: application/json" \
  -d '{"model": "grok-4.7", "messages": [{"role": "user", "content": "Hello"}]}'

Set the base URL to https://7api.st/v1 for OpenAI-format clients, or https://7api.st for Anthropic-format clients. See the quickstart for SDK examples.

Independent benchmarks

Scores published by third parties, not by 7API. See all benchmarks for sources and method.

ModelArtificial Analysis Intelligence IndexEffort
grok-4.746xhigh