Add .env file

This commit is contained in:
2026-01-03 20:02:36 +08:00
parent 282608a482
commit ab14a4e036
2 changed files with 26 additions and 1 deletions

25
.env Normal file
View File

@@ -0,0 +1,25 @@
# 速创API配置
API_KEY=G9rXx3Ag2Xfa7Gs8zou6t6HqeZ
API_BASE_URL=https://api.wuyinkeji.com
# 生图接口
GENERATE_API=/api/img/nanoBanana-pro
# 查询接口根据实际API文档调整
QUERY_API=/api/img/query
# 图片配置
SOURCE_IMAGE_URL=https://test.fukit.cn/autoupload/fr/oRqOn_bHTFAUPpBiITHQh3601oMrbcl2K9AGanrQpheyl5f0KlZfm6UsKj-HyTuv/20260103/pnJi/1500X1998/P1191464.JPG
#https://your-image-host.com/P1191464.JPG
# 或者如果使用本地图片,需要先上传到图床服务
# 生成配置
IMAGE_SIZE=2K
ASPECT_RATIO=1:1
# 查询间隔(毫秒)
QUERY_INTERVAL=10000
# 最大查询次数
MAX_QUERY_COUNT=120

2
.gitignore vendored
View File

@@ -1,5 +1,5 @@
node_modules/
.env
#.env
*.log
.DS_Store
img_2/*.jpg