XAI MODEL GUIDE

Grok 4.7 API

Grok 4.7 is xAI's model for software engineering, tool-using agents, and analysis with text or images.

Core specificationsModel Plaza checked November 10, 2026
Model IDgrok-4.7
Context / max output500,000 / Not published
Input and outputText and image input; text output
Thinkinglow / medium / high / xhigh
Vendor statusActive
LLMFly AI input / output per 1M$0.8 / $2.4 (60% OFF)
Selection verdictGrok 4.7 bills at $0.8 input / $2.4 output per 1M tokens on LLMFly AI (0.4x standard tier).
Best fit

Compare it with Grok 4.6 on accepted patches, tool errors, and total tokens. The listed base rates are the same for both models.

Avoid when

Fixed budgets based on the short-context rate when prompts often reach 200,000 tokens.

01

Grok API cost estimate

Enter token counts for one representative request; every usage item is multiplied by the request count.

Grok0.4xCurrent multiplier

LLMFly AI tier<200KVendor reference tier<200K

Estimated LLMFly AI cost$0.104Grok 4.7 · 1 request
Vendor reference cost$0.26Estimated savings$0.15660.0%

Cost breakdown

Rates are per 1M tokens
Input$0.08
LLMFly AI
$0.8
Vendor reference
$2
Total tokens
100,000
Output$0.024
LLMFly AI
$2.4
Vendor reference
$6
Total tokens
10,000
Cache write—
LLMFly AI
—
Vendor reference
—
Total tokens
0
Cache read$0.00
LLMFly AI
$0.2
Vendor reference
$0.5
Total tokens
0
The estimate includes only listed model-token charges. Tools, retries, network, and other add-ons are excluded. Confirm the final bill against actual usage records.
02

Choosing and integrating

01

Grok 4.7 API pricing breakdown

Grok 4.7 (grok-4.7) is billed by token usage. Prices below are USD per 1M tokens. LLMFly AI rates already include the 0.4x group multiplier; do not apply it again. Provider reference prices are separate. These rates come from the site's Model Plaza snapshot; confirm live catalog and account rates before calling.

Example: a request with 10,000 uncached input tokens and 1,000 output tokens costs approximately $0.0104 in LLMFly AI token charges. This excludes cache writes, tools, retries, and other additional fees.

  • Platform and provider prices use their own input-token tiers. Do not apply provider long-context multipliers to platform prices.
  • Not listed does not mean free. Account for cache reads, cache writes, and uncached input in their respective billing categories.
  • Token cost = tokens in each billing category × its price per million ÷ 1,000,000. Add tools and other charges separately.
Price sourceInput tokens per requestInputOutputCache writeCache read1h cache write
LLMFly AI<200K$0.8$2.4Not listed$0.2Not listed
LLMFly AI≥200K$1.6$4.8Not listed$0.4Not listed
Provider reference<200K$2$6Not listed$0.5Not listed
Provider reference≥200K$4$12Not listed$1Not listed
02

Pricing tiers and additional charges

At 200,000 input tokens or more, the long-context tier applies to the whole request. Check the price after adding conversation history and tool results.

03

Grok 4.7 capabilities and workloads

  • xAI lists function calling and structured outputs. Use one real tool schema and verify that returned arguments pass your validator.
04

Limits to check before migration

  • Recheck reasoning effort, streaming events, and tool arguments when replacing Grok 4.6. Use the output limit documented for your endpoint.
05

Comparing Grok 4.7 with sibling models

Compare it with Grok 4.6 on accepted patches, tool errors, and total tokens. The listed base rates are the same for both models.

Model IDContext / max outputLLMFly AI in / outVendor reference in / out
grok-4.7500,000 / Not published$0.8 / $2.4$2 / $6
grok-4.6—$0.8 / $2.4$2 / $6
grok-4.5500,000 / Not publicly capped for text output$0.8 / $2.4$2 / $6
06

Use the exact model ID when connecting

Set LLMFLY_API_KEY to a key with access to this model, then send this text request.

  • Send a minimal text request and inspect the response and usage.
  • Test streaming, tool calls, and structured output separately if your application needs them.
  • Check retry behavior and spending limits before increasing traffic.
request.example
curl https://app.llmfly.ai/v1/chat/completions \
  -H "Authorization: Bearer $LLMFLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-4.7",
  "messages": [
    {
      "role": "user",
      "content": "Reply with OK."
    }
  ],
  "stream": false
}'
07

Vendor capability versus gateway access

Grok 4.7 runs under the Grok group (0.4x multiplier) in Model Plaza over the OpenAI-compatible https://app.llmfly.ai/v1/chat/completions endpoint. Validate provider-specific tools or grounding parameters on your route and reconcile billed tokens in your console usage log.

Frequently asked questions

What should I put in the model field?

Use the exact ID grok-4.7, not the display name.

How is the discount calculated?

The current 0.4x multiplier is applied to the base rate, giving 60% off the catalog's official reference. Amounts are shown per million tokens.

Do these prices include every possible fee?

Not necessarily. Check cache-write duration, tools, and other route charges separately. Use the full pricing table and actual usage records to reconcile a bill.

What are the context and output limits?

Vendor documentation lists 500,000 context and Not published maximum output; confirm gateway route limits separately.

Use the Grok 4.7 API

LLMFly AI provides this model. Use the exact ID grok-4.7 and confirm current account pricing in Model Plaza.

View model and rates