gpt-image-2: image generation model
GPT Image 2 is an OpenAI image-generation model that turns text and reference images into new visuals. Served asynchronously from inside Iran through Hormouz.
- Image output:
- $30/1M tokens
- Image input:
- $8/1M tokens
- Type:
- image
- Image generation
GPT Image 2 is OpenAI's latest image generation and editing model. GPT Image 2 is OpenAI's latest image-generation model. It supports high-fidelity image generation and editing through a dedicated Images API, taking text and reference images and returning generated visuals. It supports a context window of up to 400K tokens.
GPT Image 2 accepts text and image input and returns generated images. It is served through Hormouz behind an asynchronous predictions API. Submit a request, then poll until it is ready. Point your base URL at Hormouz and use a Hormouz key to call it from your existing code.
Pricing is usage-based at $8/M in · $8/M out · $30/M image-output tokens. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.
Quickstart
# Create the prediction, then poll until succeeded
curl -s https://api.hormouz.net/v1/predictions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"version":"openai/gpt-image-2","input":{"prompt":"A beautiful sunset"}}'Specs
| Vendor | OpenAI |
|---|---|
| Type | Image |
| Context window | — |
| Pricing | Image output $30/1M tokens · Image input $8/1M tokens · Text input $5/1M tokensSome providers bill per image by quality: low $0.012 · medium $0.047 · high $0.128 |
| API | predictions |
Code example
# Create the prediction, then poll until succeeded
curl -s https://api.hormouz.net/v1/predictions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"version":"openai/gpt-image-2","input":{"prompt":"A beautiful sunset"}}'import requests
BASE = "https://api.hormouz.net/v1"
H = {"Authorization": "Bearer ng-YOUR_API_KEY", "Content-Type": "application/json"}
r = requests.post(f"{BASE}/predictions", headers=H,
json={"version": "openai/gpt-image-2", "input": {"prompt":"A beautiful sunset"}})
print(r.json()["id"])const BASE = "https://api.hormouz.net/v1";
const res = await fetch(`${BASE}/predictions`, {
method: "POST",
headers: { Authorization: "Bearer ng-YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ version: "openai/gpt-image-2", input: {"prompt":"A beautiful sunset"} }),
});
const { id } = await res.json();Buy the gpt-image-2 API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches gpt-image-2 and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How much does GPT Image 2 cost?
- Billing is usage-based at $8/M in · $8/M out · $30/M image-output tokens. There is no fixed monthly fee. You pay only for what you use, and current rates are shown in the Hormouz dashboard.
- How do I access GPT Image 2 from inside Iran?
- Create an account on Hormouz and generate an API key. Hormouz provides a stable path to GPT Image 2 from inside Iran, with no foreign credit card or circumvention tooling required.
- How do I call GPT Image 2?
- GPT Image 2 runs on an asynchronous predictions API: you submit a prediction with your prompt, then poll until the image is ready. Point your base URL at Hormouz and use a Hormouz key.
- What can GPT Image 2 do?
- GPT Image 2 accepts text and image input and returns generated images. GPT Image 2 is OpenAI's latest image-generation model. It supports high-fidelity image generation and editing through a dedicated Images API, taking text and reference images and returning generated visuals.
- What is GPT Image 2 good for?
- GPT Image 2 works well for product visuals, marketing creative, illustration and iterative image edit-and-refine workflows.
Updated 2026-10-13