所有模型

OpenAI GPT Image 2

openai

openai/gpt-image-2

在控制台打开

OpenAI's native multimodal image model. Strong at photorealism, complex scene composition, and prompt adherence. Accepts reference images for editing and compositing.

输入

图片和提示词

输出

生成图片

工具

MINIMAL

推理

定价

类型每 100 万 token
输入$5.00
输出$30.00

按 token 计费——无最低消费、无单次请求费;支持缓存的供应商自动启用。

快速开始

from openai import OpenAI

client = OpenAI(
    base_url="https://api.vecbase.com/v1",
    api_key="sk-vbc-...",
)

with open("product.jpg", "rb") as image:
    response = client.images.edit(
        model="openai/gpt-image-2",
        image=image,
        prompt="Create a commerce-ready vertical product detail image.",
        size="1024x1024",
        quality="low",
    )

print(len(response.data), response.usage)

准备上线了?

创建项目、生成 API 密钥,然后从任何 OpenAI 兼容客户端调用这个模型。

免费开始