WaveSpeed AI Logo
Agent-ready AI CLI

Every WaveSpeed model from your terminal.

One open-source CLI to search models, inspect schemas, estimate cost, run generations, upload inputs, and download outputs.

open sourcenpm installJSON outputagent-native
wavespeed run
~/project $ wavespeed models z-imagescanning live model index...found wavespeed-ai/z-image/turbo~/project $ wavespeed schema wavespeed-ai/z-image/turbo --jsoninputs: prompt, size, seed, output_formatrequired: prompt~/project $ wavespeed price wavespeed-ai/z-image/turbo -p "a product photo"estimated cost: ready~/project $ wavespeed run wavespeed-ai/z-image/turbo -p "a clean product photo" --json --downloadcompleted ./wavespeed-output/0.png
{
"status": "completed",
"outputs": ["https://..."],
"saved": ["./wavespeed-output/0.png"]
}
v0.2.1
--json
--download
No server to run
No MCP setup
Dynamic model help
Works in CI
Install
npm install -g @wavespeed/cli
Authenticate
wavespeed login
Generate
wavespeed run <model_id> -p "your prompt" --json --download
1 CLI
Unified model entry
JSON
Script and agent output
Agent
Codex, Claude Code, Cursor
CI
Automation friendly

One command surface, every model family.

Instead of learning a different interface for each model type, use the same `models`, `schema`, `price`, `run`, `upload`, and `download` commands everywhere.

Text to image

z-image, Nano Banana, FLUX

Image to image

edit, enhance, remix

Text to video

Wan, Kling, Seedance

Image to video

animate a source image

Audio

speech, music, sound

3D

assets and generation tools

The workflow to remember.

Search a model, inspect its live inputs, estimate price, run with JSON, then download files or inspect history.

01
models
wavespeed models z-image

Search models by name, type, category, or popularity.

02
schema
wavespeed schema wavespeed-ai/z-image/turbo

Inspect required inputs before running a model.

03
price
wavespeed price wavespeed-ai/z-image/turbo -p "a product photo"

Estimate cost before generating.

04
run
wavespeed run wavespeed-ai/z-image/turbo -p "a product photo" --json

Run generations with JSON output for scripts and agents.

05
download
wavespeed run wavespeed-ai/z-image/turbo -p "a product photo" --json --download

Save generated files locally.

Core commands, small enough to memorize.

The CLI keeps discovery, execution, files, cost, and history in one predictable tool.

Discover models

Search image, video, audio, 3D, LoRA, and popular models from one CLI.

wavespeed models
wavespeed models --type text-to-video
wavespeed models --type image-to-video
wavespeed models z-image --json

Inspect inputs

Read model schemas before writing prompts or automation scripts.

wavespeed schema <model_id>
wavespeed schema <model_id> --json
wavespeed run <model_id> -h

Run generations

Use one command pattern across text-to-image, image-to-video, editing, audio, and more.

wavespeed run <model_id> -p "your prompt" --json
wavespeed run <model_id> -i size=1024*1024 --download
wavespeed run <model_id> --input-file input.json --json

Upload inputs

Upload local images or media, then pass the returned CDN URL into a model.

wavespeed upload ./input.png --json
wavespeed upload ./a.png ./b.png --json
wavespeed run <model_id> -i image="<url>" -p "animate this image" --json

Download outputs

Save remote URLs or generation outputs into predictable local folders.

wavespeed download <url> -o ./output.png
wavespeed download <url1> <url2> --output-dir ./outputs
wavespeed show <prediction_id> --download

Check cost and history

Estimate price, inspect balance, and revisit completed predictions.

wavespeed balance --json
wavespeed price <model_id> -p "your prompt"
wavespeed history --limit 10 --json

Built for AI agents.

Codex, Claude Code, Cursor, and other coding agents can discover models, inspect schemas, run generations, and parse JSON outputs directly from the terminal.

Find a model with wavespeed models
Inspect parameters with wavespeed schema
Estimate cost with wavespeed price
Run with --json so the agent can parse outputs
Add --download when local files are needed
wavespeed skill install
wavespeed models --type text-to-image --popular
wavespeed schema <model_id>
wavespeed run <model_id> -p "your prompt" --json --download

Script it like any other command.

Use `execFile`, parse stdout, and keep generated URLs or downloaded file paths in your own workflow.

import { execFile } from "node:child_process";
import { promisify } from "node:util";

const execFileAsync = promisify(execFile);
const { stdout } = await execFileAsync("wavespeed", [
  "run",
  "wavespeed-ai/z-image/turbo",
  "-p",
  "a clean product photo",
  "--json",
  "--download"
]);

const result = JSON.parse(stdout);
console.log(result.outputs);
console.log(result.saved);

Project defaults stay with the repo. Secrets stay local.

Keep shared defaults in `wavespeed.json`. Keep API keys in local CLI config or environment secrets.

Initialize

Start with a shared `wavespeed.json`, then run without repeating the model ID.

wavespeed init -y
wavespeed run -p "a product photo" --json --download
Team defaults
Local secrets
Reusable aliases
Download folder

Alias

Package repeatable model settings behind a short command name.

{
  "defaultModel": "google/nano-banana-2/text-to-image",
  "outputDir": "wavespeed-output",
  "aliases": {
    "hero": {
      "model": "wavespeed-ai/z-image/turbo",
      "input": {
        "size": "1024*1024",
        "output_format": "png"
      }
    }
  }
}

Frequently Asked Questions

WaveSpeed CLI is the wavespeed command line tool for running WaveSpeed models from a terminal, script, CI job, or AI coding agent.

The same workflow can call text-to-image, image-to-image, text-to-video, image-to-video, audio, 3D, LoRA, and other WaveSpeed models.

--json gives Codex, Claude Code, Cursor, scripts, and CI jobs structured output they can parse reliably.

Keep API keys in local CLI configuration or environment-specific secrets. Do not commit keys to git, README files, or frontend code.

Ready to Experience Lightning-Fast AI Generation?