OpenAIPaid

Gpt Image 2

API model name: gpt-image-2

Gpt Image 2 is OpenAI's image generation model, served on the Api.Airforce unified API. Capabilities include Vision. It is priced at $30.00 per million input tokens and $30.00 per million output tokens. Access it through the OpenAI-compatible API with one key, alongside 65+ other models on Api.Airforce.

Pricing

Input / 1M tokens
$30.00
Output / 1M tokens
$30.00

Specifications

Provider
OpenAI
Type
image generation model

Capabilities

VisionStreaming

Use Gpt Image 2 via the API

OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass gpt-image-2 as the model.

cURL
curl https://api.airforce/v1/images/generations \
  -H "Authorization: Bearer $AIRFORCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "a red panda coding"
  }'
Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
img = client.images.generate(model="gpt-image-2", prompt="a red panda coding")
print(img.data[0].url)
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const img = await client.images.generate({ model: "gpt-image-2", prompt: "a red panda coding" });
console.log(img.data[0].url);

Live performance

Real throughput and latency across the suppliers serving this model.

Loading live metrics…

Related models