[ xAI ]

Grok 4.7

Routed to the cheapest source. At or below list. Pay per token in USDF, with no subscription and no minimum. Streaming and the OpenAI-compatible request format are supported.

xAI logoxAIgrok-4.7UnavailabletextContext window: 500,000 tokens

No route to this model is enabled right now. Requests for it are refused with the error code model_unavailable before any balance is held, so nothing is charged. The listed prices apply once a route is enabled.

Input

$2.00

$ / 1M tokens

Output

$6.00

$ / 1M tokens

Cached input

$0.50

$ / 1M tokens

Context window

500,000

tokens

Requires opting in to data retention.

Prompts above 199,999 tokens bill the whole request at $4.00/M input and $12.00/M output, $1.00/M cached input.

Model ID
grok-4.7
Modality
text
Unit
USD per 1M tokens
Status
Unavailable
Endpoints
/v1/chat/completions
Context window
500,000 tokens
Max output
128,000 tokens
Pricing basis
Routed to the cheapest source. At or below list.

Sources

Source information is unavailable for this model.

Make your first request

Use any OpenAI-compatible SDK. Change the base URL, keep everything else. Responses include a receipt with the exact cost.

No account: send the same request to /x402/v1/chat/completions without credentials and the gateway answers 402 with the quote. Pay per request.

This model has no enabled route right now, so the request below is refused with model_unavailable until a route is enabled. Nothing is charged for a refused request.

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