模型/OpenAI/gpt-image-2
OpenAI

GPT Image 2

文本图像生成
上下文
272K
输入
$8
/M tokens
输出
$15
/M tokens

GPT Image 2 is OpenAI's image generation model, pairing high-fidelity image output with strong prompt adherence and in-context editing.

快速开始

如何调用

POST /v1/images/generations
bash
curl https://conduit-api.bifrostapi.net/v1/images/generations \
  -H "Authorization: Bearer ck-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2","prompt":"a red apple on a wooden table","size":"1536x1024","quality":"high","output_format":"jpeg","n":1}'

→ 返回 data[0].b64_json(base64 图,无 URL)。size 控制画幅比例(横 / 竖 / 方);quality 取 high 或 low;output_format 取 png 或 jpeg。

鉴权 · 计费 · 流式 → 快速接入

来自 OpenAI 的其他模型