feat(image): add gpt-image-2 single and multi-image workflows

This commit is contained in:
zhangheng
2026-05-15 19:30:07 +08:00
commit 1e61d7c806
12 changed files with 1716 additions and 0 deletions

12
.env.example Normal file
View File

@@ -0,0 +1,12 @@
OPENAI_API_KEY=your_api_key_here
OPENAI_BASE_URL=https://api.aoixx.com
IMAGE_REQUEST_STYLE=apicodex
IMAGE_MODEL=gpt-image-2
IMAGE_SIZE=1024x1024
IMAGE_PROMPT="Describe the image you want here"
IMAGE_N=1
IMAGE_OUTPUT_STEM=gpt-image-2-multi
IMAGE_RESPONSE_DIR=outputs/image-multi-runs
REFERENCE_IMAGE=./input.png
# Multi-image alternative:
# REFERENCE_IMAGES=["./a.png","./b.png"]