🏷️ xAI 官方模型专区/v1/responses🟢 4 款在线可用
⏳ 7 款近期上线共收录 11 款模型
xAI 全系大模型 API 接口价格与接入专区
Grok 4 / Grok Code 极速代码生成与大规模长文本推理
接入 xAI Grok-4、Grok-Code-Fast 等前沿模型,兼顾超高吞吐速度与复杂工程代码编写能力。
📋 xAI 旗下全系模型与实时费率表 (11 款)
点击任意模型 ID 进入单模型详情页查看完整参数规格、粘性缓存省钱测算与调用代码。
| 模型名称(点击进入详情页) | Status | 原生协议 / 上下文 / 最大输出 | Input / 1M | Output / 1M | Cache-Hit / 1M | Aktionen |
|---|---|---|---|---|---|---|
grok-4.5
实时多活直连主力 | 🟢 Online | /v1/chat/completions上下文 200K / 输出 64K | $2.00 | $6.00 | $0.30 | Specs & Code Live testen → |
grok-4.6
实时多活直连主力 | 🟢 Online | /v1/chat/completions上下文 200K / 输出 64K | $2.00 | $6.00 | $0.50 | Specs & Code Live testen → |
grok-4.7
实时多活直连主力 | 🟢 Online | /v1/chat/completions上下文 200K / 输出 64K | $2.00 | $6.00 | $0.50 | Specs & Code Live testen → |
grok-imagine-video
实时多活直连主力 | 🟢 Online | /v1/chat/completions上下文 200K / 输出 64K | $0.00 | $0.00 | $0.00 | Specs & Code Live testen → |
grok-2-vision-1212
多模态图文理解与文档解析 | ⏳ Demnächst | /v1/chat/completions上下文 32K / 输出 8K | $2.00 | $10.00 | $0.20 | Specs & Code Alternative testen → |
grok-3
Colossus 超算集群训练旗舰 | ⏳ Demnächst | /v1/chat/completions上下文 131K / 输出 32K | $3.00 | $15.00 | $0.30 | Specs & Code Alternative testen → |
grok-3-fast
低延迟高吞吐极速通道 | ⏳ Demnächst | /v1/chat/completions上下文 131K / 输出 32K | $5.00 | $25.00 | $0.50 | Specs & Code Alternative testen → |
grok-3-mini
轻量高速逻辑与数理思考 | ⏳ Demnächst | /v1/chat/completions上下文 131K / 输出 32K | $0.30 | $0.50 | $0.030 | Specs & Code Alternative testen → |
grok-4
xAI 四代多步推理与实时洞察旗舰 | ⏳ Demnächst | /v1/chat/completions上下文 256K / 输出 64K | $3.00 | $15.00 | $0.30 | Specs & Code Alternative testen → |
grok-4-heavy
多智能体并行协同重度推理 | ⏳ Demnächst | /v1/chat/completions上下文 256K / 输出 64K | $15.00 | $75.00 | $1.50 | Specs & Code Alternative testen → |
grok-code-fast-1
专为 Agentic Coding 打造的极速模型 | ⏳ Demnächst | /v1/chat/completions上下文 256K / 输出 64K | $0.20 | $1.50 | $0.020 | Specs & Code Alternative testen → |
⚡ 30 秒快速调用 xAI 系列模型
无论是原生协议 /v1/responses 还是通用 OpenAI SDK 兼容端点 /v1/chat/completions,只需切换 model 参数即可调用 xAI 全系模型。
🐍 Python SDK 调用 xAI (grok-4.5)
from openai import OpenAI
client=OpenAI(
base_url="https://suptoken.ai/v1",
api_key="sk-your-api-key",
)
resp=client.chat.completions.create(
model="grok-4.5",
messages=[
{"role":"user","content":"你好,请使用 xAI 模型回答"}
],
stream=True,
)
for chunk in resp:
print(chunk.choices[0].delta.content or "",end="")
💻 cURL 原生协议请求 (/v1/responses)
curl https://suptoken.ai/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model":"grok-4.5",
"stream":true,
"messages":[{"role":"user","content":"Hello xAI!"}]
}'🏷️ 切换浏览其他大模型品牌专区查看全站模型总表 →
Anthropic (21)
OpenAI (40)
Google (11)
DeepSeek (10)
xAI (11)
Alibaba (12)
Zhipu (4)
Moonshot (3)
ByteDance (4)
Meta (4)
Mistral (2)
MiniMax (3)
BlackForest (3)
Cohere (2)
BAAI (1)
Tencent (1)
Ideogram (1)
Kuaishou (1)
Luma (1)
Midjourney (1)
Recraft (1)
Runway (1)
Perplexity (1)
Stability (1)
StepFun (1)
Starten Sie jetzt mit führenden KI-Modellen ohne Qualitätsverlust
In 30 Sekunden registrieren,sk-... API-Key erstellen und nahtlos in Claude Code,Codex CLI und Produktionssysteme einbinden.