- Use 'jq -Rs split' instead of 'jq -R' to properly handle base64 data URIs
that may contain embedded newlines in the data
- Fix double-nesting of subject_reference array causing API error 2013
- Also fix: base64 -w 0 to avoid line wrapping in base64 output
- Write payload to temp file for curl to avoid shell arg length limits
- Add full response output on API error for easier debugging
Fixes#53
When running in i2i (image-to-image) mode, the script passes a
base64-encoded image as a jq argument on the command line. On Windows,
cmd.exe limits arguments to ~32 KB, causing 'Argument list too long' errors
when the reference image is large.
Fix: write intermediate JSON fragments to temp files and pass them to jq
via --from-file instead of on the command line. This works reliably on
Windows and is equally valid on Linux/macOS.
Fixes the i2i (--mode i2i --ref-image) workflow on Windows.
Add community skill for MiniMax multimodal content generation,
covering TTS, voice cloning, music, video (t2v/i2v/sef/ref/long-form),
image (t2i/i2i), and FFmpeg-based media processing tools.
Made-with: Cursor