Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DoubaoGen - 火山引擎图像生成器
简介
DoubaoGen 是一个基于火山引擎 API 的 VCP 图像生成插件,支持文生图、图生图、多图融合、组图生成以及动态模型发现。
主要特性
系统要求
安装配置
1. 获取 API 密钥
访问 火山引擎控制台 获取 API 密钥。
2. 配置插件
复制
config.env.example为config.env,填入你的 API 密钥:3. 配置选项
使用方法
查询可用模型
文生图
指定模型生成
图生图
多图融合
组图生成
参数说明
基础参数
commandgeneratepromptmodelresolution1024x1024watermarkfalse命令类型
generatetext2image/t2ieditimage2image/i2icomposemerge/fusiongroupsequential/serieslist_modelsmodels推荐分辨率
1024x10241152x864864x11521280x720720x12802048x20482560x14401K/2K/4K高级参数
seedguidance_scaleimagemax_images技术特性
智能 API 密钥池
插件内置密钥池管理系统:
.doubao_api_cache.json动态模型发现
通过
list_models命令查询火山方舟/api/v3/models接口:refresh: true参数强制刷新缓存返回格式
URL 格式(
DEFAULT_RESPONSE_FORMAT=url)Base64 格式(
DEFAULT_RESPONSE_FORMAT=b64_json)图片自动保存
所有生成的图片都会自动保存到本地:
VCPToolBox/image/doubaogen/安全特性
process.stdout.write+ callback 确保数据完整刷出注意事项
故障排除
常见问题
未配置 API 密钥
config.env文件是否正确配置API 配额用完
.doubao_api_cache.json了解密钥状态模型未找到
list_models命令查看当前可用模型分辨率错误
相关链接
文件结构
更新日志
v2.0.0
v0.1.0
作为 VCPToolBox 插件使用时,根据 VCP 变量命名规则,应在系统提示词中添加:
{{VCPDoubaoGen}}。