GPT-5.6 发布 🎉 GPT 全系 8 折 🎉 直降 20% 整个 7 月 🔥查看详情
OfoxAI × 万事达卡 🎉 开卡刷卡送 $50 Token 代金券 · 限量 1000 份查看详情
OpenAI

OpenAI: GPT Image 2

Image Generation8 折
openai/gpt-image-2

GPT-image-2 is OpenAI's latest cutting-edge image generation model. Key value adds include better performance, quality, editing controls, and face preservation. The model supports high input_fidelity and adding/removing one aspect of the image while retaining others. This model includes improvements in aspect ratio, resolution, and editing capabilities.

上下文窗口
0
最大输出 Token
0
发布日期
2026-04-21
能力
视觉提示缓存
可用供应商
OpenAIOpenAI
支持的协议
OpenAIopenai

供应商

OpenAIOpenAI
8 折
输入 Token
$4/M
$5/M
输出 Token
$24/M
$30/M
缓存读取
$1/M
$1.25/M
图像输入
$8/M
缓存图像
$1.6/M
$2/M
输出图像
$30/M
接入协议
OpenAIopenai/v1/images/generations

代码示例

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.ai/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.images.generate(
model="openai/gpt-image-2",
prompt="A beautiful sunset over mountains",
size="1024x1024",
)
print(response.data[0].url)

常见问题

OpenAI: GPT Image 2 在 Ofox.ai 上的价格为输入 $5/M/百万 Token,输出 $30/M/百万 Token。按量计费,无月费。