The Blog

xAI offers Grok models via its API for text generation, reasoning, coding, tool use, document-centric workflows, and agentic research. The current docs focus primarily on Grok 4.20 as the new flagship, as well as on server-side tools such as Web Search, X Search, Code Execution, and Collections Search.

Additionally, xAI documents classic model-listing endpoints such as /v1/models and /v1/language-models.
xAI API – Grok

LLM “Build with Grok, the AI model designed to deliver truthful, insightful answers.”

(0)

Your rating

Click the stars to start your rating.

Origin: USA X.AI LLC, 1450 Page Mill Road, Palo Alto, CA 94304, USA

Agents Batch Image Chat Credits Real-time Grok API Reasoning Structured Data Tool Calling Video Voice Web search X search ZDR
Other Token-based API usage Billing based on input, reasoning, completion, image, and cached prompt tokens per model.

Server-side Tools Additional billing for tool invocations; costs may increase with the complexity of agentic requests.

Credits / API Key API usage takes place via an xAI account, API key, and purchased credits.

Enterprise / ZDR Enterprise customers can use Zero Data Retention so that API requests and responses are not stored.

Voice / Imagine / Batch / Tools Additional product areas for real-time conversations, TTS/STT, image/video generation, batch processing, web search, and structured outputs.

Target audience
The xAI Grok API is aimed primarily at developers, technical teams, start-ups, agencies, and companies that want to build their own LLM-powered applications. It is especially interesting for teams that want to combine research, coding, agent workflows, and tool orchestration, because xAI strongly emphasizes exactly these patterns in the docs. For pure end users without a build context, the API is far less obvious than Grok Web/App.

Outstanding features
The most striking differentiators are the server-side research and agent tools. xAI documents Web Search, X Search, Code Execution, and Collections Search as integrated tools for Grok. In addition, there is Grok 4.20 with a large context window, automatic reasoning, and strict prompt adherence, as well as Grok 4.20 Multi-agent for multi-agent research. For Enterprise, DPA, subprocessor transparency, retention rules, billing/usage controls, and Provisioned Throughput are also relevant.

Target audienceAssessment
Developers / product teamsVery suitable – for Grok-based chat, reasoning, tool, web/X search, voice, image, and video applications.
SaaS providers / startupsSuitable – if current information, Grok models, and multimodal API functions are relevant.
Creator and social-adjacent productsSuitable to very suitable – especially for applications with real-time/X relevance, content, research, and conversation.
SMEs with technical implementationSuitable – for assistants, search, support, research, automation, and multimodal AI functions.
Enterprise / compliance teamsConditionally to well suited – xAI offers a DPA, a no-training statement for API data, and ZDR for Enterprise, but EU data residency is not publicly documented as a standard.

Calculate tokens and costs with the KIFOX Tokenizer

Hosting & Data

✅ = well covered ⚠️ = partial / indirect ❓ = not available / unclear
?

1) On-prem / local hosting
Meaning: The company operates the solution on its own hardware or within its own infrastructure. In the strictest sense, not only the application runs locally, but ideally the model as well.

2) Private cloud / data center
Meaning: The solution runs in a dedicated or more clearly separated cloud environment, often with a hosting provider or hyperscaler, but in a German data center or in a particularly controlled environment.

3) EU SaaS / managed
Meaning: The provider operates the solution itself as a service. The company uses the tool as a ready-made cloud service, ideally with EU data residency.

4) Hybrid
Meaning: One part of the processing remains internal / local / in a private cloud, while another part runs in an external cloud or EU SaaS.

5) AVV / DPA
Meaning: This is the data processing agreement or Data Processing Addendum. It governs that the provider processes personal data on behalf of the customer and is bound by the customer's instructions.

6) No training
Meaning: The provider does not use your prompts, uploads, attachments, chat histories, or outputs for training or improving the general model — ideally excluded by contract.

7) Open-source / transparency path
Meaning: There is a path toward greater technical transparency and sovereignty, for example through:
- open models
- documented components
- self-hostable parts
- traceable architecture
- export / switching options

✅ = well covered ⚠️ = partial / indirect ❓ = not available / unclear
On-prem / local hosting ⚠️
Private cloud / data center
EU SaaS / Managed
Hybrid ⚠️
DPA / AVV
No training on customer data
Open source / transparency path ⚠️

Overall assessment of hosting & data:
The xAI API is a managed cloud API service for Grok models with text, reasoning, function calling, web search, X search, structured output, batch API, files/collections, voice, image, and video. On-premises hosting of the Grok models is not publicly documented as a standard option. Positives include API access, OpenAI-compatible usage, server-side tools, multimodal APIs, 30-day standard deletion of API requests/responses, no training without permission, and Enterprise ZDR. Critical issues remain the standard 30-day retention without ZDR, international data transfers, the lack of publicly documented EU-only data residency, and possible additional costs/complexity due to autonomous tool calls.

Conclusion:
xAI/Grok is strong for developers who want to build current, tool-capable, multimodal, and social-/web-adjacent AI applications; for EU-regulated data, Enterprise ZDR, DPA, subprocessor review, and data classification should be clarified before productive use.

xAI Data Processing Addendum

On-prem / local hosting ⚠️
Private cloud / data center
EU SaaS / Managed
Hybrid ⚠️
DPA / AVV
No training on customer data
Open source / transparency path ⚠️

Overall assessment of hosting & data:
The xAI API is a managed cloud API service for Grok models with text, reasoning, function calling, web search, X search, structured output, batch API, files/collections, voice, image, and video. On-premises hosting of the Grok models is not publicly documented as a standard option. Positives include API access, OpenAI-compatible usage, server-side tools, multimodal APIs, 30-day standard deletion of API requests/responses, no training without permission, and Enterprise ZDR. Critical issues remain the standard 30-day retention without ZDR, international data transfers, the lack of publicly documented EU-only data residency, and possible additional costs/complexity due to autonomous tool calls.

Conclusion:
xAI/Grok is strong for developers who want to build current, tool-capable, multimodal, and social-/web-adjacent AI applications; for EU-regulated data, Enterprise ZDR, DPA, subprocessor review, and data classification should be clarified before productive use.

xAI Data Processing Addendum

Strengths & Weaknesses at a Glance

Strengths Weaknesses
- Very strong in real-time research because Grok integrates web search and X search as official tools. - The documentation is currently inconsistent between new model names like grok-4.20-reasoning and older/dated IDs like grok-4-0709; as a result, the model landscape is less clear than with some competitors.
- Well positioned for coding, agentic tool workflows, and document-based analysis. - Exact token prices for some new models are referenced on the official pricing page, but in the officially parseable sources here they are not cleanly extractable for every model.
- xAI explicitly positions Grok 4.20 as a fast, precise model with strict prompt adherence. - xAI itself points out that outputs may hallucinate or be inaccurate and must be reviewed by the customer.
- For enterprise/API data, there is a DPA, a subprocessor list, and according to the Enterprise Terms, a 30-day deletion of User Content unless an exception applies. - For enterprise customers, operating competing services with the xAI API is prohibited according to the Terms.

Last data update: 17. April 2026

Reviews

0 reviews in total

(0)
5★ 0.0%
4★ 0.0%
3★ 0.0%
2★ 0.0%
1★ 0.0%

There are no confirmed reviews for this tool yet.