Melies

Commands

Complete reference for every Melies CLI command. Each command supports quality presets, AI actors, and visual style flags.

melies login

Authenticate and store your token locally. Opens a browser for OAuth by default.

For CI environments or AI agents, pass a token directly with --token. Tokens are stored in ~/.meliesrc.

Set MELIES_TOKEN as an environment variable for automated pipelines. It takes precedence over the stored config.

bash

melies credits

Check your credit balance and usage history. Use the -g flag to group usage by day, week, or month to understand your spending patterns.

bash

melies models

List available AI models with pricing. No authentication needed. Filter by type to narrow results.

See the Models page for the full catalog with specs and comparisons.

bash

melies image<prompt>

Generate an image from a text prompt. Supports AI actors, visual styles, and smart model selection via quality presets.

Combine style flags for richer results. For example, --art-style ghibli --lighting golden --mood romantic all apply to one generation.

Parameters

--actorBuilt-in AI actor for consistent characters See reference
--refCustom actor/object reference ID See reference
--fast / --quality / --bestSmart model selection presets See reference
--art-styleArt style: ghibli, noir, anime, watercolor, concept... See reference
--lightingLighting: golden, soft, noir, rembrandt, neon... See reference
--moodMood: romantic, mysterious, epic, ethereal... See reference
--cameraCamera angle: eye-level, low, high, dutch, ots... See reference
--shotShot size: close-up, medium, wide, full-body... See reference
--expressionExpression: smile, serious, surprised, villain-smirk... See reference
--color-gradeColor grading: teal-orange, mono, warm, filmic... See reference
--eraHistorical era: victorian, 1980s, modern, dystopian... See reference
--timeTime of day: dawn, golden, dusk, night... See reference
--weatherWeather: clear, fog, rain, storm, snow... See reference
--srefStyle reference code (see melies styles)
--dry-runPreview prompt, model, and cost without generating
--seedSeed for reproducible generation
-o, --outputSave file to path (use with --sync)
-m, --modelModel override (overrides quality presets) See reference
-a, --aspectRatioRatio: 1:1, 16:9, 9:16, 4:3, 3:4
-n, --numOutputsNumber of images, 1 to 4 (default: 1)
-i, --imageUrlReference image URL for image-to-image
-s, --syncWait for completion and return the URL

Use --dry-run to preview the exact prompt, model, and cost before spending credits.

bash

melies video<prompt>

Generate a video from a text prompt. Supports the same style flags as image. Pass an image URL with -i for image-to-video generation.

Parameters

--actorBuilt-in AI actor for consistent characters See reference
--fast / --quality / --bestSmart model selection presets See reference
--movementCamera movement: dolly-in, pan-left, orbit-360, crane-up, handheld... See reference
--lighting, --mood, --camera...Same visual style flags as image See reference
-d, --durationDuration in seconds (model-dependent)
-i, --imageUrlReference image URL for image-to-video
-m, --modelModel override See reference
-a, --aspectRatioRatio: 16:9, 9:16, 1:1
-s, --syncWait for completion (timeout: 5 min)
bash

melies poster<title>

Generate a movie poster with 20 style presets. No prompt engineering needed. Just provide a title, pick a style, and optionally add a logline and genre.

Parameters

--stylePoster style: cinematic, anime, noir, horror, sci-fi... See reference
--actorBuilt-in AI actor for the poster See reference
-l, --loglineShort synopsis for the poster
-g, --genreGenre: horror, sci-fi, comedy, drama, action, etc.
--fast / --quality / --bestQuality presets See reference
--dry-runPreview prompt and cost
-s, --syncWait for completion and return the URL
bash

melies thumbnail<prompt>

Generate YouTube thumbnails. Forces 16:9 aspect ratio with thumbnail-optimized defaults. Great for generating multiple variations at once with -n 4.

Parameters

--actorBuilt-in AI actor See reference
--expressionFacial expression for the actor See reference
--lighting, --mood...Same visual style flags as image See reference
-n, --numOutputsNumber of thumbnails, 1 to 4
bash

melies pipeline<prompt>

Generate an image and then animate it into a video. Both steps in one command. Returns { imageUrl, videoUrl }.

Parameters

--im / --vmOverride image or video model
--movementCamera movement for the video step See reference
-d, --durationVideo duration in seconds
--actor, style flags, quality presetsApplied to both steps

Sync defaults to true. Override image or video models separately with --im and --vm.

bash

melies upscale<imageUrl>

Upscale an image to higher resolution. Choose between speed (esrgan) and quality (clarity). 4x scale costs double.

Parameters

-m, --modelesrgan (3cr), clarity (8cr), seedvr2 (5cr)
--scale2x or 4x (4x costs double)
bash

melies remove-bg<imageUrl>

Remove the background from an image. Returns a transparent PNG. Costs 3 credits.

bash

melies actors

Browse 148 built-in AI actors. Filter by type, gender, or age. Search by keywords. See the full Actor Catalog for browsable photos.

bash

melies styles

Browse and search style references (sref codes) for visual consistency. See the Styles page for the full gallery.

bash

melies status<assetId>

Check the status of a generation job. Returns the asset ID, status (pending, completed, failed), URL, prompt, and model.

Use this when running commands without --sync. Poll until status is completed to get the output URL.

bash

melies assets

List your recently generated assets. Filter by type and paginate through results.

Parameters

-l, --limitNumber of assets (default: 20, max: 100)
-o, --offsetPagination offset
-t, --typeFilter: text_to_image, text_to_video, poster_generator
bash

melies ref

Manage AI actor and object references for consistent characters across generations. Create a reference from an image, then use it with --ref in any generation command.

References work with images, videos, posters, and pipelines. They ensure the same face/object appears across all your generations.

bash

Use references in generation commands:

bash