Image generation model

gpt-image-2-4k

GPT Image 2 4K

GPT Image 2 4K is available by request. Contact sales or request access from your workspace.

Model detailAvailable on requestMoE Transformer

Params

N/A

Context

N/A

Max Output

N/A

License

Vendor Commercial License

API Surface

/v1/images

Access

Available on request

Why pick it

  • Request access before sending production traffic.
  • Pricing is shown when the model is available for your account.

Pricing

TierPublicCachedNote
Realtime$0.032 / jobN/ACurrent published price
Batch$0.032 / jobN/APublished batch rates appear here when available
Current BatchIn list price.

Quick start

This model is not yet open for public testing. Contact the team for the right access path.

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-4k",
    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-4k",
  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-4k",
    "prompt": "A cinematic skyline at sunrise"
  }'

Specs

Architecture

MoE Transformer

Model type

Image generation model

Context window

N/A

Max output

N/A

Best for

openai
limited-preview

Related models

Back to model center
GPT Image 2 4K | BatchIn