OpenAI: GPT Image 2

openai/gpt-image-2

OpenAI GPT Image 2 API pricing

在Oxyy上,GPT Image 2的输入token价格为每百万$1.00,图像输出token价格为每百万$6.00。 这些是应用当前 60% 折扣后的按量付费价格(Launch Promo; standard price $2.50 input and $15.00 image output), and 缓存的输入 token 按每百万 $0.250 计费. 它根据文本 prompt 生成图片 且可以使用参考图片。 At a typical 3:1 input-to-output token mix, a cheaper OpenAI option is GPT Image 2.6 Flare at token 每 1M 收费 $2.00; 查看所有模型与费率的 OpenAI API 定价.

OpenAI's image generation and editing model with flexible, near-arbitrary output resolutions up to 4K and automatic high-fidelity handling of reference images.

模态文本图片图片
价格$1.00 / $6.00 每 1M 输入 token / 输出图像All OpenAI API 定价
已发布Apr 21, 2026

供应商

此模型的运行位置以及每个路由的费用。请求会自动发送到健康的提供商;如果某个提供商出错,网关会自动重试提供相同模型的另一个提供商。

提供方输入 /M输出 /M缓存读取 /M延迟Throughput
OpenAI$1.00$6.00$0.25021.48s—

功能特性 (12)

Image GenerationImage EditImage MaskInpaintingMulti Image FusionHigh Fidelity InputFlexible Resolution流式传输Moderation ControlBatchPrompt 缓存Image To Image

支持的参数 (10)

sizequalitynbackgroundoutput_formatoutput_compressionmoderationpartial_imagesstreamuser

下方快速入门中显示的终结点自身字段也是必需的;缺少这些字段的请求将被拒绝。

定价

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

输入价格
$1.00
每 1M 个输入 token · standard price $2.50
Image output price
$6.00
每 1M 个图像输出 token · standard price $15.00
费率标准价格已扣费单位
输入$2.50$1.00每 1M 个输入 token
图片输出$15.00$6.00每 1M 个图像输出 token
缓存输入$0.625$0.250每 1M 个缓存输入 token

折扣。 收费费率已包含所有费率的当前 "Launch Promo" 60% 折扣。

UTC

规格

Model ID
gpt-image-2
开发者
OpenAI
类型
图片生成
输入
Text and images
输出
图片
已发布
Apr 21, 2026
分词器
GPT
系列
GPT-Image 2
图片输入
每个最大 20 MB, 16每次请求 · PNG, WebP, JPEG
端点
/v1/images/generations

最适合

Product imageryCreative generationReference based editingMulti image fusion

快速入门

调用 gpt-image-2 通过 POST 请求发送至 /v1/images/generations 开启 https://api.oxyy.ai,使用来自的 Oxyy API key OXYY_API_KEY 环境变量。 同一密钥适用于目录中的所有模型。

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

response = client.images.generate(
    model="gpt-image-2",
    prompt="A lighthouse on a cliff at sunset, watercolor",
    n=1,
    size="1024x1024",
)
print(response.data[0].url)

性能

Throughput 表示模型输出的速度(token/秒 —— 越高越好)。Latency 是总往返时间(越低越好)。TTFT 是首个 token 的生成时间 —— 也就是内容开始显示前的等待时间(越低越好)。Throughput 和 TTFT 是在流式请求上测量的,只有流式请求才有首个 token 的概念。

Throughput
—tok/s
P50,流式请求
延迟
21.48s
P50,端到端
UTC

Throughput

P99—
P95—
P50—

延迟

P5023.8s
P7530.0s
P9542.8s
P9957.6s

首字延迟 (TTFT)

P50—
P95—

缓存命中率

0.00%
在时间窗口内,从 prompt cache 提供的输入 token 占比。

可用性

过去一段时间内成功完成的该模型请求占比 30 天。 调用方取消的请求以及仍在处理中的请求不计入统计。 当上游供应商出错时,网关会自动重试提供同一模型的其他供应商,因此单个供应商的故障不一定会在此处显示。

成功率 (30 天)
79.20%
over 1,525 completed requests
有流量的天数
30
在过去的 30 天内

天数按 UTC 计算。没有完成请求的天数会被省略,而不是显示为 100% —— 无流量并不代表可用性。

活动

该模型随时间推移的 Token 量和请求流量。每日总计,UTC 时间。

Prompt307.0K
Completion5.7M

Prompt token 用于衡量输入大小。 Completion token 反映了总输出长度。此模型的推理不单独定价,因此此处未单列。

常见问题

什么是 GPT Image 2?
OpenAI's image generation and editing model with flexible, near-arbitrary output resolutions up to 4K and automatic high-fidelity handling of reference images.
GPT Image 2 的价格是多少?
在Oxyy上,GPT Image 2的输入token价格为每百万$1.00,图像输出token价格为每百万$6.00。 这些是应用当前 60% 折扣后的按量付费价格(Launch Promo; standard price $2.50 input and $15.00 image output), and 缓存的输入 token 按每百万 $0.250 计费. 按请求付费,无需订阅。
我可以向 GPT Image 2 发送什么?
GPT Image 2接收一条文本prompt and reference images (每个最大 20 MB, 16每次请求 · PNG, WebP, JPEG)并返回images。
GPT Image 2 使用哪个 API 终端节点?
向 https://api.oxyy.ai/v1/images/generations 发送带有 "model": "gpt-image-2" 的 POST 请求,并使用你的 Oxyy API key 进行身份验证。 It is also served on /v1/images/edits, /v1/images/variations, /v1/chat/completions and /v1/responses (Responses API).
GPT Image 2 是什么时候发布的?
GPT Image 2于Apr 21, 2026发布。
OpenAI 还有哪些其他模型?
OpenAI 还通过 Oxyy 提供 GPT-Image-2.5 Flare, GPT-Image-2.5 Sunburst, GPT Image 2.6 Flare and GPT Image 2.6 Sunburst。

替代方案: GPT Image 2

其他供应商提供的同类模型,按价格从低到高排序。在 Oxyy 上按需付费,使用相同的 API Key。

探索更多模型

更多来自以下机构的模型 OpenAI