Grok & xAI
xAI's models: the API, Multi-Agent Research, the Voice Agent, video generation, X Search, MCP, and Collections.
30 courses · 408 lessons · Free
Get started
Getting started with Grok & xAI
Your first steps with Grok, xAI's AI. Create your account in 30 seconds, master the interface, and explore the whole ecosystem: chat, vision, voice, and the API.
16 lessons 1 h 45 min Beginner
Grok Models: Complete Guide
Learn everything about the Grok range: Grok 4.5, 4.3, 4.20 variants, and grok-build, including tiered pricing, contexts, performance, and selecting the right model.
14 lessons 1 h 30 min Beginner
Mastering Prompts with Grok
Advanced prompting techniques (roles, temperature, few-shot, chain-of-thought) with ready-to-use templates for 10× better results.
14 lessons 1 h Beginner
Real-Time Web & X Search
Access the freshest information from the web and X (Twitter) with automatic sourced citations. Ideal for monitoring and ultra-precise answers.
14 lessons 1 h Beginner
Grok Vision: Understanding Images
Analyze any image: detailed description, OCR, charts, tables, invoices using best practices for optimal results.
12 lessons 45 min Beginner
Generate and Edit Images with Grok
Create and edit professional images with grok-imagine: varied styles, multi-turn editing, and batch generation. Results in seconds.
14 lessons 45 min Beginner
Create Videos with Grok
Generate videos with audio—text-to-video, image-to-video, editing, extension—using Grok Imagine Video 1.5 and grok-imagine-video. Asynchronous workflow for content ready to post.
12 lessons 1 h 15 min Intermediate
Grok Voice & Audio
Real-time voice conversations and natural text-to-speech (28 voices, 20 languages). Includes expressive tags and phone integration.
14 lessons 1 h 45 min Intermediate
Professionals
Grok for Large Enterprises
Covers xAI Enterprise plans, provisioned throughput, 99.9% SLA, governance, France/Europe data residency, and concrete use cases.
14 lessons 1 h 45 min Intermediate
Grok for SMBs & Freelancers
Automate your daily tasks: writing, analysis, X monitoring, and calculating true ROI (time and money saved).
14 lessons 1 h 45 min Beginner
Grok for Marketing & Competitive Intelligence
Competitive intelligence on X/Twitter, mass content creation, and trend analysis in just a few clicks.
12 lessons 1 h Intermediate
Developers
Grok in 2026: From Grok 4.5 to 4.7, Grok Bot, and The X Subscription
Everything that changed with Grok in 2026: Grok 4.5, 4.6, and 4.7, Grok Build and Grok Bot, The X Subscription, Imagine Image 2.0, Grok Voice 3.0, and deprecations to account for in your code.
12 lessons 1 h 30 min Intermediate
Grok API quickstart
Set up your environment in 5 minutes and send your first request with Python, the OpenAI SDK, or cURL. A complete guide from beginner to expert.
14 lessons 1 h Developer
Responses API: Primary Endpoint
Master the xAI Responses API: persistent conversations, built-in tools, real-time streaming, and automatic citations.
16 lessons 1 h Developer
Chat Completions: OpenAI Compatibility
Migrate from OpenAI using the Chat Completions endpoint. Covers vision, roles, SDKs, and all differences with the Responses API.
12 lessons 45 min Developer
Function Calling with Grok
Build intelligent agents: JSON schemas, tool_choice, parallel calls, and tool combination. Complete examples included.
14 lessons 1 h Developer
Structured JSON Outputs
Always get valid JSON with automatic parsing, Pydantic, Zod, and function calling integration. Saves time on validation.
12 lessons 45 min Developer
Grok Reasoning Models
Leverage reasoning across the Grok range: configurable Grok 4.5, 4.20 reasoning variants, reasoning tokens, billing, and use cases.
12 lessons 1 h Developer
Integrated Tools: Web, X, Code
Use Grok's native tools (Web Search, X Search, Code Execution) server-side: activation, filtering, costs, and concrete use cases.
16 lessons 1 h 15 min Developer
Collections, RAG & Files
Build your own knowledge base with xAI Collections: upload, smart indexing, hybrid search, and advanced RAG patterns.
16 lessons 1 h 30 min Developer
Remote MCP: Connect External Tools
Connect Grok to your own MCP servers: secure configuration, multi-server setup, authentication, and best practices.
12 lessons 1 h 15 min Developer
Voice Agent API: real-time conversations
Build voice agents over WebSocket: VAD, voice function calling, events, and SIP phone integration.
16 lessons 1 h Developer
Text-to-Speech API
Professional speech synthesis over HTTP and WebSocket: 28 natural voices, expressive tags, streaming, and every audio format.
14 lessons 1 h Developer
Batch API: Bulk Processing
Process thousands of requests asynchronously, 20% cheaper on eligible Grok models. Covers JSONL, images, videos, tools, and production workflow.
12 lessons 1 h Developer
Multi-Agent Research
Orchestrate 4 or 16 agents in parallel with grok-4.20-multi-agent: leader architecture, shared tools, and enriched results.
14 lessons 1 h 15 min Developer
Grok Code & Editors
Use Grok to code in Cursor and compatible editors: grok-build-0.1, Grok Build, optimized prompts, caching, and productivity.
14 lessons 1 h Developer
Async Requests & Advanced Patterns
AsyncClient, semaphores, maximum concurrency, hybrid tools, and cache optimization to scale your applications.
12 lessons 45 min Advanced
Management API: Keys & Billing
Manage your API keys: rotation, ACLs, billing, usage analytics, and prepaid credits.
14 lessons 1 h Developer
Grok in Production
Deploy Grok to production confidently: rate limits, intelligent caching, tokenization, version migration, and best practices.
14 lessons 1 h 30 min Advanced
xAI Security & Compliance
Enterprise security covering SOC 2 Type II, HIPAA, GDPR, SAML SSO, ephemeral tokens, and advanced moderation.
12 lessons 1 h 45 min Advanced