All models

OpenAI

GPT Image 2

GPT Image 2 produces one square image. Native output resolution varies by route (1024–1254 pixels).

image
gpt-image-2
Version date 2026-04-21

Our price

$0.007458

per image

Official

Not available

First request

Available
curl https://api.tokely.me/v1/images/generations \
  -H "Authorization: Bearer $TOKELY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-2",
  "n": 1,
  "prompt": "A quiet coastal village at sunrise."
}'

Set TOKELY_API_KEY to your dashboard key. Requests require a funded Tokely balance. Base URL: https://api.tokely.me/v1.

Capabilities & limits

Provider
OpenAI
API model ID
gpt-image-2
Category
Image
Endpoints
POST /v1/images/generations
Output
Image · synchronous response
Supported input
Prompt, Images
Primary route · square image
$0.007458 per image
Alternate route · square image
$0.05 per image

API reference

Authenticate with Authorization: Bearer YOUR_TOKELY_API_KEY. Use your Tokely base URL and API key.

model
Required string: gpt-image-2
prompt (required)
Text, up to 4000 characters
n
Between 1 and 1; whole numbers. Default: 1

Requests are charged to your Tokely balance using the options and rates shown above. Your dashboard records usage.

The response contains the generated image. Save or download the result returned by the API.

400 / 415
Invalid request, parameter, endpoint for this model, or content type.
401 / 403
Invalid, revoked or restricted API key.
402
Insufficient account balance or API key budget.
429
Request limit reached. Retry after the indicated delay.
502 / 503 / 504
Upstream failure, temporary service unavailability or request timeout.

Compare nearby prices

USD for the listed variants with the same billing unit. Generation options can differ; these are not quality benchmarks.
ModelPriceUnitVariant
GPT Image 2OpenAI · this model$0.007458imagePrimary route · square image
Nano Banana 2Google$0.014916imagePrimary route · square image
Nano Banana ProGoogle$0.022373imagePrimary route · square image
Seedream 3.0Doubao$0.029167imageOne bounded generation
Nano BananaGoogle$0.033334imageOne bounded generation

Frequently asked questions

How much does GPT Image 2 cost?

Primary route · square image: $0.007458 per image. Alternate route · square image: $0.05 per image. Usage is charged to your Tokely balance.

Do I need a separate OpenAI account?

Use your Tokely API key and balance. A separate provider key is not required.

How do I switch to this model?

Set model to gpt-image-2 and use /v1/images/generations. Keep your Tokely base URL and API key. Use the parameters listed above for this model.

Related versions

Playground

Explore models in the Tokely Playground.

Open in playground