XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
Model catalogueGrok 4.7

Grok 4.7

NEW

Model ID

Put this value in the request body's `model` field — not the display name above.

Text generationReasoningImage understandingToolsJSON500kClosed source

by xAI · xAI Grok 4.7 latest flagship, 500K context, reasoning + image and video understanding, can generate video directly in the playground.

Try it now

Quick start

EndpointPOST /v1/chat/completions
AuthenticationAuthorization: Bearer sk-gpushare-…Get API key
Call styleSynchronous: one request returns the result
Base URLhttps://usapi.dflop.top/v1
cURL
curl https://usapi.dflop.top/v1/chat/completions \
  -H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.7",
    "messages": [
      {"role": "user", "content": "你可以帮我做什么"}
    ]
  }'

Pricing

Billed per token: input and output are priced separately and settled on the upstream's reported usage.

Rates
Input 0.8088Credits/K·Output 2.4264Credits/K
  • Input tokens that hit the prompt cache are billed at 202.2 Credits / 1M — cheaper than full-price input.
  • When a turn's prompt exceeds 200,000 tokens, input, cache-hit and output all switch to the long-context rates (input 1,617.6 Credits / 1M). That is the upstream's whole-turn surcharge for very long requests, passed straight through.
  • With web search or tools enabled, each server-side tool call costs 2.022 Credits on top of tokens, independent of token count. Turns that use no tools incur no such charge.
  • Failed requests (upstream 4xx / 5xx) are not billed.
  • All your API keys share one balance; when it runs out the API returns HTTP 402 `quota_exceeded`.

Sign in and any personal discount on your account will show up here. Sign in

Capabilities & specs

Category
Text generation
Context window
500k tokens
Default max output
131k tokens
Endpoint family
Chat Completions
Protocols
OpenAI Chat · OpenAI Responses
Released
2026-09-21
License
Closed source

Try it

Pick a key under "API access" and fire one real request to see the response — the estimated cost is shown before you send.

Try it in chat

Common errors

404 model_not_found

You passed the display name instead of the model ID.✗ Grok 4.7→✓ grok-4.7

→ Copy the Model ID at the top of this page

402 quota_exceeded

Insufficient account balance. All your API keys share one balance.

→ Add funds in your account

401 / 403

The API key is invalid, or it has a model allowlist that doesn't include this ID.

→ Check the key's status and allowed models

400 invalid_request

A request body field is invalid, or this model doesn't support the protocol endpoint you called.

→ Check your request body against the sample code above

More models from this vendor

Grok 4.5grok-4.5Grok 4.6grok-4.6Grok Imagine (Image)grok-imagine-imageGrok Imagine (Image · Quality)grok-imagine-image-qualityGrok Imagine Videogrok-imagine-videoGrok Imagine Video 1.5grok-imagine-video-1.5-preview
Try it

关于 Grok 4.7 的常见问题

怎么调用 Grok 4.7?
请求体的 model 字段填 grok-4.7,打到 https://usapi.dflop.top/v1/chat/completions,把 sk-gpushare- 开头的密钥放进 Authorization: Bearer 请求头。OpenAI、Anthropic、Google Gemini 三套官方 SDK 都能直接调用,只需把 base_url 指向本网关。
Grok 4.7 的 API 价格是多少?
  • ·输入:每 100 万 token 808.8 积分(≈ ¥13.48 / ≈ $2)
  • ·输出:每 100 万 token 2,426 积分(≈ ¥40.44 / ≈ $6)
  • ·缓存命中的输入:每 100 万 token 202.2 积分(≈ ¥3.37 / ≈ $0.5)
  • ·长上下文档(prompt ≥ 200,000 token):输入 1,618 积分(≈ ¥26.96 / ≈ $4),输出 4,853 积分(≈ ¥80.88 / ≈ $12)
  • ·每次服务端工具调用(联网搜索等):2.02 积分(≈ ¥0.034 / ≈ $0.005)
  • ·平台以积分计价,60 积分 = ¥1;每次调用先按上限预扣,返回后按实际用量结算,差额自动退回。
Grok 4.7 的上下文窗口有多大?
500,000 token,单次请求默认输出上限 131,072 token。
Grok 4.7 支持哪些能力?
图片输入、视频输入、工具调用、思考模式、联网搜索、JSON 模式。兼容协议:OpenAI Chat Completions、OpenAI Responses。

输入价格约合每 100 万 token $2。本页的 Markdown 版本:/models/grok-4.7.md