OpenAI

OpenAI

gpt-image-2

GPT Image 2

GPT Image 2 is listed on the current BatchIn Model API surface.

Model detailAvailableMoE Transformer

Params

N/A

Context

N/A

Max Output

N/A

License

Vendor Commercial License

API Surface

/v1/images

Access

Available

Why pick it

  • Availability is synced from the live service catalog.
  • Pricing appears only when verified by the live service catalog.

Pricing

TierPublicCachedNote
Realtime$2.00 / $12.00N/ACurrent published price
BatchContact us for batchN/APublished batch rates appear here when available
Current pricing synced from the BatchIn catalog.

Quick start

Works with common OpenAI-style integrations. Point your client to the BatchIn base URL and start testing.

Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.batchin.tech/v1",
    api_key="BATCHIN_API_KEY"
)

resp = client.images.generate(
    model="gpt-image-2",
    prompt="A cinematic skyline at sunrise"
)

print(resp.data[0].url)
JavaScript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.batchin.tech/v1",
  apiKey: process.env.BATCHIN_API_KEY,
});

const resp = await client.images.generate({
  model: "gpt-image-2",
  prompt: "A cinematic skyline at sunrise",
});

console.log(resp.data[0]?.url);
cURL
curl https://api.batchin.tech/v1/images \  -H "Authorization: Bearer ***" \  -H "Content-Type: application/json" \  -d '{
    "model": "gpt-image-2",
    "prompt": "A cinematic skyline at sunrise"
  }'

Specs

Architecture

MoE Transformer

Vendor

OpenAI

Context window

N/A

Max output

N/A

Best for

openai
available

Related models

Back to model center
GPT Image 2 | BatchIn