Due to an upstream channel cost increase, all Claude models are now billed at 20% of Anthropic's official API prices (previously 18%), effective immediately. Pricing for other providers is unchanged.View latest pricing
OpenAI

GPT Image 2

Official

openai/gpt-image-2

OpenAI's latest image model. Generates and edits images with strong prompt adherence and text rendering. Token-based billing: text + image input tokens and image output tokens. Use for product imagery, design, and creative assets.

图像生成图像编辑

定价

来源: official_x0.3 · 核验于 2026-06-08

2K $0.0672 / image4K $0.12 / image
输入官方 $5 / 百万 tokens
$1.5/ 百万 tokens3折
¥10.2 / 百万 tokens
输出展示价
/ 百万 tokens

缓存读 $0.375/M · 缓存写 /M

本币价按固定汇率折算(1 美元 = 6.8 CNY),汇率更新于 2026-08-02,仅供参考;计费始终以美元结算。

成本估算

预估费用$0.015

支持协议

  • OpenAI Chat CompletionsStatus: 不支持
  • OpenAI ResponsesStatus: 不支持
  • Anthropic MessagesStatus: 不支持
  • Google Vertex AIStatus: 不支持
  • OpenAI ImagesStatus: 可用https://api.routemux.com/v1
  • OpenAI SoraStatus: 不支持

调用 ID

API 调用时用任一 ID 都可以。

RouteMux 名openai/gpt-image-2

动手试一下

把 ROUTEMUX_KEY 占位符替换为你的 API Key。 创建 →

from openai import OpenAI

client = OpenAI(
    base_url="https://api.routemux.com/v1",
    api_key="<ROUTEMUX_KEY>",
)

response = client.images.generate(
    model="openai/gpt-image-2",
    prompt="A red panda coding under the moonlight",
    n=1,
)
print(response.data[0].url)
base_url: https://api.routemux.com/v1

常见问题

GPT Image 2 是什么?

OpenAI GPT Image 2 — high-fidelity image generation & editing.

GPT Image 2 的 API 价格是多少?

通过 RouteMux 调用 GPT Image 2 的价格为 $9,低于官方定价。

如何通过 API 调用 GPT Image 2?

GPT Image 2 兼容 OpenAI 接口:把 base URL 换成 RouteMux、model 填 openai/gpt-image-2 即可,无需改代码。

GPT Image 2 支持哪些输入输出模态?

GPT Image 2 的输入模态:text, image;输出模态:image。