wavespeed-cli
Generate, edit, animate, upscale, or transform AI media using the WaveSpeed CLI from Codex. Use when the user asks to create image, video, audio, 3D…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
WaveSpeed CLI
Use the wavespeed CLI to run WaveSpeed image, video, audio, and 3D models. Every generation uses the same flow: search the live catalog, inspect the model schema, then run the model with explicit inputs.
This plugin also starts the WaveSpeed MCP server. Its tools map one-to-one onto the CLI commands below: search_models = wavespeed models, get_model_schema = wavespeed schema, get_price = wavespeed price, upload_file = wavespeed upload, run_model = wavespeed run, get_prediction = wavespeed show, get_balance = wavespeed balance. Prefer the MCP tools for single generations; use the CLI when it is installed and the user wants batch or scripted runs. Both share the same login.
Before Running
Check whether the CLI is available:
wavespeed --version
If it is missing, run this plugin helper:
./plugins/wavespeed-cli/scripts/install-wavespeed-cli.sh
Check auth before generation:
wavespeed status
If the user is not signed in, ask them to run wavespeed login. Do not ask the user to paste an API key into chat. For CI or one-off shells, WAVESPEED_API_KEY may be set in the environment.
Standard Flow
# 1. Search the live catalog.
wavespeed models "nano banana"
wavespeed models --type image-to-video
wavespeed models --type text-to-video
wavespeed models --type text-to-audio
wavespeed models --type text-to-3d
# 2. Inspect dynamic inputs for the selected model.
wavespeed run google/nano-banana-2/text-to-image -h
# 3. Run with --json so Codex can parse outputs.
wavespeed run google/nano-banana-2/text-to-image \
-p "a cyberpunk skyline at golden hour" \
-i aspect_ratio="16:9" \
-i resolution="2k" \
--json
wavespeed run --json returns machine-readable fields such as model, prompt, outputs, saved, elapsed_ms, and raw. Use output URLs directly when the user wants links. Add --download when the user wants local files.
Recommended Starting Models
| Use case | Model |
| --- | --- |
| Text to image | google/nano-banana-2/text-to-image |
| Image edit | google/nano-banana-2/edit |
| Text to video | wavespeed-ai/minimax-h3/text-to-video (cheap open-weights default; bytedance/seedance-2.5/text-to-video for the highest quality) |
| Image to video | wavespeed-ai/minimax-h3/image-to-video (bytedance/seedance-2.5/image-to-video for the highest quality) |
These are defaults, not a fixed list. Browse alternatives with wavespeed models <query> and inspect each selected model before running it.
Files
Local file paths are not automatically uploaded. Upload files first, then pass returned URLs into generation commands.
wavespeed upload ./input.jpg --json
wavespeed run google/nano-banana-2/edit \
-p "replace the background with a sunlit kitchen" \
-i images='["https://..."]' \
--json
Save generated outputs locally:
wavespeed run google/nano-banana-2/text-to-image \
-p "minimal product photo on a glass table" \
--download "./wavespeed-output/{index}.{ext}" \
--json
Project Config
wavespeed init creates wavespeed.json with shared defaults and aliases.
defaultModelletswavespeed run -p "..."omit the model argument.aliasesbundle a model with default inputs.wavespeed aliaseslists configured aliases.- CLI flags override alias defaults.
The CLI never rewrites the user's prompt or inputs.
Pitfalls
- Do not invent model IDs. Confirm with
wavespeed modelsorwavespeed schema <model>. - Prefer
--jsonfor runs, uploads, and any command that will be parsed. - Use structured inputs via
-i key=value; inspect model help for exact names and accepted values. - Some models require uploaded asset URLs, not local paths.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/WaveSpeedAI/codex-plugin-wavespeed-cli/skills/wavespeed-cli/SKILL.md