studio-lumiere-cli
v0.1.12
Published
Local SDK + CLI for Studio Lumiere image and video generation
Readme
Studio Lumiere CLI
Local SDK + CLI for AI-powered jewelry product photography. This package lives inside the main repo and pulls its options, templates, and prompt logic from the Studio Lumiere source of truth.
Setup
cd studio-cli
npm installCreate .env (or copy studio-cli/.env.example):
GEMINI_API_KEY=your_key_here
LUMIERE_OUTPUT_DIR=outputsDevelopment
npm run dev -- generate --images "ring.jpg" --template hand_model --quantity 2Sync From Studio
Use this to copy the latest Studio Lumiere prompt and option files into
studio-cli/src/studio before building or running locally:
npm run syncCommands
The CLI exposes:
generate, refine, upscale, muse, caption, video, stitch, tired-girl, annotate,
before-after, grid, collate, list.
The caption command analyzes an image with Gemini and returns one overlay-ready
top line and one bottom line for social media traction and engagement. It saves
its result under outputs/captions/<timestamp>/caption.json.
The video command now supports:
geminiwithveo-3.1andveo-3.1-fastkie.aiwithkling-3.0- optional
--start-frameand--end-frameinputs - saving the generated video locally under
outputs/videos/<timestamp>/video.mp4 - silent local output videos with no audio track
The stitch command concatenates mixed image/video sequences into one output video using bundled FFmpeg.
Video outputs are normalized to be silent:
- Kling / KIE is requested with
sound: false - Veo outputs are saved locally without audio by stripping the audio track after download
Example:
lumiere caption --image "./output.png"Typical follow-up workflow:
- run
lumiere captionto gettopTextandbottomText - run
lumiere annotateonce for the top text - run
lumiere annotateagain on the annotated output for the bottom text
For full flag documentation and examples, see:
studio-cli/.agents/skills/studio-lumiere-cli/SKILL.md.
Project Layout
studio-cli/
src/
cli.ts
index.ts
clients/
config/
image/
pipelines/
prompt/
storage/
studio/
scripts/
sync-studio.mjs