xai-studio
БесплатноЗапускает вложенные скриптыНе проверенxAI Studio — generate and edit images and videos via the xAI API. Image: text-to-image, batch generation, multi-image editing, concurrent style transfers…
от jiaxiaojunQAQ★ 35 звёзд на GitHubОб этом скилле
xAI Studio
Generate and edit images and videos using xAI's models via the xAI SDK.
Setup (Venv + SDK)
Create an isolated virtual environment and install the SDK:
python3 -m venv venv
source venv/bin/activate
pip3 install xai-sdk
deactivate
Generate Images
venv/bin/python3 scripts/run.py generate --prompt "A futuristic cityscape at dawn"
Generate multiple images in one request:
venv/bin/python3 scripts/run.py generate --prompt "Abstract art" --count 4
Edit Images
Edit an existing image with a text prompt:
venv/bin/python3 scripts/run.py edit --prompt "Make it a watercolor painting" --image photo.png
Combine up to 3 source images:
venv/bin/python3 scripts/run.py edit --prompt "Add the cat to the landscape" --image cat.png --image landscape.png
Concurrent Style Transfers
Apply multiple styles to the same image in parallel:
venv/bin/python3 scripts/run.py concurrent --image photo.png --prompt "oil painting" --prompt "pencil sketch" --prompt "pop art"
Multi-Turn Editing
Chain edits sequentially — each output feeds into the next:
venv/bin/python3 scripts/run.py multi-turn --image photo.png --prompt "Add dramatic clouds" --prompt "Make it a sunset"
Common Flags
--model: Model name (default:grok-imagine-image)--aspect-ratio: e.g.16:9,4:3,auto(default:1:1)--resolution:1kor2k(default: API default)--format:base64(default) orurl--out-dir: Output directory (default:media/xai-output)
Output
Images are saved to <out-dir>/<YYYY-MM-DD>/<prefix>_<NNN>_<HHMMSS>.<ext>, organized by UTC date. The prefix reflects the subcommand: generate, edit, style (concurrent), or step (multi-turn). The file extension is detected automatically from image magic bytes (PNG, JPEG, WebP, GIF).
Video: Generate
# Text-to-video
venv/bin/python3 scripts/run.py video-generate --prompt "A rocket launching from Mars" --duration 10 --resolution 720p
# Image-to-video
venv/bin/python3 scripts/run.py video-generate --prompt "Animate this scene" --image photo.png --duration 5
Video: Edit
venv/bin/python3 scripts/run.py video-edit --prompt "Add a silver necklace" --video https://example.com/clip.mp4
Video: Concurrent Edits
venv/bin/python3 scripts/run.py video-concurrent --video https://example.com/clip.mp4 --prompt "Add a hat" --prompt "Change outfit to red"
Video Flags
--model: Model name (default:grok-imagine-video)--duration: Length in seconds, 1–15 (default:5) — generate only--aspect-ratio: e.g.16:9(default: API default)--resolution:480por720p(default: API default)--timeout: Max polling wait in seconds (default: SDK default)--poll-interval: Seconds between status checks (default: SDK default)
Videos are saved as .mp4 to <out-dir>/<YYYY-MM-DD>/<prefix>_<NNN>_<HHMMSS>.mp4. The prefix reflects the subcommand: video (generate), video_edit, or video_style (concurrent).
Установить xai-studio в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл xai-studio?
xAI Studio — generate and edit images and videos via the xAI API. Image: text-to-image, batch generation, multi-image editing, concurrent style transfers, multi-turn chaining. Video: text-to-video, image-to-video, video editing, concurrent video edits. All from a single expandable CLI.
Как установить скилл xai-studio?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xai-studio запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic