OpenAIPaidOperational
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. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Resolutions: 1:1, 2:3, 3:2
Specifications
- Provider
- OpenAI
- Type
- image generation model
What is Gpt Image 2 used for?
- Image generation — marketing visuals, concept art, product shots and illustrations.
Related models
Chatgpt ImageOpenAI · $17.10 / 1MDall E 2OpenAI · $10.00 / 1MDall E 3OpenAI · $20.00 / 1MGpt 3.5OpenAI · $1.71 / 1MGpt 3.5 Turbo 16kOpenAI · $10.26 / 1MGpt 4OpenAI · $6.42 / 1MGpt 4 0125OpenAI · $2.13 / 1MGpt 4 1106OpenAI · $2.13 / 1MGpt 4 32kOpenAI · $205.32 / 1MGpt 4 TurboOpenAI · $2.13 / 1MGpt 4 VisionOpenAI · $2.13 / 1MGpt 4.1OpenAI · $0.30 / 1M
Gpt Image 2 — frequently asked questions
- How much does Gpt Image 2 cost?
- Gpt Image 2 is billed per generation rather than per token. See the pricing page for the current rate.
- What can Gpt Image 2 do?
- Gpt Image 2 is OpenAI's image generation model, accessible through the Api.Airforce API.
- Is Gpt Image 2 free to use?
- Gpt Image 2 is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Gpt Image 2 via the API?
- Gpt Image 2 is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID gpt-image-2 with your Api.Airforce API key.
- Who makes Gpt Image 2?
- Gpt Image 2 is OpenAI's image generation model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
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);