Agent skill
grok-xai
xAI Grok API reference documentation. Use when working with xAI API, Grok models, agentic tools (x_search, web_search, code_execution), Live Search, Collections, Files API, Voice API, Function Calling, Structured Outputs, or any xAI/Grok development questions.
Install this agent skill to your Project
npx add-skill https://github.com/hanamizuki/grok-xai-skills/tree/main/skills/grok-xai
SKILL.md
xAI API Reference
This skill provides comprehensive documentation for the xAI API and Grok models.
Quick Reference
| Topic | File |
|---|---|
| Getting Started | references/002_GettingStarted_Introduction.md |
| Models & Pricing | references/004_GettingStarted_ModelsAndPricing.md |
| Chat Responses API | references/014_Guides_ChatResponses.md |
| Reasoning (grok-4) | references/016_Guides_ChatWithReasoning.md |
Agentic Tools (Important)
| Tool | File |
|---|---|
| Tools Overview | references/017_Guides_Tools_Overview.md |
| x_search / web_search | references/018_Guides_Tools_SearchTools.md |
| Code Execution | references/019_Guides_Tools_CodeExecution.md |
| Collections Search | references/020_Guides_Tools_CollectionsSearch.md |
| Remote MCP | references/021_Guides_Tools_RemoteMCP.md |
| Advanced Usage | references/022_Guides_Tools_AdvancedUsage.md |
Files & Collections
| Topic | File |
|---|---|
| Files Overview | references/023_Guides_Files_Overview.md |
| Managing Files | references/024_Guides_Files_ManagingFiles.md |
| Chat with Files | references/025_Guides_Files_ChatWithFiles.md |
| Collections Overview | references/009_KeyInfo_Collections.md |
| Using Collections | references/027_Guides_UsingCollections_Overview.md |
Other APIs
| Topic | File |
|---|---|
| Function Calling | references/037_Guides_FunctionCalling.md |
| Structured Outputs | references/038_Guides_StructuredOutputs.md |
| Image Generation | references/031_Guides_ImageGenerations.md |
| Voice API | references/032_Guides_Voice_Overview.md, references/033_Guides_Voice_GrokVoiceAgentAPI.md |
| Streaming | references/034_Guides_StreamResponse.md |
| Async Requests | references/036_Guides_AsyncRequests.md |
Reference
| Topic | File |
|---|---|
| Rate Limits | references/007_KeyInfo_RateLimits.md |
| Regional Endpoints | references/008_KeyInfo_RegionalEndpoints.md |
| Debugging Errors | references/013_KeyInfo_Debugging.md |
| Migration from OpenAI/Anthropic | references/040_Guides_Migration.md |
All Files
Getting Started (001-005)
references/001_GettingStarted_Overview.md- Overviewreferences/002_GettingStarted_Introduction.md- Introductionreferences/003_GettingStarted_GuideToGrok.md- The Hitchhiker's Guide to Grokreferences/004_GettingStarted_ModelsAndPricing.md- Models and Pricingreferences/005_GettingStarted_WhatsNew.md- Release Notes
Key Information (006-013)
references/006_KeyInfo_ManageBilling.md- Manage Billingreferences/007_KeyInfo_RateLimits.md- Consumption and Rate Limitsreferences/008_KeyInfo_RegionalEndpoints.md- Regional Endpointsreferences/009_KeyInfo_Collections.md- Collectionsreferences/010_KeyInfo_ManagementAPI.md- Management APIreferences/011_KeyInfo_UsageExplorer.md- Usage Explorerreferences/012_KeyInfo_MigratingModels.md- Migrating to New Modelsreferences/013_KeyInfo_Debugging.md- Debugging Errors
Guides - Chat (014-016)
references/014_Guides_ChatResponses.md- Chat Responses (recommended)references/015_Guides_ChatCompletionsLegacy.md- Chat Completions (legacy)references/016_Guides_ChatWithReasoning.md- Reasoning
Guides - Tools (017-022)
references/017_Guides_Tools_Overview.md- Tools Overviewreferences/018_Guides_Tools_SearchTools.md- Search Tools (x_search, web_search)references/019_Guides_Tools_CodeExecution.md- Code Executionreferences/020_Guides_Tools_CollectionsSearch.md- Collections Searchreferences/021_Guides_Tools_RemoteMCP.md- Remote MCP Toolsreferences/022_Guides_Tools_AdvancedUsage.md- Advanced Usage
Guides - Files (023-025)
references/023_Guides_Files_Overview.md- Files Overviewreferences/024_Guides_Files_ManagingFiles.md- Managing Filesreferences/025_Guides_Files_ChatWithFiles.md- Chat with Files
Guides - Other (026-041)
references/026_Guides_LiveSearch.md- Live Search (deprecated, use Tools)references/027_Guides_UsingCollections_Overview.md- Using Collections Overviewreferences/028_Guides_UsingCollections_Console.md- Using Collections in Consolereferences/029_Guides_UsingCollections_API.md- Using Collections via APIreferences/030_Guides_UsingCollections_Metadata.md- Collection Metadatareferences/031_Guides_ImageGenerations.md- Image Generationsreferences/032_Guides_Voice_Overview.md- Voice Overviewreferences/033_Guides_Voice_GrokVoiceAgentAPI.md- Grok Voice Agent APIreferences/034_Guides_StreamResponse.md- Streaming Responsereferences/035_Guides_DeferredChatCompletions.md- Deferred Chat Completionsreferences/036_Guides_AsyncRequests.md- Asynchronous Requestsreferences/037_Guides_FunctionCalling.md- Function Callingreferences/038_Guides_StructuredOutputs.md- Structured Outputsreferences/039_Guides_Fingerprint.md- Fingerprintreferences/040_Guides_Migration.md- Migration from Other Providersreferences/041_Guides_GrokCodePromptEngineering.md- Prompt Engineering for Grok Code
Grok Business (042-045)
references/042_GrokBusiness_UserGuide.md- Grok.com User Guidereferences/043_GrokBusiness_LicenseManagement.md- License & User Managementreferences/044_GrokBusiness_Organization.md- Organization Managementreferences/045_GrokBusiness_Apps_GoogleDrive.md- Google Drive Integration
Resources (046-049)
references/046_Resources_CommunityIntegrations.md- Community Integrationsreferences/047_Resources_FAQ_General.md- FAQ - Generalreferences/048_Resources_FAQ_xAI_API.md- FAQ - xAI Consolereferences/049_Resources_FAQ_Grok.md- FAQ - Grok Website/Apps
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
migrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
git-guardrails-claude-code
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
Didn't find tool you were looking for?