界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

grok-image

grok-image

【效率与协作】Generate images using Grok (xAI) image generation API. Use when you need to create images from text prompts.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: grok-image description: Generate images using Grok (xAI) image generation API. Use when you need to create images from text prompts.

Grok Image Generation

Setup

Add your API key to ~/.clawdbot/.env:

GROK_API_KEY=xai-your-key-here

Usage

Generate images with a simple prompt:

Generate a cute raccoon character with friendly smile

The skill will:

  1. Read GROK_API_KEY from ~/.clawdbot/.env
  2. Call Grok's image generation API
  3. Save the image and return the path

Options

  • Custom output path: Add --output /path/to/image.png
  • Size: --size 512x512 (default: 1024x1024)

Notes

  • Uses grok-imagine-image model
  • Images are saved to the workspace or specified path
我的收藏