pi-xai-imagine
v0.5.0
Published
Pi extension for xAI image, video, and vision workflows
Readme
Pi xAI Imagine

Standalone Pi extension for xAI media workflows.
Install
Via npm registry:
pi install pi-xai-imagineVia git:
pi install github:luxus/pi-xai-imagineFeatures
generate_image— create images from prompt or remix from reference imagesedit_image— edit one or more images with natural languagegenerate_video— text-to-video, image-to-video, or reference-to-videoedit_video— edit existing public or xAI-hosted video URLextend_video— continue existing video from last frameunderstand_image— analyze images with xAI vision/reasoning via/v1/responsesopen_xai_studio— open native Glimpse studio for refs, remix, edits, image-to-video, video edit/extendcheck_xai_health— verify xAI auth, base URL, models visibility, config source/xai-studio— command alias to open studio/xai-health— command alias to run health check
Dev
bun install
bun run format:fix
bun run lint:fix
bun run typecheckPre-commit hook via lefthook runs format, lint fix, typecheck on staged files.
Typecheck uses tsgo (@typescript/native-preview).
GitHub Actions runs bun run check:ci on push/PR.
CI pinned to Bun 1.3.11.
Notes
- API key source:
XAI_API_KEYenv var or Pi settings at./.pi/settings.jsonor~/.pi/agent/settings.json - Shared config namespace ready for reuse:
{ "xai": { "apiKey": "xai-...", "baseUrl": "https://api.x.ai/v1", "imagine": { "autoOpenGlimpse": true }, "voice": {}, "search": {} } } - Legacy
piXaiGensettings still merge intoxai.imagine - Image output supports
urlandb64_json - Video flow supports polling timeout + interval controls
- Video generation blocks invalid
image + referenceImagescombination - Image understanding uses
store: false
Repo assets
- Banner:
assets/pi-xai-imagine-github-banner.png
