Skip to main content
GPT Image 2

GPT Image 2

OpenAI's state-of-the-art image generation model for high-quality creation and editing with text and image inputs.

Image GenerationImage EditingState of the Art

Input Types

Text + image

Generate or edit from either input type

Output

Image

Fast, high-quality visual output

Streaming

Not supported

Image jobs return completed outputs

Model Snapshot

gpt-image-2

Default alias

模型代码gpt-image-2

试玩区

gpt-image-2
参考图片0/14

Click or drag

分辨率 (sent to backend)

Aspect Ratio (sent to backend)

Quality (sent to backend)

Output format (sent to backend)

暂无输出

定价

ModalityInputCached InputOutput
Text$45.9$5 / 1M tokens10% off$1.1259$1.25 / 1M tokens10% off-
Image$72.9$8 / 1M tokens10% off$18.9$2 / 1M tokens10% off$270.9$30 / 1M tokens10% off

Text Input · $4.5 · 1M tokens

Text Cached · $1.125 · 1M tokens

Image Input · $7.2 · 1M tokens

Image Cached · $1.8 · 1M tokens

Image Output · $27 · 1M tokens

README

GPT Image 2 is OpenAI's latest image model, designed for fast, high-quality image generation and editing with flexible sizes, strong instruction following, and high-fidelity image input support.
  • OpenAI describes GPT Image 2 as its state-of-the-art image generation model for fast, high-quality generation and editing.
  • The model supports text and image inputs, image outputs, flexible image sizes, and high-fidelity image inputs for editing workflows.
  • OpenAI's image guide positions GPT Image 2 as the current recommended model for production image generation and editing use cases.

API

查看 API 文档以获取请求格式、参数说明和集成方式。

OpenAI's state-of-the-art image generation model for high-quality creation and editing with text and image inputs.

模型代码

gpt-image-2

查看 API 文档

API

端点

POST /v1/images/generations

认证

Authorization: Bearer YOUR_REACH_API_KEY

示例

curl -X POST "https://direct.reachapi.ai/v1/images/generations" \
  -H "Authorization: Bearer YOUR_REACH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A precise editorial product shot of a cobalt blue mechanical keyboard on a slate desk"
  }'

相关模型

同一厂商的其他模型