TopxAI

Loading...

TopxAI · Model prices · xAI

Grok 4.7 API pricing

Model id grok-4.7. $1 input / $3 output per 1M tokens on the lowest-priced route; every route is listed below. Prices are fixed in USD, charged from prepaid credit, and every request writes one usage-log row with the route and the charge.

Grok 4.7 by xAI: coding, agentic tasks and knowledge work with a 500K-token context. Prompts of 200K tokens or more are billed at the long-context rate (2x every lane) for the full request. Cached input is discounted and reasoning is enabled by default.

Prices by route

RouteInput (USD / 1M tokens)Output (USD / 1M tokens)Cache read (USD / 1M tokens)Cache write (USD / 1M tokens)Cache write (1h) (USD / 1M tokens)
Provider list price (checked 2026-09-23)$2$6$0.5——
Provider list price (checked 2026-09-23), from 200,000 input tokens (whole request)$4$12$1——
Official line$1.8$5.4$0.45——
Official line, from 200,000 input tokens (whole request)$3.6$10.8$0.9——
Shared pool$1$3$0.25——
Shared pool, from 200,000 input tokens (whole request)$2$6$0.5——

Input, output and cache lanes bill per million tokens. A whole-request long-context row applies once the input context of a request reaches the threshold shown. An Auto-route key sends each request to the lowest-priced route that serves the model.

Endpoints

Call grok-4.7

Base URL https://ai.topxea.com/v1 for OpenAI-style SDKs, https://ai.topxea.com for the Anthropic SDK; the API key goes where the provider's key would go.

curl https://ai.topxea.com/v1/chat/completions \
  -H "Authorization: Bearer $TOPXAI_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "grok-4.7", "messages": [{"role": "user", "content": "Say hello in one sentence."}]}'

Related

Get an API key · Docs · Blog · About TopxAI