ModelImage

GPT Image 2

gpt-image-2

OpenAI GPT Image 2 text-to-image generation. Send a prompt through the images generations endpoint and receive generated images; billed per request. Use it for product mockups, marketing assets, illustrations, and any workflow that needs reliable general-purpose image synthesis from text descriptions.

Selected route pricing

Route source: TokenUs

Published rate
$0.011 / request
Billing unit
/ request
Context / Max output
— / —
Live routes
3

On this page

Overview

OpenAI GPT Image 2 text-to-image generation. Send a prompt through the images generations endpoint and receive generated images; billed per request. Use it for product mockups, marketing assets, illustrations, and any workflow that needs reliable general-purpose image synthesis from text descriptions.

Playground

Provider

Selected route pricing $0.011 / request

Request parameters

POST /v1/images

Sample response

No response example is configured. Run the model or add a published sample to view a response.
Agent handoff preview

Providers

Selected provider · TokenUs · $0.011 / request
ProviderPricingLatencyUptimeSupplyRoute
Live
Input $0.011 / request
——Community
Live
Input $0.009 / image
42ms—Verified
Live
Input $4.514 / 1M tokens
Output $27.083
Cache read —
Cache write —
0ms—Verified
Selected pricing · TokenUsUSD / request
Unit price
$0.011

Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.

API

Base URL
https://api.openany.si/v1
POST
/v1/images
Authentication
Authorization: Bearer $OPENANY_API_KEY

Provider

Selected route pricing $0.011 / request

Request parameters

ParameterType / rangeDefault valueRequiredDescription
promptstringA cute cat sitting on a windowsillNoprompt
nnumber1Non

No required parameters returned.

Request example

curl 'https://api.openany.si/v1/images' \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-2",
  "prompt": "A cute cat sitting on a windowsill",
  "n": 1,
  "route": {
    "provider": "TokenUs"
  }
}'

Response example

No response example is configured for this endpoint. Run a request in Playground to see a live response.

Error handling

400Check the model ID and request fields.
429Retry with exponential backoff.
5xxRetry only temporary provider failures.

Examples

Provider

Selected route pricing $0.011 / request

Request example

POST /v1/images
curl 'https://api.openany.si/v1/images' \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-2",
  "prompt": "A cute cat sitting on a windowsill",
  "n": 1,
  "route": {
    "provider": "TokenUs"
  }
}'

Model API questions

How do I call GPT Image 2 through OpenAny?

Use model ID gpt-image-2 with an OpenAny key and the operation published in this model's API tab. The model API base is https://api.openany.si/v1. Confirm the protocol and request schema; model availability does not imply every OpenAI API operation is supported.

How is GPT Image 2 billed?

Compare the published rate and billing unit of the selected provider route. Input, output and cache token rates may differ. Image, audio and video models can use other units. Recorded usage determines the charge under that route's billing contract.

Are Community and Verified routes the same as an official publisher API?

No. Inspect the provider name and supply classification for the specific route. A marketplace listing or a supply label is not a claim of publisher endorsement, identical service or measured uptime. Different route prices may reflect different supply and conditions.

Where do these prices come from, and when were they updated?

Rates come from the provider routes in OpenAny's public model catalog, not an independent quote from the model publisher. The catalog does not supply a price update timestamp. A page or catalog snapshot date is not a price revision date. Compare supply, billing units, tiers and conditions; a lower listed rate alone does not establish equivalent service or explain the price difference.

Use GPT Image 2 with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.