CLI

One CLI > Any script Every Krea model

Run Krea image, video, and enhancement models from your terminal. Authenticate once, generate async by default, and wait only when you need final URLs.

Install the CLI

Install the Krea CLI globally with npm.

npm install -g @krea-ai/cli

Sign in

Authenticate with an API token from API Tokens.

krea auth login

Generate

You're set. Try generating your first image.

krea generate image -p "a cyberpunk cat"

Generated with Krea

From command line prompt to production asset.

Krea CLI can drive the same model catalog shown across Krea, with async control for longer jobs and wait mode for one-shot scripts.

People running. extremely exaggerated wide camera angle, exaggerated shapes. risograph poster. graphic illustration. dynamic composition.
Krea 2

“People running, risograph poster”

Prompt

“An animated capybara talking about Krea.ai”

Close-up portrait of a woman with long black hair partially obscured by a glowing, motion-blurred sword held vertically in front of her face, dramatic light streaks crossing composition, low contrast, cinematic high dynamic range, highly detailed, intricate chainmail headpiece and septum ring, modern warrior aesthetic blending medieval armor with cyberpunk fashion, neon glow effects, futuristic armor textures, ambient lighting, dark background, film grain, sharp focus, vibrant color palette with contrasting cool and warm tones, moody atmosphere, detailed facial features, soft rim lighting, subtle lens flares, high-resolution realistic rendering, cinematic composition, depth of field, subtle reflections and metallic textures, dynamic motion blur, editorial style, hyper-realistic

Upscale image 512px → 8K

Prompt

“Advertisement shot of a sandwich vertically exploding into different layers“

A rugged off - road vehicle in retro teal, featuring a snorkel, roof rack, and massive all - terrain tires, travels on a rocky desert trail among canyons. The vehicle has a weathered, well - worn look. Dust is kicked up by the wheels, and warm sunlight (reminiscent of sunrise or sunset) bathes the scene, crafting a cinematic poster - like atmosphere brimming with adventure and the spirit of pursuing freedom.
Prompt

“Dramatic photo of an old offroad truck racing through the desert”

Run Krea models from your terminal using the Krea CLI
Image, video, and enhancement from one binary

Run Krea models from your terminal

Use generate image, generate video, and generate enhance without switching tools. The CLI wraps the same public API flow while keeping commands short and scriptable for local automation.

Predictable stdout, JSON, and exit codes with the Krea CLI
Built for pipelines and agents

Predictable stdout, JSON, and exit codes

Async runs print job_id to stdout, wait flows print final URLs, and --json keeps output machine-readable. This makes shell scripts and AI agents more reliable in non-interactive environments.

List and inspect the live catalog first with the Krea CLI
Choose models with real metadata

List and inspect the live catalog first

Filter by category, tier, capability, or recommended status, then inspect a model schema before generation. You can check what each model expects without guessing parameter names.

Stay async or poll with jobs wait using the Krea CLI
Control long-running jobs cleanly

Stay async or poll with jobs wait

Keep fast scripts non-blocking with async submits, then query job state with jobs show or block to completion with jobs wait. For one-shot flows, use --wait directly on generation commands.

Frequently asked questions

Run Krea models from your terminal using the Krea CLI
Predictable stdout, JSON, and exit codes with the Krea CLI
List and inspect the live catalog first with the Krea CLI
Stay async or poll with jobs wait using the Krea CLI

Install Krea CLI and run your first generation

Grab a token, install @krea-ai/cli, and run image, video, or enhancement workflows from your terminal with async and wait modes.

Install via npm