OpenAI image generation

GPT Image 2 API

Generate and edit images with GPT Image 2 through one API.

GPT Image 2 supports prompt-only image generation and reference-image editing behind one public model ID. It shares the same API key, credit balance, task logs, and operational model catalog as your video workflows.

$0.0235/image
Starting price
Text + image
Input
gpt-image-2
Public model
OpenAI
GPT Image 2 demo 1
GPT Image 2 demo 2
GPT Image 2 demo 3
GPT Image 2 demo 4
gpt-image-2图片任务
$0.0235/image
Starting price
Text + image
Input
gpt-image-2
Public model

模型能力

为生产级 API 工作流设计,不只是演示。

GPT Image 2 与你接入的其他视频和图片模型共用同一套 API Key、积分、日志、Webhook 和文档体系。

Text-to-image output

Create product visuals, illustrations, thumbnails, and campaign concepts from prompts.

Reference-image editing

Use input images to guide composition, product identity, or transformation tasks.

Resolution-based pricing

Pay per resolution tier — 1K, 2K, or 4K — and match cost to the quality your workload needs.

Shared billing balance

Run image and video generation through the same credits and account controls.

API 工作流

提交任务、跟踪进度、取回生成结果。

01

Send prompt and references

Use one public model ID for generate and edit workflows.

02

Track async task

Poll task status or handle completion callbacks.

03

Use returned assets

Store or display generated images in your application.

POST /v1/images/generations
curl -X POST https://api.aivideoapi.ai/v1/images/generations \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A clean studio product image on a neutral background"
  }'
典型应用场景
Product shots
Ad creatives
Thumbnail generation
Image editing
Campaign variants
Creative tooling

定价与用量

清晰的模型选项,共享积分余额。

1K (default)
4.7 credits

$0.0235/image

2K
9.4 credits

$0.047/image

4K
14.1 credits

$0.0705/image

在 AI Video API 上开始使用 GPT Image 2。

一个 API Key、一份积分余额,在视频和图片模型之间无缝切换,无需为每家供应商单独接入。

阅读文档