ToolKiti
Home/大语言模型/xAI Grok API

xAI Grok API

xAI Grok 接口

Access Grok-2 and Grok-3 models from xAI. Real-time knowledge, long context, and image understanding capabilities.

调用 xAI 的 Grok-2 和 Grok-3 模型。实时知识、长上下文和图像理解能力。

Documentation

Pricing

pay-as-you-go (per token)

Authentication

  • API Key (Bearer Token)

Popularity

70/100

Endpoints

https://api.x.ai/v1/chat/completions

SDKs

PythonNode.jscurl

Tags

llmchatreal-timevision

Last updated: 2026-08-02

Compare xAI Grok API with other APIs

Similar APIs

Something wrong or missing? Open an issue on GitHub →

Pricing Comparison

APIPricingAuthPopularity
OpenAI APIpay-as-you-go (per token)API Key (Bearer Token)
100
Anthropic Claude APIpay-as-you-go (per token)API Key (x-api-key header)
87
Google Gemini APIfree tier available, pay-as-you-goAPI Key
85
DeepSeek APIpay-as-you-go (per token, very low cost)API Key
83

Get Started with xAI Grok API

Click below to visit the official website and start using this API.

Visit xAI Grok API

Discussion

Questions, feedback, or suggestions? Start a discussion.

Discuss on GitHub