xAI / Grok
Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.
Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Chat with xAI's Grok models. Supports text and vision.
INSTALLATION AND USE INSTRUCTIONS
export XAI_API_KEY="xai-YOUR-KEY"
Get your API key at: https://console.x.ai
node {baseDir}/scripts/chat.js "What is the meaning of life?"
node {baseDir}/scripts/chat.js --model grok-3-mini "Quick question: 2+2?"
node {baseDir}/scripts/chat.js --image /path/to/image.jpg "What's in this image?"
node {baseDir}/scripts/search-x.js "Remotion video framework" node {baseDir}/scripts/search-x.js --days 7 "Claude AI tips" node {baseDir}/scripts/search-x.js --handles @remotion_dev "updates"
Uses xAI Responses API with x_search tool for real X posts with citations.
node {baseDir}/scripts/models.js
grok-3 - Most capable, best for complex tasksgrok-3-mini - Fast and efficientgrok-3-fast - Optimized for speedgrok-2-vision-1212 - Vision model for image understandingUser: "Ask Grok what it thinks about AI safety" Action: Run chat.js with the prompt
User: "Use Grok to analyze this image" (with attached image) Action: Run chat.js with --image flag
User: "What Grok models are available?" Action: Run models.js
xAI API Docs: https://docs.x.ai/api
XAI_API_KEY - Your xAI API key (required)XAI_MODEL - Default model (optional, defaults to grok-3)What this skill does:
api.x.aiscripts/models.js lists available models (read-only)What this skill does NOT do:
--image only accepts files with image extensions (.jpg, .jpeg, .png, .gif, .webp)api.x.aidisable-model-invocation: true)Bundled scripts:
scripts/chat.js (chat), scripts/models.js (list models), scripts/search-x.js (X search)
Review scripts before first use to verify behavior.
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.