- OpenAI
- Images
GPT Image 2 API: pricing, capabilities and setup
GPT Image 2 API through llmbox: illustrations, covers and product visuals from a text prompt.
pay as you go · no subscription · key right after sign-up
How much GPT Image 2 costs
from $0.09 per image
| Resolution | Quality | Price per image |
|---|---|---|
| 1K | low | $0.09 |
| 2K | low | $0.105 |
| 4K | low | $0.12 |
| 1K · default | medium | $0.15 |
| 2K | medium | $0.285 |
| 4K | medium | $0.435 |
| 1K | high | $0.48 |
| 2K | high | $0.945 |
| 4K | high | $1.41 |
Cost calculator
200 pcs
- With llmbox
- from $18.00
Specs
- Inputtext
Endpoints
/v1/images/generations
Setup in three steps
- 01Get a key
Sign up and create an API key in the dashboard.
Get a key → - 02Set the base URL
In any OpenAI-compatible client, point the API address to:
- 03Pass the model id
Put this identifier in the model field:
import base64
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llmbox.cc/v1",
api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.images.generate(
model="openai/gpt-image-2",
prompt="A cat in a spacesuit on the Moon, watercolor",
n=1,
size="1024x1024",
)
with open("image.png", "wb") as f:
f.write(base64.b64decode(resp.data[0].b64_json))What GPT Image 2 is good for
GPT Image 2 is OpenAI's image generation model. OpenAI describes it as a model for fast, high-quality image generation with flexible sizes. On llmbox it creates images from a text prompt and works with the same key as the text models in the catalog.
Through llmbox you call the GPT Image 2 API with one llmbox key and the model ID openai/gpt-image-2 — no separate OpenAI account or OpenAI API key.
What it's good for
GPT Image 2 fits illustrations for articles and newsletters, covers, banners, product-card visuals and draft mockups. One request can return several variants to pick the best one from — useful when a person makes the final choice: an editor, a designer or a user of your product. The flexible sizes OpenAI mentions let one model cover covers, banners and product-card images alike.
A convenient setup is pairing it with a text model: GPT-5.6 Luna or GPT-5.6 Terra turns the user's request into a detailed scene description, and GPT Image 2 draws from it. Both models are called from one client with one key, and spend for both steps shows up in one request log. Image models from other vendors, for comparison, are collected on the image models page.
When to pick another model
- You need a text answer, analysis or JSON — those are tasks for text models such as GPT-5.6 Sol. GPT Image 2 returns only images.
- You need intermediate results while the image is being generated — the image arrives whole, once it's ready.
How to connect
GPT Image 2 is called from the OpenAI SDK or any HTTP client with an llmbox key, using the same client as the text models. Create the key in the API keys section of your dashboard. Generation takes noticeable time, so in a product it's best to run it in the background and save finished images to your own storage. Keep the key on your server: in browser code, any visitor to the page can read it. A sample request and details are in the Images docs.
Pricing and billing
The price is per image. You pay for each image you receive, from a prepaid balance as you go, with no subscription; top up in the Balance section of your dashboard. The cost of every request is in the request log, and totals by day and by model are in the Usage section.
Typical tasks
- Illustrations and covers from a prompt
- Several variants for one task
- Visuals for product cards and mockups
- Images in a pipeline after a text model
GPT Image 2 vs neighbours
| Model | Price |
|---|---|
| GPT Image 2 | from $0.09 |
| Qwen-Image-3.0 Qwen | $0.09 |
Other OpenAI models
Articles about the model

Image generation API: product photos and banners
Image generation API for product cards and banners: use GPT Image 2, Nano Banana Pro and Qwen-Image with one key, plus curl and Python examples and prompt tips.

Images: the price depends on resolution and quality
For GPT Image 2, the price of an image depends on resolution and quality: a draft costs less than a final render. How to pick values and where to find the rate table.

ChatGPT for your team: Open WebUI with llmbox models
Deploy Open WebUI for a team: run it in Docker, connect GPT, Gemini, DeepSeek, and Qwen with one llmbox key, then set up roles and a spend limit.
FAQ
Do I need an OpenAI API key to use GPT Image 2?
No. Create an llmbox key in the API keys section of your dashboard and call image generation in the OpenAI SDK with the llmbox base URL. A sample request is on this page; details are in the Images section of the docs.
What model name do I pass to the API?
openai/gpt-image-2. The same key also works for OpenAI text models and every other model in the catalog.
How is image generation billed?
You pay for each image you receive. The price per image is on this page, and it's deducted from your prepaid balance as you go — there is no subscription.
Can I set the size and quality?
Yes. The allowed size and quality values are defined by the model; how to set them is covered in the Images section of the docs.
Can the model reply with text?
No, GPT Image 2 returns only images. For text, analysis and JSON, use OpenAI text models such as GPT-5.6 Sol — they work with the same key.