@mrgoonie/multix 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +40 -2
- package/dist/cli.js +645 -254
- package/package.json +1 -1
- package/skill/SKILL.md +38 -3
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: multix
|
|
3
|
-
description: AI multimodal CLI — generate and edit images (OpenAI, Codex driver, Gemini Nano Banana, Imagen, MiniMax, OpenRouter, Leonardo, BytePlus Seedream), generate video (Gemini Veo, MiniMax Hailuo, OpenRouter via Veo/Seedance/Kling, Leonardo via Motion/Veo/Kling/Hailuo/Seedance/LTX, BytePlus Seedance), TTS/STT/music (OpenAI, Gemini Flash TTS, MiniMax, ElevenLabs), 3D models (BytePlus Hyper3D/Hitem3d), analyze/transcribe media, convert documents to Markdown, optimize media via ffmpeg/ImageMagick. Use whenever the user wants to create, edit, or transform images/video/audio/3D/documents from a CLI, mentions any of: OpenAI, Codex image driver, image-to-image, i2i, image edit, watercolor/cyberpunk style transfer, reference image, OpenRouter, Nano Banana, Flux, Seedream, Veo, Hailuo, Seedance, Kling, video generation, text-to-video, image-to-video, i2v, ElevenLabs voice cloning, or asks for batch media optimization.
|
|
4
|
-
version: 0.
|
|
3
|
+
description: AI multimodal CLI — generate and edit images (OpenAI, Codex driver, Gemini Nano Banana, Imagen, MiniMax, OpenRouter, Leonardo, BytePlus Seedream, Cloudflare Workers AI FLUX.1 Schnell), generate video (Gemini Veo, MiniMax Hailuo, OpenRouter via Veo/Seedance/Kling, Leonardo via Motion/Veo/Kling/Hailuo/Seedance/LTX, BytePlus Seedance, Cloudflare AI Gateway via Replicate), TTS/STT/music (OpenAI, Gemini Flash TTS, MiniMax, Cloudflare Workers AI MeloTTS, ElevenLabs), 3D models (BytePlus Hyper3D/Hitem3d), analyze/transcribe media, convert documents to Markdown, optimize media via ffmpeg/ImageMagick. Use whenever the user wants to create, edit, or transform images/video/audio/3D/documents from a CLI, mentions any of: OpenAI, Codex image driver, image-to-image, i2i, image edit, watercolor/cyberpunk style transfer, reference image, OpenRouter, Nano Banana, Flux, Seedream, Veo, Hailuo, Seedance, Kling, Cloudflare Workers AI, AI Gateway, video generation, text-to-video, image-to-video, i2v, ElevenLabs voice cloning, or asks for batch media optimization.
|
|
4
|
+
version: 0.3.0 # x-release-please-version
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# multix — AI Multimodal CLI
|
|
@@ -15,6 +15,7 @@ Activate this skill when the user asks to:
|
|
|
15
15
|
- **Generate video via OpenRouter routed models** (Veo, Seedance, Kling — use `multix openrouter video-models` to list)
|
|
16
16
|
- **Generate video via BytePlus Seedance** directly (text-to-video, image-to-video, reference-to-video)
|
|
17
17
|
- **Generate video via Leonardo** (Motion, Veo, Kling, Hailuo, Seedance, LTX models)
|
|
18
|
+
- Generate images or speech with Cloudflare Workers AI, or video through Cloudflare AI Gateway's Replicate route
|
|
18
19
|
- Generate or clone a voice, run STT, generate music or sound effects
|
|
19
20
|
- Generate 3D models (BytePlus Hyper3D / Hitem3d)
|
|
20
21
|
- Analyze, transcribe, or extract structured data from media/docs
|
|
@@ -31,6 +32,9 @@ MINIMAX_API_KEY # MiniMax (image/video/speech/music)
|
|
|
31
32
|
LEONARDO_API_KEY # Leonardo.Ai (image/video/upscale)
|
|
32
33
|
BYTEPLUS_API_KEY # BytePlus / Volcengine ARK (Seedream/Seedance/Hyper3D)
|
|
33
34
|
ELEVENLABS_API_KEY # ElevenLabs (TTS, cloning, STT, music, dubbing)
|
|
35
|
+
CLOUDFLARE_ACCOUNT_ID # Cloudflare Workers AI / AI Gateway account
|
|
36
|
+
CLOUDFLARE_API_TOKEN # Cloudflare Workers AI / AI Gateway token
|
|
37
|
+
# Video additionally requires CLOUDFLARE_AI_GATEWAY_ID and REPLICATE_API_TOKEN.
|
|
34
38
|
```
|
|
35
39
|
|
|
36
40
|
Priority: `process.env` > `cwd/.env` > `~/.multix/.env`.
|
|
@@ -58,9 +62,35 @@ multix check [--verbose]
|
|
|
58
62
|
| OpenRouter | `multix openrouter generate --prompt "<text>" [--model <id>] [--aspect-ratio 16:9] [--image-size 2K] [--num-images N]` | Default `google/gemini-3.1-flash-image-preview` |
|
|
59
63
|
| Leonardo | `multix leonardo generate "<text>" [-w 1024 -h 1024] [--alchemy] [--ultra] [--quality HIGH]` | Polls until done, downloads automatically |
|
|
60
64
|
| BytePlus | `multix byteplus generate --prompt "<text>" [--model seedream-4-0-250828] [--size 2K] [--aspect-ratio 16:9] [-n N] [--input-image <path\|url>]` | Sync |
|
|
65
|
+
| Cloudflare | `multix cloudflare generate --prompt "<text>" [--steps 1-8] [--seed <n>]` | Workers AI FLUX.1 Schnell only |
|
|
61
66
|
|
|
62
67
|
Aspect ratios (most providers): `1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9`.
|
|
63
68
|
|
|
69
|
+
## Cloudflare media
|
|
70
|
+
|
|
71
|
+
Cloudflare image and speech use the [Workers AI REST API](https://developers.cloudflare.com/workers-ai/get-started/rest-api/) with `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_API_TOKEN`. `CLOUDFLARE_AI_GATEWAY_ID` is optional for those Workers AI calls, but required with `REPLICATE_API_TOKEN` for video. The CLI deliberately supports only the fixed models shown here; it does not expose an arbitrary Workers AI catalog.
|
|
72
|
+
|
|
73
|
+
`CLOUDFLARE_AI_GATEWAY_COLLECT_LOG_PAYLOAD` defaults to `false`; set it to `true` only to explicitly opt in to AI Gateway request-payload collection. It controls a gateway request header, not multix CLI logging: the CLI does not log credential values or provider output URLs.
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Workers AI image (FLUX.1 Schnell; sync)
|
|
77
|
+
multix cloudflare generate --prompt "a cyberpunk cat" \
|
|
78
|
+
[--model @cf/black-forest-labs/flux-1-schnell] [--steps 1-8] [--seed <n>] [--output <path>] [-v]
|
|
79
|
+
|
|
80
|
+
# Workers AI speech (MeloTTS; sync, saves MP3)
|
|
81
|
+
multix cloudflare generate-speech --text "Hello world" \
|
|
82
|
+
[--lang <code>] [--model @cf/myshell-ai/melotts] [--output <path>] [-v]
|
|
83
|
+
|
|
84
|
+
# Replicate prunaai/p-video through Cloudflare AI Gateway; no native Workers AI video
|
|
85
|
+
multix cloudflare generate-video --prompt "Ocean waves" \
|
|
86
|
+
[--duration 5] [--aspect-ratio 16:9] [--resolution 720p] [--fps 24] \
|
|
87
|
+
[--wait] [--wait-timeout 600000] [--download] [--output <path>] [-v]
|
|
88
|
+
multix cloudflare video-status <predictionId> \
|
|
89
|
+
[--wait] [--wait-timeout 600000] [--download] [--output <path>] [-v]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Video follows Cloudflare's documented [Replicate AI Gateway route](https://developers.cloudflare.com/ai-gateway/usage/providers/replicate/). `generate-video` returns a prediction ID unless `--wait` or `--download` is passed; either waits, saves the completed MP4, and prints its local path. For `video-status`, `--wait` reports the terminal status and `--download` implies waiting plus saves the MP4. No Cloudflare video command prints the provider output URL.
|
|
93
|
+
|
|
64
94
|
## Image-to-image (edit existing image with a prompt)
|
|
65
95
|
|
|
66
96
|
Every supported provider exposes `image-to-image` and the alias `i2i`. Refs accept local file path OR URL.
|
|
@@ -156,7 +186,7 @@ multix byteplus i2v ./photo.jpg --prompt "<text>"
|
|
|
156
186
|
multix byteplus reference-to-video --prompt "<text>" --ref-image ./hero.jpg:subject ...
|
|
157
187
|
```
|
|
158
188
|
|
|
159
|
-
|
|
189
|
+
Most video commands accept `--wait`, `--wait-timeout <ms>`, `--download`, `--output <path>`, `--no-thumb`. Cloudflare video has no thumbnail flags; see [Cloudflare media](#cloudflare-media) for its distinct `--wait` and `--download` behavior.
|
|
160
190
|
|
|
161
191
|
### Decision tree — which provider to pick for video generation
|
|
162
192
|
|
|
@@ -231,6 +261,11 @@ Files saved under `./multix-output/` by default. Override with `MULTIX_OUTPUT_DI
|
|
|
231
261
|
| `LEONARDO_DEFAULT_MODEL` / `LEONARDO_VIDEO_MODEL` | Leonardo model defaults |
|
|
232
262
|
| `BYTEPLUS_IMAGE_MODEL` / `BYTEPLUS_VIDEO_MODEL` / `BYTEPLUS_3D_MODEL` | BytePlus model defaults |
|
|
233
263
|
| `BYTEPLUS_VIDEO_PARAMS_MODE` | `flags` (default) or `structured` |
|
|
264
|
+
| `CLOUDFLARE_ACCOUNT_ID` / `CLOUDFLARE_API_TOKEN` | Required for Cloudflare Workers AI image/speech and AI Gateway video |
|
|
265
|
+
| `CLOUDFLARE_AI_GATEWAY_ID` | Optional for native Cloudflare image/speech; required for Cloudflare video |
|
|
266
|
+
| `CLOUDFLARE_AI_GATEWAY_COLLECT_LOG_PAYLOAD` | Set `true` to explicitly opt in to AI Gateway request-payload collection; defaults to `false` |
|
|
267
|
+
| `REPLICATE_API_TOKEN` | Required for Cloudflare AI Gateway video |
|
|
268
|
+
| `CLOUDFLARE_AI_IMAGE_MODEL` / `CLOUDFLARE_AI_TTS_MODEL` | Fixed-model settings: only `@cf/black-forest-labs/flux-1-schnell` and `@cf/myshell-ai/melotts` respectively are accepted |
|
|
234
269
|
| `MULTIX_DISABLE_HOME_ENV` | `1` to skip `~/.multix/.env` |
|
|
235
270
|
|
|
236
271
|
## Quick examples for agents
|