Melious
CLI

Image Generation

Generate images from text prompts in your terminal

Image Generation

Generate images from text prompts using models like Flux and SDXL:

melious image "a sunset over the Swiss Alps, oil painting style"

Images are saved to the current directory as melious-{timestamp}.{ext} and — on supported terminals — displayed inline.


Options

FlagTypeDefaultDescription
--modelstringflux-1-schnellImage generation model
--sizestring1024x1024Image dimensions (e.g., 1792x1024)
--qualitystringstandardQuality: standard or hd
--stylestringvividStyle: vivid or natural
-n, --countint1Number of images to generate
-o, --outputstring.Output directory (created if needed)
--seedintRandom seed for reproducibility
--stepsintInference steps (model-dependent)
--guidancefloatGuidance scale (model-dependent)
--negativestringNegative prompt

Examples

Generate multiple images:

melious image -n 4 "cyberpunk cityscape at night"

Save to a specific directory:

melious image -o ./renders "abstract geometric patterns"

Use a specific model with higher quality:

melious image --model flux-1-dev --quality hd "portrait of a cat reading a book"

Reproduce a specific result:

melious image --seed 42 "minimalist logo design"

Fine-tune generation:

melious image --steps 50 --guidance 7.5 --negative "blurry, low quality" "a serene mountain lake"

Terminal Preview

The CLI attempts to render images inline in your terminal if supported:

TerminalProtocol
KittyKitty graphics protocol
iTerm2iTerm2 inline images
Windows TerminalSixel (if supported)

If your terminal doesn't support inline images, the CLI saves the file and prints the path.


JSON Output

Use --json to get metadata without the image data:

melious image --json "a red circle"

This returns model info, dimensions, and file paths but omits the base64 image data.

On this page