300 million tokens. $2.99 a month.See the subscription  

model apis · image generation

GPT Image 2 API

Run GPT Image 2 by OpenAI through one OpenAI-compatible endpoint. Pay per use against your deeprelay balance. No instance to rent, no deployment to manage.

Available now

GPT Image 2 API pricing

Live catalog rates, billed per use against your deeprelay balance, no minimums. GPT Image 2 is priced per use rather than included in the $2.99-a-month flat plan.

TierRate
Serverless
Per image: $0.056

rates are read every few minutes from the live model catalog and metered per request

Call GPT Image 2 in one request

Any OpenAI SDK works: set the base URL to https://api.deeprelay.ai/v1 and use your deeprelay API key.

curl
curl https://api.deeprelay.ai/v1/images/generations \
  -H "Authorization: Bearer $DEEPRELAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deeprelay/gpt-image-2",
    "prompt": "A watercolor painting of a data center at sunrise"
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deeprelay.ai/v1",
    api_key="YOUR_DEEPRELAY_API_KEY",
)

image = client.images.generate(
    model="deeprelay/gpt-image-2",
    prompt="A watercolor painting of a data center at sunrise",
)
print(image.data[0].url)

GPT Image 2 on deeprelay

Model iddeeprelay/gpt-image-2
ModalityImage generation
AuthorOpenAI
Context window
Streaming
Aliases
Flat planNot included: pay as you go

faq

GPT Image 2 API questions

How much does the GPT Image 2 API cost?

GPT Image 2 on deeprelay currently costs $0.056 (per image), billed against your deeprelay balance as you go. There are no minimums. It is priced per use rather than included in the $2.99-a-month flat plan, which covers a named set of models.

Is the GPT Image 2 API OpenAI-compatible?

Yes. Point any OpenAI SDK at https://api.deeprelay.ai/v1 with a deeprelay API key and request model "deeprelay/gpt-image-2". No proprietary client needed.

How does billing work?

Generation models bill per output (per image, or per second of video) at the listed rate, metered per request against your deeprelay balance.