All models

OpenAI: GPT Image 2

No training

GPT Image 2 is an OpenAI image model for high-fidelity generation and editing. It is suited to creating new visuals and refining existing images through the Images API.

Modalities

Price per image

1K$0.02 / imageList $0.2090% off2K$0.02 / imageList $0.2090% off4K$0.0952 / imageList $0.2052% off

Context

-

Released

Apr 21, 2026

Call the GPT Image 2 API

Model ID gpt-image-2 · replace <ATR_API_KEY> with your API key

Get an API key

OpenAI-compatible

curl https://api.apitokenrouter.com/v1/images/generations \
  -H "Authorization: Bearer <ATR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2","prompt":"An orange cat typing on a keyboard, illustration style"}'

Providers

API Token Router routes by health and cost within the discount range and provider list you configured. When one returns an error we fall through to the next best — you don't pick a provider in the request. Configure discount range

Need a specific set of providers?

ProviderContextInputOutputCacheLatencyThroughputNo training
OpenAIPer image1K$0.02 / imageList $0.2090% off2K$0.02 / imageList $0.2090% off4K$0.0952 / imageList $0.2052% off————No training
Azure OpenAIPer image1K$0.02 / imageList $0.2090% off2K$0.02 / imageList $0.2090% off4K$0.0952 / imageList $0.2052% off————No training

Uptime

API Token Router continuously probes every provider and falls through to the next best one on error.

Uptime (24h)

—

Uptime (3d)

—

Uptime, last 3 days

—

-72h-48h-24hNow

Uptime, last 24 hours

One line per upstream provider, taking the best success rate among that provider's channels. The API Token Router line counts only the final attempt of each request — the end-to-end result after all fallbacks.

    AVAILABILITY · LAST 24H · API TOKEN ROUTER GATEWAY

    Data security

    API Token Router does not use your data to train models.

    For the full data-security policy, learn more.

    Need to pick your own providers? .

    Quickstart

    from openai import OpenAI
    
    client = OpenAI(
        base_url="https://api.apitokenrouter.com/v1",  # the only line that changes
        api_key="<ATR_API_KEY>",
    )
    response = client.chat.completions.create(
        model="gpt-image-2",
        messages=[{"role": "user", "content": "Hello"}],
    )
    print(response.choices[0].message.content)

    Endpoint: https://api.apitokenrouter.com/v1

    About GPT Image 2

    GPT Image 2 is a OpenAI model. On API Token Router its model ID is gpt-image-2, and the same API Token Router API key works for it and every other model. Setup steps are in the API docs.

    Model ID
    gpt-image-2
    Provider
    OpenAI
    Official list price
    $0.20 per image
    Released
    Apr 21, 2026

    More OpenAI models

    Use the GPT Image 2 API

    Point the base URL at API Token Router and use gpt-image-2 as the model name; nothing else changes. Python example:

    from openai import OpenAI
    
    client = OpenAI(
        base_url="https://api.apitokenrouter.com/v1",  # the SDK appends /images/generations automatically
        api_key="<ATR_API_KEY>",
    )
    response = client.images.generate(
        model="gpt-image-2",
        prompt="An orange cat typing on a keyboard, illustration style",
    )
    print(response.data[0].b64_json)

    All parameters: GPT Image 2 API docs.

    GPT Image 2 FAQ

    What is the GPT Image 2 API model ID?
    The model ID is gpt-image-2. The OpenAI-compatible base URL is https://api.apitokenrouter.com/v1.
    How much does the GPT Image 2 API cost?
    The official list price of GPT Image 2 is $0.20 per image. API Token Router bills per use with no monthly fee; see the price table on this page for the current discounted price.
    How do I pay for the GPT Image 2 API?
    New accounts start with a $0 balance. Top up from $5 by card in the API Token Router dashboard, then usage is deducted per request, with no subscription. Top up.
    Can I pay for the GPT Image 2 API with USDT?
    Yes. In the top-up dialog, click "Pay with crypto" and send USDT, USDC or ETH from Binance, OKX or any wallet. The minimum is $5 and no browser extension is needed. Step by step: how to pay for the API with USDT.