@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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.0](https://github.com/mrgoonie/multix-cli/compare/v0.2.0...v0.3.0) (2026-07-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
* **cloudflare:** add Workers AI media generation ([#26](https://github.com/mrgoonie/multix-cli/issues/26)) ([53c1831](https://github.com/mrgoonie/multix-cli/commit/53c183187571d59f350af7c769927e488afd36aa))
|
|
14
|
+
|
|
8
15
|
## [0.2.0](https://github.com/mrgoonie/multix-cli/compare/v0.1.1...v0.2.0) (2026-05-27)
|
|
9
16
|
|
|
10
17
|
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
AI multimodal CLI — generate images/video/speech/music, analyze and transcribe media files, convert documents to Markdown, and optimize media with ffmpeg/ImageMagick.
|
|
4
4
|
|
|
5
|
-
Supports **OpenAI** (image, image edits, TTS, STT, optional Codex image driver), **Gemini** (analyze, transcribe, generate, Veo video, Flash TTS), **MiniMax** (image, video, speech, music), **OpenRouter** (image generation), **Leonardo.Ai** (image, video, upscale), **BytePlus** (Seedream image, Seedance video, Hyper3D / Hitem3d 3D), and **ElevenLabs** (TTS, voice cloning, STT, voice changer, SFX, music, dubbing, isolation, alignment).
|
|
5
|
+
Supports **OpenAI** (image, image edits, TTS, STT, optional Codex image driver), **Gemini** (analyze, transcribe, generate, Veo video, Flash TTS), **MiniMax** (image, video, speech, music), **OpenRouter** (image generation), **Leonardo.Ai** (image, video, upscale), **BytePlus** (Seedream image, Seedance video, Hyper3D / Hitem3d 3D), **Cloudflare** (Workers AI image and speech; AI Gateway-routed Replicate video), and **ElevenLabs** (TTS, voice cloning, STT, voice changer, SFX, music, dubbing, isolation, alignment).
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -63,6 +63,13 @@ Set at least one provider key. Add to `.env` in your project root or `~/.multix/
|
|
|
63
63
|
| `BYTEPLUS_VIDEO_MODEL` | No | Default Seedance model (default `seedance-2.0`) |
|
|
64
64
|
| `BYTEPLUS_VIDEO_PARAMS_MODE` | No | `flags` (default) or `structured` — how video params are encoded |
|
|
65
65
|
| `BYTEPLUS_3D_MODEL` | No | Default 3D model (default `hyper3d-gen2-260112`) |
|
|
66
|
+
| `CLOUDFLARE_ACCOUNT_ID` | For Cloudflare media | Cloudflare account ID for Workers AI and AI Gateway |
|
|
67
|
+
| `CLOUDFLARE_API_TOKEN` | For Cloudflare media | Cloudflare API token for Workers AI and AI Gateway |
|
|
68
|
+
| `CLOUDFLARE_AI_GATEWAY_ID` | Video only | AI Gateway ID; optional for Workers AI image/speech, required for video |
|
|
69
|
+
| `CLOUDFLARE_AI_GATEWAY_COLLECT_LOG_PAYLOAD` | No | Set to `true` to explicitly opt in to AI Gateway request-payload collection; defaults to `false` |
|
|
70
|
+
| `REPLICATE_API_TOKEN` | Cloudflare video only | Replicate API token used through Cloudflare AI Gateway |
|
|
71
|
+
| `CLOUDFLARE_AI_IMAGE_MODEL` | No | Image model setting; only `@cf/black-forest-labs/flux-1-schnell` is accepted |
|
|
72
|
+
| `CLOUDFLARE_AI_TTS_MODEL` | No | Speech model setting; only `@cf/myshell-ai/melotts` is accepted |
|
|
66
73
|
| `MULTIX_OUTPUT_DIR` | No | Override default output dir (`./multix-output`) |
|
|
67
74
|
| `OPENROUTER_IMAGE_MODEL` | No | Default OpenRouter model |
|
|
68
75
|
| `OPENROUTER_FALLBACK_MODELS` | No | Comma-separated fallback model ids |
|
|
@@ -307,6 +314,35 @@ multix byteplus status <taskId> [--wait] [--wait-timeout 600000] [--download] [-
|
|
|
307
314
|
- `multix byteplus status <taskId> --download` works for both video (`content.video_url`) and 3D (`content.file_url`) tasks.
|
|
308
315
|
- **Task cancellation is not supported** — there is no verified DELETE endpoint on the ARK API. Submitted tasks must run to completion.
|
|
309
316
|
|
|
317
|
+
### `multix cloudflare`
|
|
318
|
+
|
|
319
|
+
Cloudflare image and speech use [Workers AI's REST API](https://developers.cloudflare.com/workers-ai/get-started/rest-api/) with `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_API_TOKEN`. Supplying `CLOUDFLARE_AI_GATEWAY_ID` optionally routes those Workers AI calls through AI Gateway. The CLI supports only the fixed models below; it does not expose the arbitrary Workers AI catalog.
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
# Image generation: Workers AI FLUX.1 Schnell (sync)
|
|
323
|
+
multix cloudflare generate --prompt "a cyberpunk cat" \
|
|
324
|
+
[--model @cf/black-forest-labs/flux-1-schnell] [--steps 1-8] [--seed <n>] [--output <path>] [-v]
|
|
325
|
+
|
|
326
|
+
# Text-to-speech: Workers AI MeloTTS (sync, saves MP3)
|
|
327
|
+
multix cloudflare generate-speech --text "Hello world" \
|
|
328
|
+
[--lang <code>] [--model @cf/myshell-ai/melotts] [--output <path>] [-v]
|
|
329
|
+
|
|
330
|
+
# Video: Replicate prunaai/p-video prediction through Cloudflare AI Gateway (async by default)
|
|
331
|
+
multix cloudflare generate-video --prompt "Ocean waves" \
|
|
332
|
+
[--duration 5] [--aspect-ratio 16:9] [--resolution 720p] [--fps 24] \
|
|
333
|
+
[--wait] [--wait-timeout 600000] [--download] [--output <path>] [-v]
|
|
334
|
+
|
|
335
|
+
# Inspect, wait for, or download a video prediction
|
|
336
|
+
multix cloudflare video-status <predictionId> \
|
|
337
|
+
[--wait] [--wait-timeout 600000] [--download] [--output <path>] [-v]
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
Video requires all four variables: `CLOUDFLARE_ACCOUNT_ID`, `CLOUDFLARE_API_TOKEN`, `CLOUDFLARE_AI_GATEWAY_ID`, and `REPLICATE_API_TOKEN`. It uses Cloudflare's documented [Replicate AI Gateway route](https://developers.cloudflare.com/ai-gateway/usage/providers/replicate/), not a native Workers AI video model.
|
|
341
|
+
|
|
342
|
+
Without `--wait` or `--download`, `generate-video` prints the prediction ID so it can be checked with `video-status`. `--download` implies `--wait`; on `generate-video`, either flag waits for success and saves the MP4. On `video-status`, `--wait` only reports the terminal status, while `--download` waits and saves the MP4. These commands print local paths and status/IDs, never the provider output URL.
|
|
343
|
+
|
|
344
|
+
Set `CLOUDFLARE_AI_GATEWAY_COLLECT_LOG_PAYLOAD=true` only to explicitly opt in to request-payload collection by AI Gateway; it defaults to `false`. This controls the gateway request header, not multix CLI logging: the CLI does not log credential values or provider output URLs.
|
|
345
|
+
|
|
310
346
|
### `multix elevenlabs`
|
|
311
347
|
|
|
312
348
|
```bash
|
|
@@ -413,7 +449,7 @@ All generated files are saved to `./multix-output/` by default. Override with `M
|
|
|
413
449
|
|
|
414
450
|
### Polling and downloading videos
|
|
415
451
|
|
|
416
|
-
|
|
452
|
+
Most video-generating subcommands accept a uniform set of polling/download flags:
|
|
417
453
|
|
|
418
454
|
| Flag | Description |
|
|
419
455
|
|------|-------------|
|
|
@@ -427,6 +463,8 @@ Thumbnail detection is automatic: if the provider response includes any of `cove
|
|
|
427
463
|
|
|
428
464
|
`leonardo video`, `leonardo image-to-video`, and `openrouter image-to-video` are async-by-default for backward compatibility — pass `--wait` (or `--download`) to opt into the synchronous flow.
|
|
429
465
|
|
|
466
|
+
Cloudflare video is intentionally separate: it has no thumbnail flags, and `generate-video --wait` already saves the completed MP4. See [`multix cloudflare`](#multix-cloudflare) for its exact polling and download behavior.
|
|
467
|
+
|
|
430
468
|
## Troubleshooting
|
|
431
469
|
|
|
432
470
|
**No API key found:** Run `multix check` — it prints setup instructions.
|