# xAI API – Grok

## Kurzbeschreibung
**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.

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

## Geeignet für
- API Integration
- Automation / Workflows
- Data Analysis
- Data Extraction / Document Analysis
- Customer Service & Chatbots
- Programming / Software Development
- Research
- Knowledge Management / Internal Search

## Kernfunktionen
- Image Generation
- Function Calling
- AI Agents
- LLM API
- Multimodal AI
- Programming
- Reasoning Model
- Language Model

## Preismodell
- **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.

## DSGVO und Datenschutz
**Gesamteinschätzung:** Conditional

**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](https://x.ai/legal/data-processing-addendum)

**GDPR assessment: **From a GDPR perspective, the xAI API is conditionally to well suited if it is used in an xAI Business/Enterprise context with a DPA and appropriate data controls. 


**Positive** is that xAI provides a Data Processing Addendum that addresses GDPR/UK GDPR/Swiss FADP, roles as Processor, SCCs, UK Addendum, subprocessors, and deletion after the end of the contract. xAI also states that it never uses API inputs and outputs for training without explicit permission; API requests and responses are stored by default for 30 days for abuse/misuse audits and then deleted. For Enterprise, there is Zero Data Retention, under which prompts, completions, and metadata are not persisted. 


**Negative **is that xAI allows international transfers outside Europe, including to the USA, and there is no publicly confirmed EU-only data residency as the standard for the API. 


**Server location: **No confirmed EU-only region as standard; the DPA mentions transfers/processing outside Europe, including the USA, insofar as necessary for service provision. Further link: xAI DPA, xAI API Security FAQ, and xAI Enterprise FAQ.


[xAI Data Processing Addendum](https://x.ai/legal/data-processing-addendum)

## Hosting und Daten
- **On-Prem / lokales Hosting:** teilweise / indirekt
- **Private Cloud / Rechenzentrum:** abgedeckt
- **EU SaaS / Managed:** abgedeckt
- **Hybrid:** teilweise / indirekt
- **AVV / DPA:** abgedeckt
- **Kein Training auf Kundendaten:** abgedeckt
- **Open-Source / Transparenz-Pfad:** teilweise / indirekt

## Standort
**Land:** USA

**Taxonomie:** USA

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

## Vorteile
- Very strong in real-time research because Grok integrates web search and X search as official tools.
- Well positioned for coding, agentic tool workflows, and document-based analysis.
- xAI explicitly positions Grok 4.20 as a fast, precise model with strict prompt adherence.
- 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.

## Nachteile
- 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.
- 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 itself points out that outputs may hallucinate or be inaccurate and must be reviewed by the customer.
- For enterprise customers, operating competing services with the xAI API is prohibited according to the Terms.

## Quellen
- Offizielle Website: https://docs.x.ai/developers/models

## Letzter Datenstand
2026-04-17

## Originalseite
https://kifox.ai/en/ki-tools/xai-api-grok-en/
