npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

kie-cli

v0.1.0

Published

CLI for Kie.AI - Generate images and videos with multiple AI models

Readme

kie-cli

CLI for Kie.AI - Generate images and videos with multiple AI models.

Supported Models

| Provider | Type | Models | | ----------------- | ----- | --------------------------------------------------- | | Kling | Video | 3.0 (text/image-to-video, multi-shot, 3-15s, sound) | | Veo 3 | Video | veo3 (quality), veo3_fast | | MidJourney | Image | v7, v6.1, v6, v5.2, niji-6, niji-7 | | Nano Banana 2 | Image | nano-banana-2 (up to 4K, Google Search grounding) |

Installation

npm install -g kie-cli

Setup

# Set your API key (interactive, masked input)
kie auth

# Verify current key
kie auth --show

The key is stored in ~/.config/kie/config.json. The KIE_API_KEY environment variable can also be used and takes priority over the stored key.

Quick Start

# Generate a video (default: Kling 3.0, 9:16, 10s, std mode)
kie gen "a cat playing piano"

# Generate and wait for result
kie gen "a sunset over the ocean" --wait

# Generate with Veo 3
kie gen "a cinematic drone shot" --provider veo3

# Generate an image with MidJourney
kie gen "a watercolor cat" --provider midjourney

# MidJourney with style controls
kie gen "cyberpunk city" --provider midjourney --stylization 500 --weirdness 100

# Generate an image with Nano Banana
kie gen "a landscape photo" --provider nano-banana

# Image-to-video
kie gen "animate this scene" --image https://example.com/photo.jpg

# Check task status
kie status abc123

# Check credits
kie credits

Commands

kie gen <prompt>

Generate an image or video.

| Flag | Description | Default | | -------------------- | -------------------------------------------- | ------------- | | -p, --provider | kling, veo3, midjourney, nano-banana | kling | | -m, --model | Model ID (see Model Reference below) | auto | | -a, --aspect-ratio | Aspect ratio | 9:16 | | -d, --duration | Video duration in seconds (kling) | 10 | | -i, --image | Input image URL (image-to-video/img2img) | - | | --sound | Enable sound (kling 3.0) | on | | --mode | Quality: std, pro (kling 3.0) | std | | --negative-prompt | Negative prompt (kling) | - | | --cfg-scale | CFG scale 0-1 (kling) | 0.5 | | --tail-image | End frame image URL (kling) | - | | --seed | Random seed (veo3) | - | | --stylization | Stylization 0-1000 (midjourney) | - | | --weirdness | Weirdness 0-3000 (midjourney) | - | | --variety | Variety 0-100 (midjourney) | - | | --speed | Speed: relaxed, fast, turbo (midjourney) | fast | | --version | MJ version: 7, 6.1, 6, 5.2, niji-6, niji-7 | 7 | | --resolution | 1K, 2K, 4K (nano-banana) | 1K | | --format | jpg, png (nano-banana) | jpg | | --google-search | Google search grounding (nano-banana) | off | | -o, --output | Download directory | ~/Downloads | | --callback | Webhook callback URL | - | | -w, --wait | Poll until generation completes | off |

kie auth

Set your API key interactively (masked input). Use --show to view current key status. Stored in ~/.config/kie/config.json.

kie status <taskId>

Check generation status. Provider is auto-detected from the task ID format.

kie credits

Display remaining API credits.

kie extend <taskId> <prompt>

Extend a Veo 3 video with additional content.

| Flag | Description | Default | | ------------- | ------------------- | ------- | | -m, --model | fast, quality | fast | | --seed | Random seed | - | | --callback | Webhook URL | - | | -w, --wait | Poll until complete | off |

kie upscale <taskId>

Upscale a Veo 3 video to higher resolution.

| Flag | Description | Default | | --------------- | ------------------------ | ------- | | -q, --quality | 1080p, 4k | 1080p | | --index | Video index | 0 | | --callback | Webhook URL (4K only) | - | | -w, --wait | Poll until complete (4K) | off |

Model Reference

Kling

| Model ID | Type | | ----------------- | ---------------------------------------- | | kling-3.0/video | Text/Image-to-video (latest, multi-shot) |

Veo 3

| Model ID | Description | | ----------- | ------------------------- | | veo3_fast | Fast generation (default) | | veo3 | Higher quality |

MidJourney

| Version | Description | | -------- | -------------------- | | 7 | Latest (default) | | 6.1 | Previous stable | | 6 | V6 | | 5.2 | V5.2 | | niji-6 | Anime style (Niji 6) | | niji-7 | Anime style (Niji 7) |

Nano Banana 2

| Model ID | Description | | --------------- | ---------------- | | nano-banana-2 | Image generation |

Defaults

| Setting | Default | | ------------ | -------------------------------------------------- | | Provider | kling | | Aspect Ratio | 9:16 (video providers), 16:9 (image providers) | | Duration | 10 seconds (kling) | | Mode | std (kling) | | MJ Speed | fast | | MJ Version | 7 |

Development

# Install dependencies
npm install

# Run in dev mode
npm run dev -- gen "test prompt"

# Build
npm run build

# Link globally
npm link

License

MIT