Skip to content

CLI reference

The Splixir CLI (splixir) submits image, audio, and video jobs from your terminal, uploads local files automatically, estimates costs, validates job JSON files offline, and runs the local stdio MCP server.

Install globally or invoke directly with npx:

Terminal window
npm install -g splixir
splixir --version

On Windows PowerShell, run npm.cmd install -g splixir if script execution policy blocks npm.ps1.

Splixir resolves credentials in this order:

  1. --key and --api-url command-line flags
  2. SPLIXIR_API_KEY and SPLIXIR_API_URL environment variables
  3. ~/.splixir/config.json (saved with 0600 file permissions by splixir login)
  1. Run splixir login (or splixir login --key <key>) with your splx_live_... API key from Console keys. Login verifies against GET /v1/jobs?limit=1 so jobs:read keys succeed even without billing:read.
  2. Run splixir account to inspect your account ID, tier, concurrency, and entitlements.
  3. Run splixir capabilities to inspect available categories, operations, limits, and USD pricing.
Command Description
splixir capabilities [category] List supported categories, operations, limits, and pricing
splixir probe <file|url|uploadId|jobId> Inspect local files or remote media (--output <label>, --json)
splixir account Inspect account tier, concurrency, RPM, and retention limits
splixir account unlock <10|20|30> Unlock PAYG concurrency milestones ($50, $150, or $300 balance)
splixir image <file-or-url|dir> Transform an image or batch a folder (--out-dir)
splixir audio <file-or-url|dir> Transform audio or batch a folder (--out-dir)
splixir video <file-or-url|dir> Transform video or batch a folder (--out-dir)
splixir login / logout Save or clear ~/.splixir/config.json
splixir whoami / balance Inspect active auth and USD wallet balance
splixir init Generate a starter splixir.job.json
splixir validate <file> Validate a job JSON file offline against schemas
splixir jobs estimate <file> Pre-flight USD quote from POST /v1/jobs/estimate
splixir jobs submit|status|list|report|cancel Manage structured JSON jobs (splixir job alias supported)
splixir mcp Start the local stdio MCP server
splixir docs Open https://docs.splixir.com in your browser
splixir help / -V Print help or CLI version

Pass a directory path to splixir image, splixir audio, or splixir video to process matching files in batches of up to 100 items:

Terminal window
splixir image ./photos --out-dir ./out --width 1600 --format webp --concurrency auto --recursive --skip-existing --rename "{name}.{ext}"

Folder batch mode automatically retries transient per-item errors (such as rate limits or temporary concurrency spikes) with server-guided backoff up to 4 attempts, while failing fast on validation or balance errors. Progress updates write to stderr so --json output on stdout stays clean.

Flag Notes
--out-dir <dir> Destination folder for batch outputs (required unless --no-download)
--concurrency <auto|N> Parallel workers (auto scales from account concurrency and RPM)
--recursive Walk subdirectories and preserve relative folder structure in --out-dir
--skip-existing Skip files whose target output file already exists with non-zero bytes
--rename <pattern> Output template supporting {name}, {ext}, {mtime}, and {date}
--no-download Submit and verify batch jobs without downloading output files locally

Shared chaining, retention, and idempotency flags

Section titled “Shared chaining, retention, and idempotency flags”

Pass these flags on splixir image, splixir audio, splixir video, and splixir jobs submit:

Flag Notes
--from-job <jobId[:output]> Chain directly from a delivered job output without downloading locally
--retain-days <1-30> Keep hosted output for 1 to 30 days ($0.002/GB-day beyond plan included)
--idempotency-key <key> Send Idempotency-Key header (max 128 chars, 24-hour deduplication)

When -o <file> is passed on a single-file command, splixir polls synchronously until completion, verifies the downloaded file is non-empty, and never silently skips the download. For local files, splixir derives a deterministic SHA-256 Idempotency-Key automatically, records metadata.filename, downloads the verified output cleanly on idempotent replay (v0.5.0+), and sets idempotentReplayed: true in --json output.

Terminal window
npx splixir image ./photo.heic --width 1600 --fit inside --format webp --quality 82 --retain-days 7 -o ./photo.webp
Flag Notes
--resize <WxH>, --width <px>, --height <px> 1200x800, 800x, x600, or separate --width / --height flags (do not combine --width/--height with --resize)
--fit <mode> contain, cover, fill, inside, outside
--allow-enlargement Allow upscaling beyond source dimensions
--crop <x,y,w,h> / --aspect <W:H> Pixel region or aspect crop (--gravity center|north|south|east|west|smart)
--format <fmt>, --quality <1-100> Output encoding (--lossless, --progressive, --background <hex>)
--strip / --no-strip Strip EXIF metadata (default: strip)
--rotate <deg>, --flip <dir>, --pad <t,r,b,l>, --trim [thresh] Geometry operations
--filter <name>, --blur <r>, --sharpen <a>, --pixelate <n> Visual filters
--brightness, --contrast, --saturation, --gamma Tone adjustments
--watermark <text>, --watermark-image <url> Watermark (--watermark-pos, --watermark-opacity)
--composite <src> Overlay image URL, upload ID, job ID, or local file (--composite-pos, --composite-x, --composite-y, --composite-width, --composite-height, --composite-scale, --composite-opacity, --composite-margin)
-o, --output <file>, --destination <url>, --callback <url>, --no-wait, --json Delivery and CLI flags
Terminal window
npx splixir audio ./interview.wav --trim-silence --denoise --normalize podcast --format mp3 --bitrate 192 -o ./interview.mp3
Flag Notes
--format <fmt> mp3, m4a, aac, flac, opus, wav, ogg, aiff
--bitrate <kbps>, --quality <1-100>, --sample-rate <hz> Encoding options (--compression-level, --sample-format)
--normalize <preset> streaming, podcast, audiobook, broadcast, custom (--lufs, --true-peak)
--trim <start[,dur]>, --trim-end <s>, --trim-silence Trimming (--silence-mode, --silence-db, --min-silence, --keep-silence)
--fade-in <s>, --fade-out <s>, --fade-curve <c> Fade controls
--gain <dB>, --speed <n>, --pitch <semitones> Gain, speed, and pitch
--equalize <preset>, --compress, --denoise, --channels <mode> Cleanup and channel presets
--strip, --keep-artwork, --title, --artist, --album Tag controls
--waveform <json|png> Generate waveform (--bins, --waveform-width, --waveform-height, --waveform-color, --waveform-bg, --waveform-split)
--concat <src> Concatenate audio inputs (--concat-crossfade <sec>, --no-concat-normalize)
--mix <src> Mix overlay track (--mix-volume <dB>, --mix-ducking, --mix-duck-threshold <dB>, --mix-duck-ratio <n>, --mix-loop, --mix-offset <sec>)
-o, --output <file>, --destination <url>, --callback <url>, --no-wait, --json Delivery and CLI flags
Terminal window
npx splixir video ./source.mov --resolution 1080p --codec h264 --container mp4 --captions-url https://cdn.example.com/subs.srt -o ./out.mp4
Flag Notes
--codec <h264|hevc|av1>, --container <mp4|mov|mkv|webm> Target codec and container (--chroma, --quality, --crf, --max-bitrate, --audio-codec, --audio-bitrate)
--resolution <tier>, --width <px>, --height <px> 540p, 720p, 1080p, 1440p, 4k, 8k (--fit, --without-enlargement)
--crop <l,t,w,h>, --aspect <W:H>, --gravity <g> Region or aspect crop
--trim <start[,dur]>, --trim-end <s>, --fps <n>, --rotate <deg>, --auto-orient, --speed <n> Timing and orientation
--watermark-text, --watermark-image, --watermark-pos, --deinterlace, --strip Overlays and cleanup
--audio-action <strip|normalize|volume|extract> Audio track actions (--audio-preset, --audio-gain, --audio-format)
--thumbnail <s>, --clip <start,dur> Terminal extractors (--thumbnail-format, --clip-format, --clip-fps)
--captions-url, --captions-text, --captions-job, --captions-format <ass|srt|vtt> Subtitle burn-in (--captions-align, --captions-font-size, --captions-font, --captions-color, --no-burn-in)
--compose <pip|side_by_side|stack_vertical|overlay>, --overlay <src> Multi-input composition (--overlay-x, --overlay-y, --overlay-width, --overlay-height, --overlay-opacity)
--concat <src> Concatenate additional clip(s) (--concat-mode, --concat-transition, --concat-duration)
--mux-audio <src> Mux external audio track (--mux-mix, --mux-delay, --mux-volume, --no-mux-shortest)
--flex Route to Flex Async queue (-30% on Scale and Studio; sets --no-wait)
--bucket <id>, --object-key <key>, -o, --output <file>, --destination <url>, --callback <url>, --no-wait, --json Delivery and CLI flags

When you pass a local path to splixir probe, splixir image, splixir audio, or splixir video, the CLI uploads it automatically (switching to multipart upload for files over 50 MiB). For safety, the CLI refuses hidden files and directories (.env, .ssh, .aws, .splixir, .git), system folders, UNC paths, and Windows reserved device names.