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.012/image
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.012/image
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.

Simple flat pricing

Use a predictable per-image credit cost for product and user-facing workloads.

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"
  }'

Pricing and usage

Clear model options with shared credits.

Per image
12 credits

$0.012/image

Text-to-image
Same rate

One public model ID

Image editing
Same rate

Reference image workflow

What teams build
Product shots
Ad creatives
Thumbnail generation
Image editing
Campaign variants
Creative tooling

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