Grok 4.7 API

Call Grok 4.7 through Wokey and review published catalog pricing, upstream-native API forms, context, and model capabilities.

Model ID
grok-4.7
Vendors
xai
Supply status
Currently callable

Catalog pricing snapshot

Prices are per 1M tokens; request-time pricing controls settlement.

MeterWokeyOfficial referenceSavings
Input$0.28$286%
Output$0.84$686%
Cache read$0.07$0.586%
Cache write———

Official price source: https://docs.x.ai/developers/models/grok-4.7

Model capabilities

Context
500,000 tokens
Max output
500,000 tokens
Streaming
Supported
Tools
Supported
Vision
Supported
Supported API forms
/v1/chat/completions · /v1/responses

Send a request

/v1/chat/completions

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

/v1/responses

curl https://api.wokey.ai/v1/responses \
  -H "Authorization: Bearer $WOKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-4.7","input":"Hello"}'

Use Grok 4.7 in your tools

The gateway is https://api.wokey.ai (OpenAI-compatible clients usually take https://api.wokey.ai/v1), and the model ID is grok-4.7. Open the guide for the client you use.

Frequently asked questions

How much does the Grok 4.7 API cost, and how much does it save versus the official API?

Wokey lists input at $0.28 per 1M tokens and output at $0.84 per 1M tokens; the official references are $2 and $6. That is 86% lower for input and 86% lower for output. Request-time pricing controls settlement, and the vendor pricing source is linked on this page.

What is the Grok 4.7 API model ID?

The model ID for Grok 4.7 on Wokey is grok-4.7. Use it exactly as written in the request body's model field or in your client's model setting (for example ANTHROPIC_MODEL in Claude Code, or model in the Codex CLI config.toml); GET https://api.wokey.ai/v1/models also lists it.

Which API forms does Grok 4.7 support, and how do I call it through Wokey?

Grok 4.7 supports /v1/chat/completions (Chat Completions requests) and /v1/responses (Responses requests). Set the API base URL to https://api.wokey.ai, authenticate with a Wokey API key, and use the canonical model ID grok-4.7; you can start with /v1/chat/completions. The Send a request section includes a curl example for every supported API form.

How do I use Grok 4.7 in Codex CLI?

Codex CLI calls Grok 4.7 over the Responses protocol. Add a model_provider to ~/.codex/config.toml with base_url = "https://api.wokey.ai", wire_api = "responses", and env_key = "OPENAI_API_KEY"; set model to grok-4.7 and put your Wokey API key in OPENAI_API_KEY. The Codex CLI guide has the full config.

What are the context window and maximum output for Grok 4.7?

The catalog context window is 500,000 tokens and the maximum output is 500,000 tokens. These are separate limits, and a request must also satisfy the upstream constraints in effect when it is processed.

How are cache reads and cache writes priced for Grok 4.7?

Cache read: Wokey lists $0.07 per 1M tokens and the official reference is $0.5 per 1M tokens. Cache write: the vendor does not publish a separate meter, so Wokey also shows — as the public price.

How does calling Grok 4.7 through Wokey differ from OpenRouter?

Wokey lists Grok 4.7 at $0.28 input / $0.84 output per 1M tokens, against an official reference of $2 / $6. OpenRouter states it adds no markup on inference and charges its fee when you buy credits (5.5% by card). Wokey carries a curated set of models and has no per-provider routing parameters, so OpenRouter fits better if you need a wider catalog. The OpenRouter alternative page has the full comparison.

How do Grok 4.7 and Grok 4.6 differ in price and context?

In the published price comparison, Grok 4.7 lists input/output at $0.28 / $0.84 with a 500,000-token context window; Grok 4.6 lists $0.28 / $0.84 with a 500,000-token context window. This is a factual price-and-capacity comparison, not a quality ranking; also compare their supported API forms and capabilities.

Related models and documentation

Get API key · grok-4.7