ergon
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseergon - AI Media Generation CLI
ergon - AI媒体生成CLI
Note: Run withif not installed globally.npx ergon
注意: 如果未全局安装,请使用运行。npx ergon
Quick Reference
快速参考
bash
npx ergon image gen "<prompt>" -t <style> -a <ratio> # Image generation
npx ergon image edit <file> "<instruction>" # Image editing
npx ergon video gen "<prompt>" [-i <image>] # Video with audio
npx ergon narration gen "<text>" -c "<character>" # Voice generationbash
npx ergon image gen "<prompt>" -t <style> -a <ratio> # 图片生成
npx ergon image edit <file> "<instruction>" # 图片编辑
npx ergon video gen "<prompt>" [-i <image>] # 带音频的视频生成
npx ergon narration gen "<text>" -c "<character>" # 语音生成Image Generation
图片生成
bash
npx ergon image gen [options] <theme>bash
npx ergon image gen [options] <theme>Style Selection Guide
风格选择指南
| Use Case | Style ( | Aspect ( |
|---|---|---|
| Product photo, landscape | | 16:9, 4:3 |
| Character, mascot | | 1:1, 3:4 |
| Icon, logo | | 1:1 |
| Art, poster | | varies |
| Game asset | | 1:1 |
| Business, presentation | | 16:9 |
| Concept sketch | | varies |
| 使用场景 | 风格 ( | 宽高比 ( |
|---|---|---|
| 产品照片、风景 | | 16:9, 4:3 |
| 角色、吉祥物 | | 1:1, 3:4 |
| 图标、Logo | | 1:1 |
| 艺术作品、海报 | | 多种可选 |
| 游戏资产 | | 1:1 |
| 商务、演示 | | 16:9 |
| 概念草图 | | 多种可选 |
Options
选项
| Option | Values | Default |
|---|---|---|
| realistic, illustration, flat, anime, watercolor, oil-painting, pixel-art, sketch, 3d-render, corporate, minimal, pop-art | flat |
| 16:9, 4:3, 1:1, 9:16, 3:4 | 16:9 |
| tiny, hd, fullhd, 2k, 4k | fullhd |
| imagen4, imagen4-fast, imagen4-ultra | imagen4 |
Examples:
bash
npx ergon image gen "cute cat mascot for tech startup" -t anime -a 1:1
npx ergon image gen "professional team meeting in modern office" -t corporate -a 16:9
npx ergon image gen "abstract geometric logo" -t minimal -a 1:1 -o logo.png| 选项 | 可选值 | 默认值 |
|---|---|---|
| realistic, illustration, flat, anime, watercolor, oil-painting, pixel-art, sketch, 3d-render, corporate, minimal, pop-art | flat |
| 16:9, 4:3, 1:1, 9:16, 3:4 | 16:9 |
| tiny, hd, fullhd, 2k, 4k | fullhd |
| imagen4, imagen4-fast, imagen4-ultra | imagen4 |
示例:
bash
npx ergon image gen "cute cat mascot for tech startup" -t anime -a 1:1
npx ergon image gen "professional team meeting in modern office" -t corporate -a 16:9
npx ergon image gen "abstract geometric logo" -t minimal -a 1:1 -o logo.pngImage Editing
图片编辑
bash
npx ergon image edit [options] <file> <prompt>Edit instructions in natural language:
- Background change: "change background to sunset beach"
- Style transfer: "make it look like watercolor painting"
- Object removal: "remove the person on the left"
- Color adjustment: "make colors more vibrant"
bash
npx ergon image edit photo.jpg "change background to blue sky"
npx ergon image edit portrait.png "convert to anime style"bash
npx ergon image edit [options] <file> <prompt>使用自然语言输入编辑指令:
- 背景更换:"change background to sunset beach"
- 风格迁移:"make it look like watercolor painting"
- 对象移除:"remove the person on the left"
- 色彩调整:"make colors more vibrant"
bash
npx ergon image edit photo.jpg "change background to blue sky"
npx ergon image edit portrait.png "convert to anime style"Video Generation (with Audio)
视频生成(含音频)
Veo 3.1 generates videos with synchronized audio. Include audio/sound instructions directly in the prompt.
bash
npx ergon video gen [options] <theme>Veo 3.1可生成带同步音频的视频。可在提示词中直接包含音频/音效说明。
bash
npx ergon video gen [options] <theme>Prompt Structure for Audio-Video
音视频提示词结构
Include sound descriptions in your prompt:
bash
undefined在提示词中包含音效描述:
bash
undefinedSound effects included
包含音效
npx ergon video gen "cat meowing and playing with a ball, soft purring sounds"
npx ergon video gen "cat meowing and playing with a ball, soft purring sounds"
Music/ambient audio
音乐/环境音
npx ergon video gen "sunset timelapse over ocean, with calming wave sounds and soft piano music"
npx ergon video gen "sunset timelapse over ocean, with calming wave sounds and soft piano music"
Dialogue/voice
对话/语音
npx ergon video gen "person saying 'welcome to our channel' with friendly tone, waving at camera"
undefinednpx ergon video gen "person saying 'welcome to our channel' with friendly tone, waving at camera"
undefinedImage-to-Video
图片转视频
Animate a static image with motion and sound:
bash
npx ergon video gen "character starts dancing to upbeat music" -i character.png
npx ergon video gen "logo reveals with whoosh sound effect" -i logo.png为静态图片添加动画效果和音效:
bash
npx ergon video gen "character starts dancing to upbeat music" -i character.png
npx ergon video gen "logo reveals with whoosh sound effect" -i logo.pngOptions
选项
| Option | Values | Default |
|---|---|---|
| image file | - |
| 5-8 seconds | 8 |
| 16:9, 9:16 | 16:9 |
| use Veo 3.1 Fast | false |
Vertical video for TikTok/Reels:
-a 9:16| 选项 | 可选值 | 默认值 |
|---|---|---|
| 图片文件 | - |
| 5-8秒 | 8 |
| 16:9, 9:16 | 16:9 |
| 使用Veo 3.1 Fast | false |
适用于TikTok/Reels的竖版视频:
-a 9:16Narration Generation
旁白语音生成
For voice-only audio without video, use narration command.
bash
npx ergon narration gen [options] <text>若仅需语音音频无需视频,请使用旁白命令。
bash
npx ergon narration gen [options] <text>Character and Acting Direction
角色与表演风格设置
Use (character) and (direction) for expressive voice:
-c-dbash
undefined使用(角色)和(风格)参数生成富有表现力的语音:
-c-dbash
undefinedCharacter defines WHO is speaking
角色定义说话者身份
npx ergon narration gen "Let's go on an adventure!" -c "energetic young girl"
npx ergon narration gen "Let's go on an adventure!" -c "energetic young girl"
Direction defines HOW they speak
风格定义说话方式
npx ergon narration gen "The results are in..." -c "news anchor" -d "serious, building suspense"
npx ergon narration gen "The results are in..." -c "news anchor" -d "serious, building suspense"
Combined for full expression
组合参数实现完整表达
npx ergon narration gen "Yay! We did it!" -c "excited child" -d "jumping with joy, high energy"
undefinednpx ergon narration gen "Yay! We did it!" -c "excited child" -d "jumping with joy, high energy"
undefinedVoice Selection
语音选择
| Voice | Character |
|---|---|
| Kore | Female, versatile (default) |
| Aoede | Female, warm |
| Charon | Male, deep |
| Fenrir | Male, strong |
| Puck | Neutral, playful |
| 语音名称 | 角色设定 |
|---|---|
| Kore | 女性,多风格(默认) |
| Aoede | 女性,温暖 |
| Charon | 男性,低沉 |
| Fenrir | 男性,有力 |
| Puck | 中性,活泼 |
Options
选项
| Option | Values | Default |
|---|---|---|
| Kore, Aoede, Charon, Fenrir, Puck | Kore |
| character description | - |
| acting direction | - |
| 0.25-4.0 | 1.0 |
| ja, en, zh, ko, etc. | ja |
| 选项 | 可选值 | 默认值 |
|---|---|---|
| Kore, Aoede, Charon, Fenrir, Puck | Kore |
| 角色描述 | - |
| 表演风格 | - |
| 0.25-4.0 | 1.0 |
| ja, en, zh, ko, etc. | ja |
Workflow Patterns
工作流模式
Generate, then Edit
先生成再编辑
bash
npx ergon image gen "product photo of headphones" -t realistic
npx ergon image edit headphones.png "add soft shadow, white background"bash
npx ergon image gen "product photo of headphones" -t realistic
npx ergon image edit headphones.png "add soft shadow, white background"Image to Animated Video
图片转动画视频
bash
npx ergon image gen "mascot character standing" -t anime -a 1:1
npx ergon video gen "mascot waves and says hello cheerfully" -i mascot.pngbash
npx ergon image gen "mascot character standing" -t anime -a 1:1
npx ergon video gen "mascot waves and says hello cheerfully" -i mascot.pngPreview Before Generation
生成前预览
bash
npx ergon image gen "complex scene" --dry-run # Check settings
npx ergon video gen "expensive render" --dry-run # Verify before API callbash
npx ergon image gen "complex scene" --dry-run # 检查设置
npx ergon video gen "expensive render" --dry-run # API调用前验证Common Options
通用选项
All commands support:
- - JSON output for scripting
--json - - Preview settings without API call
--dry-run - - Specify output path
-o, --output <path>
所有命令均支持:
- - 输出JSON格式用于脚本编写
--json - - 预览设置而不调用API
--dry-run - - 指定输出路径
-o, --output <path>