星海词元星海词元
Ready to build?Get an API key — all models at 50% of the official price →
Home › Models › grok-4.7

grok-4.7 API

Call grok-4.7 through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.

xAIChatReasoningCodingVision工具调用Long context
46.4
Intelligence index

Pricing

Input$1.00 / 1M tokens  (¥6.50)
Output$3.00 / 1M tokens  (¥19.50)
Output multiplier×3.00
Context window500K tokens

Prices are per 1M tokens in USD · ¥6.5 = $1 · Billed in CNY

xAI

Grok models offer large context windows and a notably direct answer style, and are served through the same OpenAI-compatible endpoint.

When to use it

At $1.00 per 1M input tokens it sits above the catalogue median of $0.50 — a capability-first choice. Best for coding agents and repository-scale edits. Every model here is reachable with the same API key, so trialling it against a stronger sibling costs one line of code.

Code

from openai import OpenAI
client = OpenAI(
  base_url="https://starseaapi.com/v1",
  api_key="sk-your-key"
)
r = client.chat.completions.create(
  model="grok-4.7",
  messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)

Integrations · Quickstart

Other models from this provider

ModelsInput $/MOutput $/MIntelligence indexCoding index
grok-4.5$1.00$3.0038.872.4
grok-4.6$1.00$3.0044.376.8

Capabilities