API Hop

Image APIs

Compare AI image generation and editing APIs

Compare GPT Image 2, GPT Image 2.5 Flare and Sunburst for image generation and reference-image editing. Review inputs, examples and model-specific pricing.

GPT Image 2 is billed per generated image by resolution. GPT Image 2.5 Flare and Sunburst are billed by actual text and image token usage.

Built for a specific job

Choose an image model for generation or editing

01

GPT Image 2

Generate from a prompt or edit references with model gpt-image-2. Compare resolution-based per-image pricing and the documented reference-input formats.

02

GPT Image 2.5 Flare

Use model gpt-image-2.5-flare for generation or reference-image editing. References must be public HTTP(S) image URLs; usage is billed in text and image tokens.

03

GPT Image 2.5 Sunburst

Use model gpt-image-2.5-sunburst through the GPT Image 2.5 interface. Compare its own token rates and outputs with Flare on your task instead of assuming equal cost or quality.

Billing unit

Image API pricing and billing units

GPT Image 2: USD per generated image. GPT Image 2.5: USD per million billable text and image tokens.

Operational limits

Image integration limits

  • Available resolutions and aspect ratios depend on the selected model.
  • Generated media retention follows the documented API behavior.

Supported image inputs and output settings

Send prompt and model to POST /openai/v1/images/generations. Reference-image editing uses image_urls on that same endpoint; do not substitute a multipart upload or an Images edits request.

GPT Image 2.5 accepts public HTTP(S) reference URLs, while GPT Image 2 has its own reference-input contract. Check model-specific size, quality, output format and image-count settings before reusing a request. Handle complete JSON or SSE according to the selected response mode.

Integration guides

Image generation and editing documentation

Current catalog coverage

Available image models and prices

Compare API IDs, operations, providers, and prices. Check the catalog date and each operation's billing unit before estimating usage costs.

image

GPT Image 2

gpt-image-2
active

Generate images with GPT Image 2.

Provider
OpenAI
Billing unit
image
API formats & endpoints
Supported inputs
Text, reference images
Published capabilities
Image generation

1k

API Hop price

Image
$0.0085 /image

2k

API Hop price

Image
$0.0140 /image

4k

API Hop price

Image
$0.0210 /image

image

GPT Image 2.5 Flare

gpt-image-2.5-flare
active

Generate images with GPT Image 2.5 Flare.

Provider
OpenAI
Billing unit
1M tokens
API formats & endpoints
Supported inputs
Text, reference images
Published capabilities
Image generation

Official price

Text input
$5.0000 /M
Cached text input
$1.2500 /M
Image input
$8.0000 /M
Cached image input
$2.0000 /M
Image output
$30.0000 /M

API Hop price Save 20%

Text input
$4.0000 /M
Cached text input
$1.0000 /M
Image input
$6.4000 /M
Cached image input
$1.6000 /M
Image output
$24.0000 /M

Reference price - not independently verified. Check the publisher's current rates, billing units and applicable terms before comparing costs.

image

GPT Image 2.5 Sunburst

gpt-image-2.5-sunburst
active

Generate images with GPT Image 2.5 Sunburst.

Provider
OpenAI
Billing unit
1M tokens
API formats & endpoints
Supported inputs
Text, reference images
Published capabilities
Image generation

Official price

Text input
$5.0000 /M
Cached text input
$1.2500 /M
Image input
$8.0000 /M
Cached image input
$2.0000 /M
Image output
$30.0000 /M

API Hop price Save 20%

Text input
$4.0000 /M
Cached text input
$1.0000 /M
Image input
$6.4000 /M
Cached image input
$1.6000 /M
Image output
$24.0000 /M

Reference price - not independently verified. Check the publisher's current rates, billing units and applicable terms before comparing costs.

Request example

Image generation request examples

The example below generates a new image with GPT Image 2. For reference-image editing, add image_urls to the JSON generations request according to the selected model documentation. These examples describe integration, not measured image quality.

POST /openai/v1/images/generations
curl -X POST "https://api.apihop.ai/openai/v1/images/generations" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2","prompt":"A precise product illustration","n":1}'

Use the API base URL from your account documentation and replace the example placeholders. Send your API key in the Authorization header; never include it in a URL or committed file.