Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.
Chat with xAI's Grok models. Supports text and vision.
Set your API key in the skill config:
```bash
clawdbot config set skills.entries.xai.apiKey "xai-YOUR-KEY"
export XAI_API_KEY="xai-YOUR-KEY"
```
Get your API key at: https://console.x.ai
```bash
node {baseDir}/scripts/chat.js "What is the meaning of life?"
```
```bash
node {baseDir}/scripts/chat.js --model grok-3-mini "Quick question: 2+2?"
```
```bash
node {baseDir}/scripts/chat.js --image /path/to/image.jpg "What's in this image?"
```
```bash
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.
```bash
node {baseDir}/scripts/models.js
```
**User:** "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
Leave a review
No reviews yet. Be the first to review this skill!