Hormouz AIHormouz AIHormouzSign in

GPT-5 Image Mini: AI model

GPT-5 Image Mini is an OpenAI image-generation model that turns text and reference images into new visuals. Served asynchronously from inside Iran through Hormouz.

Context window:
400,000 tokens
Input:
$2.5/1M tokens
Output:
$2/1M tokens
Type:
text, image
  • Vision
  • Streaming
  • Long context

Thinking levels: Always thinks

GPT-5 Image Mini is a compact multimodal model pairing GPT-5 Mini language skills with efficient image generation. GPT-5 Image Mini is a lighter, more efficient image-generation model for text-and-image input, aimed at cost-sensitive visual workloads. It supports a context window of up to 400K tokens, with training data through Sep 2024.

GPT-5 Image Mini 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: $2.5 per million input tokens and $2 per million output tokens. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.

GPT-5 Image Mini combines OpenAI's advanced language capabilities, powered by GPT-5 Mini, with GPT Image 1 Mini for efficient image generation. This natively multimodal model features superior instruction following, text...

This model is not available and will be removed soon

It cannot generate images. To generate and edit images, use: openai/gpt-image-2

Quickstart

# The image comes back as a data: URI on message.images, not as text.
URL=$(curl -s https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5-image-mini",
    "modalities": ["image", "text"],
    "messages": [{"role": "user", "content": "A red apple on a wooden table"}]
  }' | jq -r '.choices[0].message.images[0].image_url.url')

# Take the extension from the URI itself — this model may answer png or jpeg.
EXT=$(printf '%s' "$URL" | sed -n 's|^data:image/\([a-z]*\);.*|\1|p')
printf '%s' "$URL" | sed 's/^data:[^,]*,//' | base64 -d > "output.${EXT:-png}"

Specs

VendorOpenAI
TypeText, Image
Context window400,000 tokens
Pricing$2.50/M in · $2.00/M out
APIChat Completions
CapabilitiesStreaming · Vision
Graphic Design
Top 81%
1,168Elo
Win rate: 47.7%Avg time: 45.3s
Image
Top 81%
1,186Elo
Win rate: 51%Avg time: 42.4s
Logo
Top 56%
1,210Elo
Win rate: 51.4%Avg time: 38.3s

Metrics sourced from Design Arena

Code example

cURL
# The image comes back as a data: URI on message.images, not as text.
URL=$(curl -s https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5-image-mini",
    "modalities": ["image", "text"],
    "messages": [{"role": "user", "content": "A red apple on a wooden table"}]
  }' | jq -r '.choices[0].message.images[0].image_url.url')

# Take the extension from the URI itself — this model may answer png or jpeg.
EXT=$(printf '%s' "$URL" | sed -n 's|^data:image/\([a-z]*\);.*|\1|p')
printf '%s' "$URL" | sed 's/^data:[^,]*,//' | base64 -d > "output.${EXT:-png}"
Python
import base64
from openai import OpenAI

client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
    model="openai/gpt-5-image-mini",
    messages=[{"role": "user", "content": "A red apple on a wooden table"}],
    modalities=["image", "text"],
)

# message.content is None on an image reply — the picture is in message.images.
for i, img in enumerate(response.choices[0].message.images or []):
    header, b64 = img["image_url"]["url"].split(",", 1)
    ext = "png" if "image/png" in header else "jpg"
    with open(f"output_{i}.{ext}", "wb") as f:
        f.write(base64.b64decode(b64))
JavaScript
import OpenAI from "openai";
import fs from "node:fs";

const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
  model: "openai/gpt-5-image-mini",
  messages: [{ role: "user", content: "A red apple on a wooden table" }],
  modalities: ["image", "text"],
});

// message.content is null on an image reply — the picture is in message.images.
(response.choices[0].message.images ?? []).forEach((img, i) => {
  const url = img.image_url.url;
  const ext = url.startsWith("data:image/png") ? "png" : "jpg";
  fs.writeFileSync(`output_${i}.${ext}`, Buffer.from(url.slice(url.indexOf(",") + 1), "base64"));
});

Buy the GPT-5 Image Mini API, paid in rial

  • Buy credit with an Iranian bank card; no foreign card or account needed.
  • One Hormouz key reaches GPT-5 Image Mini and nearly 700 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.
Create an accountBuy ChatGPT (OpenAI) API access, paid in rial

Use via Hormouz

Connect to this model and nearly 700 others with one API key, then see usage down to each request.

Request company access

FAQ

How much does GPT-5 Image Mini cost?
Billing is usage-based: $2.5 per million input tokens and $2 per million 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-5 Image Mini from inside Iran?
Create an account on Hormouz and generate an API key. Hormouz provides a stable path to GPT-5 Image Mini from inside Iran, with no foreign credit card or circumvention tooling required.
How do I call GPT-5 Image Mini?
GPT-5 Image Mini runs through Hormouz behind an asynchronous predictions API: submit a request with your prompt (and optional reference image), then poll until the image is ready. Point your base URL at Hormouz and use a Hormouz key.
What can GPT-5 Image Mini do?
GPT-5 Image Mini generates and edits images from text and reference images. It accepts a context of up to 400K tokens for the text side of the request and returns generated images.
What is GPT-5 Image Mini good for?
GPT-5 Image Mini is a good fit for generating and editing product imagery, illustrations, concept art and marketing visuals from text prompts and reference images.
What is GPT-5 Image Mini's knowledge cutoff?
GPT-5 Image Mini's training data runs through Sep 2024. For information newer than that, provide the relevant context in your prompt.

Updated 2026-11-27