STANDBY · 待机 ImageAPI · gpt-image-2
№ 002 · VOL. Ⅰ An Editorial Console for Image Synthesis
Local · Single-Page · Self-Hosted

IMAGE
GEN·ERATION
STUDIO.

A self-contained printing press
for the gpt-image-2 image API
—— text→image · image→image 一份本地的 gpt-image-2 图像调用台
支持文生图、图片编辑、流式预览、所有官方参数

“Where photons would have been silver halide, here they are tokens — a printing press of latent pixels, cast frame by frame from joyda.”

01

Connection·连接

fixed endpoint · bearer auth
Fixed API Endpoint admin
https://joyda.store
API 地址由管理员固定。未来部署到 figure.joyda.store 等域名时,可由管理员通过配置或代码调整此端点,用户不能在页面中编辑。
需支持图像调用。由管理员下发;本地仅存于浏览器 localStorage。
仅 `gpt-image-2` 已注册;快照 ID 不可用。
前端应部署在已允许的域名(例如 figure.joyda.store),并调用管理员固定的图像 API 端点。若出现 "Failed to fetch",通常需要管理员检查允许域名、CORS 与 Authorization 请求头配置。
02

Mode·模式

/v1/images/{generations|edits}
03

Prompt·提示词

≤ 32,000 chars
0 / 32000
未来夜景 柴犬书店 孟菲斯海报 中式山水 产品摄影 同人插画
05

Parameters·参数

upstream constraints applied
16 倍数 · ≤3840 · 比例 ≤3:1
transparent 不支持,会被上游报错
90
仅对 jpeg / webp 生效(0–100)
注意:url 仅是 data: URL,不是 CDN
官方建议 gpt-image-2 省略此参数
06

Streaming·流式

SSE · text/event-stream
启用流式
2
流式下中间帧数量 1–3
提示
目前对于流式SSE的支持并不完善
07

Execute·执行

press to develop
IDLE · 就绪
08

Output·结果

latest · partial frames · usage
The press is loaded. Awaiting the first impression. 尚未出图 · 提交后此处显示

Metadata

status
endpoint
size
quality
background
format
in_tokens
out_tokens
total_tokens
elapsed
// log · 等待请求…