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.

Try playground
$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-2image task
$0.0235/image
Starting price
Text + image
Input
gpt-image-2
Public model

Model capabilities

Built for production API workflows, not one-off demos.

Use GPT Image 2 from the same platform surface as the rest of your video and image stack: API keys, credits, logs, webhooks, and docs stay consistent across providers.

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 workflow

Submit tasks, track progress, and return generated assets.

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"
  }'
What teams build
Product shots
Ad creatives
Thumbnail generation
Image editing
Campaign variants
Creative tooling

Pricing and usage

Clear model options with shared credits.

1K (default)
4.7 credits

$0.0235/image

2K
9.4 credits

$0.047/image

4K
14.1 credits

$0.0705/image

Start building with GPT Image 2 in AI Video API.

Create one API key, use one credit balance, and switch between video and image models without provider-specific plumbing.

Read docs