Image generation model

gpt-image-2-4k-auto

GPT Image 2 4K Auto

GPT Image 2 4K Auto 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

  • Available in the current product catalog.
  • Pricing is shown when the model is available for your account.

Pricing

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

Quick start

This model is enabled for self-serve access in the multimodal workspace, with task status, cost, and receipts.

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-auto",
    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-auto",
  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-auto",
    "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
available

Related models

Back to model center