Appearance
Site language
Price currency
OpenAI · Picture

GPT Image 2 API

GPT Image 2 is an image generation model by OpenAI. On Evrona you call it with the same API key and balance as every other model in the catalog. Capabilities: image editing. Requests go to the OpenAI-compatible /v1/images/generations.

Model ID
openai/gpt-image-2
Developer
OpenAI
Type
Picture
Capabilities
Image editing

GPT Image 2 pricing

Billed forPrice
Input tokens, per 1M$1.42
Output tokens, per 1M$8.55

Accounting inside the service is in USD; EUR prices are recalculated at the current rate and may change.

GPT Image 2 request example

Use https://evrona.ru/v1 as the base URL and pass openai/gpt-image-2 in the model field. You create the key in your account after signing up.

curl request

curl
curl https://evrona.ru/v1/images/generations \
  -H "Authorization: Bearer ev-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-image-2",
    "prompt": "A lighthouse on a rocky shore at sunset, watercolor",
    "n": 1
  }'

Python with the official OpenAI SDK

Python
from openai import OpenAI

client = OpenAI(
    base_url="https://evrona.ru/v1",
    api_key="ev-YOUR_KEY",
)

image = client.images.generate(
    model="openai/gpt-image-2",
    prompt="A lighthouse on a rocky shore at sunset, watercolor",
    n=1,
)
print(image.data[0])

Start using GPT Image 2 with Evrona

Sign up, top up your balance and create a key. The same key works for GPT Image 2 and every other model in the catalog.

All models in the catalog