10.8.x.x ๋์ญ๊ณผ 127.x์์๋ง ์ ๊ทผ ๊ฐ๋ฅ (FastAPI middleware ACL).curl -X POST http://10.8.0.17:8089/generate \
-H "Content-Type: application/json" \
-d '{"prompt": "haru and luna at sunset cafe", "aspect": "16:9", "characters": ["haru", "luna"]}' \
-o output.png
# ์๋ต ํค๋: X-Seed / X-Image-Name / X-Batch-Id / X-Refs / X-Size
| ํ๋ | ํ์ | ์ค๋ช |
|---|---|---|
prompt | str (req) | ์์ด ๋ฌ์ฌ ๊ถ์ฅ, ์ต๋ 2000์ |
aspect | str? | ๋น์จ ํ๋ฆฌ์ (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9) โ width/height๋ณด๋ค ์ฐ์ |
width / height | int? | aspect ์์ ๋ ์ฌ์ฉ (64~2048) |
seed | int? | ์ฌ์์ฐ์ฉ. ์์ ๋๋ ๋ฏธ์ง์ ์ ๋๋ค |
steps | int? | ๊ธฐ๋ณธ 4 (FLUX.2 Klein ๊ถ์ฅ) |
characters | list? | ['haru','luna','mori'] ์ค ์ผ๋ถ โ ํด๋น ์บ๋ฆญํฐ ์ํธ ref ์๋ ์ฒจ๋ถ (Invoke AI flux_kontext ์ฃผ์ ) |
workflow | str? | ๊ธฐ๋ณธ 'flux2_klein_t2i' |
| ํค๋ | ์ค๋ช |
|---|---|
X-Seed | ์ค์ ์ฌ์ฉ๋ seed (์ฌ์์ฐ์ฉ) |
X-Image-Name | JVision ๊ฐค๋ฌ๋ฆฌ image_name (UUID) |
X-Batch-Id | ํ ๋ฐฐ์น ID |
X-Refs | ์ฒจ๋ถ๋ ref image_name (์ฝค๋ง ๊ตฌ๋ถ) |
X-Size | ์๋ต PNG ๋ฐ์ดํธ ์ |
/result/{batch_id} ํด๋ง.{"presets":{"1:1":{"width":1024,"height":1024},"16:9":{"width":1344,"height":768},...}}
{"cached":{"haru":"3393565d-...png","luna":"a0f732a5-...png"},"supported":["haru","luna","mori"]}
character_refs/{char}.png ๊ต์ฒด ํ ํธ์ถ. ์บ์ ๋ฌดํจํ + ์ฌ์
๋ก๋.ํ๋กฌํํธ์ ์บ๋ฆญํฐ ํค์๋ ํฌํจ ์ jv_bridge๊ฐ ์๋์ผ๋ก ์ํธ ์ด๋ฏธ์ง๋ฅผ reference๋ก ์ฒจ๋ถ โ ์ธํ ์ผ๊ด์ฑ ํ๋ณด.
| ์บ๋ฆญํฐ | ํค์๋ |
|---|---|
| haru โ๏ธ | haru, ํ๋ฃจ, blonde twintails, yellow hoodie, sun mark/emblem |
| luna ๐ | luna, ๋ฃจ๋, navy hair/wavy/long, crescent moon necklace, blue knit |
| mori ๐ | mori, ๋ชจ๋ฆฌ, mint-green, heterochromia, violet and gold, card pattern hoodie |
์๋ ์นด์ดํธ๋ discordbot/image_gen.py:_detect_characters()๊ฐ ์ฒ๋ฆฌ. ์๋ ํธ์ถ ์ characters: ["haru","luna"] ๋ช
์.
character_refs/{char}.png โ ์๋ณธ ์บ๋ฆญํฐ ์ํธ (png/jpg/webp)character_refs/_uploaded.json โ JVision ์
๋ก๋ ํ ๋ฐ์ image_name ์บ์workflows/flux2_klein_t2i.json โ ๊ธฐ๋ณธ t2i ์ํฌํ๋ก์ฐ ํ
ํ๋ฆฟํ๊ฒฝ๋ณ์ BRIDGE_ALLOWED_PREFIXES="10.8.,127." โ ์ฝค๋ง ๊ตฌ๋ถ, prefix ๋งค์นญ. ๊ทธ ์ธ ๋ชจ๋ IP๋ 403.