这是用户在 2025-3-13 10:39 为 https://x.ai/api 保存的双语快照页面,由 沉浸式翻译 提供双语支持。了解如何保存?
[ Elevate your apps  提升您的应用 ]
The Next Frontier in AI Integration
AI 集成的下一个前沿领域
[ Capabilities  能力 ]

Models that fit your needs
适合您需求的型号

Text  发短信

The cornerstone of interaction; summarize articles, generate creative writing, assist with coding tasks and more.
互动的基石;总结文章、生成创意写作、协助编码任务等等。

Vision  视觉

See the world through vision, interpreting images and visuals with sharp, insightful understanding.
通过视觉看世界,以敏锐、有洞察力的理解解读图像和视觉效果。

Tool calling  工具调用

Harness external power with tool calling, seamlessly integrating third-party functions.
通过工具调用利用外部力量,无缝集成第三方功能。

Structured outputs  结构化输出

Organize chaos with structured outputs, delivering clean, predictable responses.
使用结构化输出组织混乱,提供干净、可预测的响应。

Image generation  图像生成

Bring your ideas to life with image generation, creating visuals that are as unique as you are.
通过图像生成将您的想法变为现实,创建与您一样独特的视觉效果。

Coming soon  即将推出

Search  搜索

Tap into the now with realtime search, pulling fresh, relevant data from the web and X instantly.
通过实时搜索进入现在,立即从 Web 和 X 中提取最新的相关数据。

Coming soon  即将推出
[ Minutes to launch  启动分钟数 ]

Quickstart  快速入门

Our API is compatible with OpenAI and Anthropic’s SDKs. Migrating is as easy as generating an API key and changing a URL.
我们的 API 与 OpenAI 和 Anthropic 的 SDK 兼容。迁移就像生成 API 密钥和更改 URL 一样简单。

Start building  开始构建
Installing Grok...  正在安装 Grok...
[ Pricing  定价 ]

For developers of all kinds
适用于各种开发人员

grok-2-1212

Grok 2 model supporting function calling and structured outputs.

Context
131,072
Text Input
$2.00
Image Input
-
Completion
$10.00
grok-2-vision-1212

Grok 2 image understanding model capable of processing documents, diagrams, and more.

Context
32,768
Text Input
$2.00
Image Input
$2.00
Completion
$10.00

All pricing is per million tokens.
所有定价均以每百万个代币为单位。

Full pricing can be found within the console.
可以在控制台中找到完整定价。

Grok 3 coming soon  Grok 3 即将推出

We're working hard to bring Grok 3 to the API. We'll be rolling out access soon.
我们正在努力将 Grok 3 引入 API。我们很快就会推出访问权限。

Pricing calculator  定价计算器

0
10M+  10百万+
0
10M+  10百万+
Cost  成本

Latest news  最新消息

Grok 3  格罗克 3

Grok 3 Beta — The Age of Reasoning Agents
Grok 3 Beta — 推理代理时代

We are thrilled to unveil an early preview of Grok 3, our most advanced model yet, blending superior reasoning with extensive pretraining knowledge.
我们很高兴推出 Grok 3 的早期预览版,这是我们迄今为止最先进的模型,将卓越的推理与广泛的预训练知识相结合。

February 19, 2025  2月 19, 2025

Series C  C 系列

xAI raises $6B Series C
xAI 筹集 $6B C 轮融资

We are partnering with A16Z, Blackrock, Fidelity Management & Research Company, Kingdom Holdings, Lightspeed, MGX, Morgan Stanley, OIA, QIA, Sequoia Capital, Valor Equity Partners and Vy Capital, amongst others.
我们正在与A16Z、Blackrock、Fidelity Management & Research Company、Kingdom Holdings、Lightspeed、MGX、Morgan Stanley、OIA、QIA、Sequoia Capital、Valor Equity Partners和Vy Capital等合作。

December 23, 2024  12月 23, 2024

Grok for all  适合所有人的 Grok

Bringing Grok to Everyone
将 Grok 带给每个人

Grok is now faster, sharper, and has improved multilingual support. It is available to everyone on the 𝕏 platform.
Grok 现在更快、更清晰,并改进了多语言支持。X 平台上的每个人都可以使用它。

December 12, 2024  12月 12, 2024