Grok API 通过统一接口提供 xAI 的 Grok 模型家族——Grok 4.7、4.6、4.5、4.3 以及推理、编程和智能体相关变体。
您在想什么?
询问 APIMart
grok-4.7
透明定价,无隐藏费用。按量付费,用多少付多少。
每 100 万 token
输入不超过 199,999 token
| 计费项 | 黄金价当前价格 | 铂金价 | 钻石价 | 官方价 | 为你节省 |
|---|---|---|---|---|---|
| 输入 | 16~$1.6 | 15.2~$1.52 | 14.4~$1.44 | 20~$2 | 20% |
| 缓存输入 | 4~$0.4 | 3.8~$0.38 | 3.6~$0.36 | 5~$0.5 | 20% |
| 输出 | 48~$4.8 | 45.6~$4.56 | 43.2~$4.32 | 60~$6 | 20% |
输入超过 199,999 token
| 计费项 | 黄金价当前价格 | 铂金价 | 钻石价 | 官方价 | 为你节省 |
|---|---|---|---|---|---|
| 输入 | 32~$3.2 | 30.4~$3.04 | 28.8~$2.88 | 40~$4 | 20% |
| 缓存输入 | 8~$0.8 | 7.6~$0.76 | 7.2~$0.72 | 10~$1 | 20% |
| 输出 | 96~$9.6 | 91.2~$9.12 | 86.4~$8.64 | 120~$12 | 20% |
50K+
活跃用户
99.9%
在线率
2x
更快
70%
成本节省
高效评估并集成 xAI Grok 模型家族
开发者在应用中使用 Grok 模型的常见方式
只需几步即可测试并集成 Grok 模型
注册 APIMart 并为账户充值。
在控制台生成用于请求认证的 API Key。
先在上方测试模型,再通过兼容 OpenAI 的 Chat Completions 接口调用。
团队通过 APIMart 评估 Grok 的理由
“我们可以在一个页面对比 Grok 型号,并将选定模型接入现有聊天系统。”
产品工程团队
AI 平台
“实时 Token 价格让我们能在大规模评估前更方便地估算成本。”
基础设施团队
平台运维
“流式响应和熟悉的请求格式帮助我们快速完成了助手原型。”
应用团队
软件工程
“在线体验工具让团队可以在提示词进入生产流程前快速完成测试。”
AI 工程团队
模型评估
“不同模型供应商使用统一 API 格式,让我们的集成更简单、更易维护。”
后端团队
API 基础设施
“模型切换功能让推理与编程任务的回复质量对比变得非常直观。”
开发者体验团队
技术赋能
接入 Grok API 前需要了解的内容
可用型号包括 Grok 4.7、Grok 4.6、Grok 4.5 和 Grok 4.3,以及其他推理与智能体相关变体。上方的模型选择器和价格表来自 APIMart 实时模型目录,会展示当前可用的 Grok 型号。
兼容。Grok 模型使用标准 Chat Completions 请求格式,可通过兼容 OpenAI 的 SDK 轻松调用。
按输入和输出 Token 计费。每个可用模型的当前费率请以上方实时价格表为准。
支持。交互式应用可以流式接收回复,也可以请求一次性返回完整结果。
对话和内容任务可从通用模型开始,复杂工作流则可进一步评估推理型或智能体型模型。
可以。登录并创建 API Key 后,即可选择模型并使用上方在线体验工具。
xAI Grok API 按每百万输入、输出 Token 计费。本页价格表列出了全部模型,展示的是黄金会员价(8 折,立省 20%),铂金、钻石会员更优惠,最高可省 28%,且只为成功的请求付费。
注册 APIMart 账号后,在控制台的 API Keys 页面创建密钥即可。同一个 Key 可以调用 xAI Grok API 以及平台上的全部模型,按量付费,无需订阅。
在 APIMart 创建 API Key,在本页选择 Grok 模型(调用 Grok 4.7 API 时将 model 设为 grok-4.7),然后用 OpenAI SDK 或任意 HTTP 客户端向兼容 OpenAI 的 Chat Completions 接口发送请求,支持流式输出。xAI Grok API 的参数与代码示例见 APIMart 文档(docs.apimart.ai)。
Grok API 没有免费额度,采用按量付费,只为成功的请求付费,且所有价格均享 8 折优惠。
探索同类型的其他模型。
Gemini 4 Argon
Gemini-4-Argon is an AI assistant that brings together analytical thinking and creative expression. From untangling complex problems to refining writing and code, it offers clear reasoning, natural conversation, and practical suggestions to help turn rough ideas into actionable next steps.
Claude Haiku 5.5
Claude Haiku 5.5 API on APIMart delivers fast, cost-efficient AI, offering responsive conversations, capable coding assistance, and reliable performance for high-volume workflows.
Claude Opus 5
Claude Opus 5 is Anthropic’s next-generation flagship large language model, featuring enhanced capabilities in code development, complex reasoning, knowledge analysis, and agent execution, making it ideal for large-scale project development and professional work scenarios.
Kimi K3
Kimi-K3 is a next-generation large language model launched by Moonshot AI. It features ultra-long context, multimodal understanding, and strong coding capabilities, making it suitable for complex reasoning, software development, knowledge analysis, and agent automation tasks.