EvoLink Best Image
Generate and edit images via the EvoLink Nano Banana Pro (gemini-3-pro-image-preview) API.
Run
Try Python first (zero dependencies, all platforms):
CODEBLOCK0
Options: --size (auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9), --quality (1K, 2K, 4K), INLINECODE2
If Python is unavailable:
- - Windows: see PowerShell fallback in INLINECODE3
- Unix/macOS: use the curl fallback in INLINECODE4
API key
- -
EVOLINK_API_KEY env var (required) - Get key: https://evolink.ai
Triggers
- - Chinese: "高质量生图:xxx" / "编辑图片:xxx"
- English: "best image: xxx" / "edit image: xxx"
Treat the text after the colon as prompt, use default size auto and quality 2K, generate immediately.
For image-to-image or editing, the user provides image URLs alongside the prompt.
Notes
- - Script prints
MEDIA:<path> for OC auto-attach — no extra delivery logic needed. - Image saved locally (format auto-detected from URL: png/jpg/webp). URL expires ~24h but local file persists.
- INLINECODE10 incurs additional charges.
- INLINECODE11 accepts up to 10 URLs (each image ≤10MB, formats: jpeg/jpg/png/webp).
EvoLink 最佳图像
通过 EvoLink Nano Banana Pro(gemini-3-pro-image-preview)API 生成和编辑图像。
运行
优先尝试 Python(零依赖,全平台支持):
bash
python3 {baseDir}/scripts/generate.py --prompt 一只可爱的猫 --size auto
选项:--size(auto、1:1、2:3、3:2、3:4、4:3、4:5、5:4、9:16、16:9、21:9),--quality(1K、2K、4K),--image-urls URL1 URL2 ...
如果 Python 不可用:
- - Windows:参见 {baseDir}/references/powershell.md 中的 PowerShell 备用方案
- Unix/macOS:使用 {baseDir}/references/curl_heredoc.md 中的 curl 备用方案
API 密钥
- - EVOLINKAPIKEY 环境变量(必需)
- 获取密钥:https://evolink.ai
触发词
- - 中文:高质量生图:xxx / 编辑图片:xxx
- 英文:best image: xxx / edit image: xxx
将冒号后的文本视为 prompt,使用默认尺寸 auto 和质量 2K,立即生成。
对于图生图或编辑操作,用户需同时提供图像 URL 和提示词。
注意事项
- - 脚本输出 MEDIA:<路径> 供 OC 自动附加——无需额外传递逻辑。
- 图像保存在本地(格式从 URL 自动检测:png/jpg/webp)。URL 约 24 小时后过期,但本地文件持久保存。
- --quality 4K 会产生额外费用。
- --image-urls 最多接受 10 个 URL(每个图像 ≤10MB,格式:jpeg/jpg/png/webp)。