Grok API access to xAI's Grok models on APIMart: Grok 4.7, xAI's model for coding and knowledge work, Grok 4.6 and Grok 4.5, the lower-cost Grok 4.3, and grok-build-0.1, all through one OpenAI-compatible 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% |
Call xAI's Grok models through one OpenAI-compatible API on APIMart. Grok 4.7 is xAI's model for coding and knowledge work, Grok 4.5 added adjustable reasoning effort, and Grok 4.3 and grok-build-0.1 cost less per token. Switch models by changing one model ID.
50K+
Active Users
99.9%
Uptime
2x
Faster
70%
Cost Savings
What each Grok model on APIMart is built for, based on xAI's announcements and documentation
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
Models, pricing and access for the Grok API on APIMart
The Grok API gives you programmatic access to xAI's Grok models. On APIMart you can call grok-4.7, grok-4.6, grok-4.5, grok-4.3 and grok-build-0.1 through one OpenAI-compatible chat completions endpoint and one API key.
Grok 4.7 is the model xAI released on September 21, 2026 for coding and knowledge work. xAI says it works longer on difficult tasks and checks its own work more carefully, and it is served at the same price and speed as Grok 4.6. Its model ID is grok-4.7.
xAI lists Grok 4.7 at $2.00 input, $0.50 cached input and $6.00 output per 1M tokens for prompts under 200K tokens. APIMart's list price is the same, and Gold members pay $1.60, $0.40 and $4.80 (October 2026); Platinum and Diamond members save up to 28%. Failed requests are not charged.
You pay for input and output tokens separately, at the per-1M-token rate of the model you call. On Grok 4.7 and Grok 4.6, cached input tokens are billed at the lower cached rate. The table above shows each model's live rates; context limits follow the pricing table.
Start with Grok 4.7 for coding, documents and other demanding work. Keep Grok 4.6 or Grok 4.5 if your prompts are tuned for them; Grok 4.5 also has a lower output price on APIMart. Use Grok 4.3 or grok-build-0.1 for high-volume tasks where cost matters most.
Both have the same xAI price and speed. xAI reports that Grok 4.7 scores higher than Grok 4.6 on its coding and knowledge-work benchmarks, so it is the default choice for new projects. Switching only requires changing the model ID from grok-4.6 to grok-4.7.
Yes. Set stream to true in your chat completions request to receive the response in chunks, which suits chat interfaces and agents, or leave it off to get the full response at once.
Yes. Point the OpenAI SDK at https://api.apimart.ai/v1, use your APIMart API key and set model to a Grok model ID such as grok-4.7. Requests use the standard chat completions format.
Yes. After you sign in and create an API key, pick a Grok model in the playground above and send test prompts; usage is billed at the same token rates as the API.
Sign up for APIMart, open the API Keys page in your dashboard and create a key. The same key works for every Grok model and every other model on the platform, with pay-as-you-go billing and no subscription.
No. There is no free quota for the Grok API on APIMart. Billing is pay-as-you-go: failed requests are not charged, and members get 20% or more off every price.
No. Under APIMart's Terms of Service, your data is not used to train AI models or shared with third parties except as needed to provide the service. Requests are processed only to serve your API calls.
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.