全部模型
OpenAI

GPT Image 2

✓ 官方 API· 通过OpenAI APIOpenAIMicrosoft Azure OpenAIAzure
在 Playground 中试用

GPT Image 2 是 OpenAI 最先进的图像生成模型,用于快速、高质量的图像生成和编辑。它支持灵活的图像尺寸和高保真的图像输入,接受文本和图像输入并返回图像。它是当前的图像模型,取代了 GPT Image 1 和 GPT Image 1.5。

真正的 OpenAI 模型

相同的权重,相同的 API,相同的回答。我们只改变你的付费方式:一把密钥对接所有厂商,一张账单,无需另开账户。本页的每一个数字都来自 OpenAI 官方页面——你可以自行核对。

厂商官方页面

价格

输入 / 输出 · 每 100 万 token

两个服务提供相同的模型和相同的回答,均按官方价格收费。

OpenAI APIOpenAI

官方价格

$8.00 / $30.00

Microsoft Azure OpenAIAzure

官方价格

$8.00 / $30.00

一张图像:$0.12 至 $0.19

上下文

32,000

支持格式

以上价格按每 100 万 token 计算,这是所有模型的计费单位。图像按其占用的 token 数计费,越大的图像费用越高。

预估费用

1000 个 token 大约相当于 750 个英文单词。

预估总额$31.00

服务方式

标准版

如果服务商不可用,请求会自动重试。

相似的模型

用途相同、价格相近的模型。

我们不会给 token 的价格加价,与厂商收取的价格相同。

在你的代码中使用它

创建 API 密钥
模型:openai/gpt-image-2
main.py
OpenAI 规范 v1.0
from openai import OpenAI

# Works with the official openai package (pip install openai)
client = OpenAI(
    base_url="https://api.flintbeam.com/v1",
    api_key="sk-live-your-api-key"
)

response = client.chat.completions.create(
    model="openai/gpt-image-2",
    messages=[
        {"role": "system", "content": "You are an experienced software engineer."},
        {"role": "user", "content": "Describe the architecture of a distributed cache."}
    ],
    temperature=0.7,
    max_tokens=1500
)

print(response.choices[0].message.content)