The Grok API gives you xAI's Grok model family — Grok 4.7, 4.6, 4.5 and 4.3 plus reasoning, coding, and agent-oriented variants — through a unified API.
Guides, comparisons and pricing analysis from the APIMart blog.
What's on your mind?
Ask APIMart
grok-4.7
Transparent pricing with no hidden fees. Pay only for what you use.
Per 1M tokens
Up to 199,999 input tokens
| Rate | GoldCurrent price | Platinum | Diamond | Official | Your savings |
|---|---|---|---|---|---|
| Input | 16~$1.6 | 15.2~$1.52 | 14.4~$1.44 | 20~$2 | 20% |
| Cached input | 4~$0.4 | 3.8~$0.38 | 3.6~$0.36 | 5~$0.5 | 20% |
| Output | 48~$4.8 | 45.6~$4.56 | 43.2~$4.32 | 60~$6 | 20% |
Over 199,999 input tokens
| Rate | GoldCurrent price | Platinum | Diamond | Official | Your savings |
|---|---|---|---|---|---|
| Input | 32~$3.2 | 30.4~$3.04 | 28.8~$2.88 | 40~$4 | 20% |
| Cached input | 8~$0.8 | 7.6~$0.76 | 7.2~$0.72 | 10~$1 | 20% |
| Output | 96~$9.6 | 91.2~$9.12 | 86.4~$8.64 | 120~$12 | 20% |
Explore the Grok models currently available on APIMart. Switch between variants, compare live pricing, and test responses in the browser before integrating.
50K+
Active Users
99.9%
Uptime
2x
Faster
70%
Cost Savings
A practical way to evaluate and integrate xAI's Grok model family
Common ways developers use Grok models in applications
Test and integrate a Grok model in a few steps
Sign up for APIMart and add funds to your account.
Generate an API key from your dashboard to authenticate requests.
Test a model above, then send it through the OpenAI-compatible chat completions endpoint.
Reasons teams evaluate Grok through APIMart
“We can compare Grok variants in one place and move the selected model into our existing chat integration.”
Product Engineering Team
AI Platform
“The live token pricing makes it easier to estimate cost before we run a larger evaluation.”
Infrastructure Team
Platform Operations
“Streaming responses and the familiar request format helped us prototype an assistant quickly.”
Application Team
Software Engineering
“The playground gives our team a fast way to test prompts before adding them to production workflows.”
AI Engineering Team
Model Evaluation
“Using one API format across model providers keeps our integration simpler and easier to maintain.”
Backend Team
API Infrastructure
“Model switching makes it straightforward to compare response quality for reasoning and coding tasks.”
Developer Experience Team
Technical Enablement
What to know before integrating the Grok API
Available models include Grok 4.7, Grok 4.6, Grok 4.5 and Grok 4.3, plus other reasoning and agent-oriented variants. The model selector and pricing table above are loaded from APIMart's live model catalog, so they show the Grok variants currently available.
Yes. Grok models use the standard chat completions request format, making them straightforward to call with OpenAI-compatible SDKs.
Usage is priced by input and output tokens. Refer to the live pricing table above for current rates for each available model.
Yes. You can stream response chunks for interactive applications or request a complete response.
Start with a general model for chat and content tasks, then evaluate reasoning or agent-oriented variants for more complex workflows.
Yes. Select a model and use the playground above after signing in and creating an API key.
The xAI Grok API is billed per million input and output tokens. The pricing table on this page lists every available model, and the prices shown are Gold member rates (20% off). Platinum and Diamond members save even more, up to 28%, and you only pay for successful requests.
Sign up for APIMart, open the API Keys page in your dashboard, and create a key. The same key works for the xAI Grok API and every other model on the platform, with pay-as-you-go billing and no subscription.
Create an APIMart API key, choose a Grok model from this page (for the Grok 4.7 API, set model to grok-4.7), and send requests to the OpenAI-compatible Chat Completions endpoint with the OpenAI SDK or any HTTP client; streaming is supported. Parameters and code examples for the xAI Grok API are in the APIMart docs (docs.apimart.ai).
There is no free tier. The Grok API is pay-as-you-go: you only pay for successful requests, and every price is 20% off.
Explore more models in the same category.
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.