grok-4.7 API pricing and access

grok-4.7 (xAI, overseas model) API pricing on VisionCoder: input ¥1.00 / output ¥3.00 (CNY per million tokens), context 500K, API types: Responses, OpenAI-compatible. Output price is tied for 2nd lowest among overseas text models here.

Home / Models / grok-4.7

Vendor: xAI; region: overseas; context: 500K

Itemized pricing

The current price has applied since 2026-10-15.

Input, output, cache reads and cache writes are priced separately, and failed requests are free. Unit: yuan (CNY) per million tokens.

ItemStandard (up to 200K input)Long context (over 200K input)
Input¥1.00¥4.00
Output¥3.00¥12.00
Cache hit¥0.25¥1.00

Region and access

Region: overseas

Access: Requires the overseas model mode

Example request

Use this model name in the request. Find your gateway address on the API keys page after signing in.

Responses

curl https://<gateway-host>/v1/responses \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-4.7","input":"Hello"}'

Cost estimate

Typical calls priced at this page's current rates. An estimate, not a bill; the billing rules page governs.

This model is tiered by input length: up to 200K input bills at the standard tier, more bills the whole call at the long-context tier.

One chat turn

8,000 input + 1,000 output tokens: ¥0.011

8,000 × 1.00 ÷ 1M; + 1,000 × 3.00 ÷ 1M; = 0.011

Long document

200,000 input + 4,000 output tokens: ¥0.212

200,000 × 1.00 ÷ 1M; + 4,000 × 3.00 ÷ 1M; = 0.212

80% cache hits

1,000,000 input tokens, 80% served from cache (long-context tier): ¥1.60

200,000 × 4.00 ÷ 1M; + 800,000 × 1.00 ÷ 1M; = 1.60; 60% less than no cache (¥4.00)

Where it sits

Among public models in the same region and billing type (22 overseas text models).

Compare similar models

Public models in the same region and billing type, sorted by price: two on each side of this one.

ModelInput (CNY / 1M tokens)Output (CNY / 1M tokens)ContextOutput vs. this page
claude-haiku-5-5¥0.60¥3.001.25M1.00×
grok-4.6¥1.00¥3.00500K1.00×
grok-4.7 (this page)¥1.00¥3.00500K–
gpt-6-sol¥1.10¥5.501.05M1.83×
gpt-6.1-sol¥1.10¥5.501.05M1.83×

FAQ

How much does the grok-4.7 API cost?

input ¥1.00, output ¥3.00, cache reads ¥0.25 (CNY per million tokens), effective 2026-10-15. Failed requests with no output are free.

Which protocols are supported, and in which tools can I use it?

Supports Responses. Works with Codex CLI. Claude Code, Cline, Continue, OpenAI SDK use a protocol this model does not declare, so it is not in their guide tables.

How long is the context window?

500K tokens, tied for 21st longest among overseas text models here.

How do I get access?

Requires the overseas model mode; sign in and create a key on the API keys page to call it.

Setup guides

grok-4.7 can be called through these tools:

More from this vendor

ModelInput (CNY / 1M tokens)Output (CNY / 1M tokens)
grok-4.6¥1.00¥3.00

Billing and failover

See billing rules for how usage is billed: requests that produce no output are not charged. See routing and failover for how upstream errors are retried and switched.

Claude, GPT, Gemini and similar names and trademarks belong to their respective owners. VisionCoder is not affiliated with them and uses the names only to describe callable models.

中文