Hormouz AIHormouz AIHormouzSign in

GPT-5.1-Codex-Mini: AI model

GPT-5.1 Codex Mini is an OpenAI model. A smaller, faster version of GPT-5.1 Codex for cost-efficient coding, with up to 400K-token context. Reachable from inside Iran through Hormouz.

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

Thinking levels: Always thinks · high · medium · low

GPT-5.1 Codex Mini is a smaller, faster version of GPT-5.1 Codex for cost-efficient coding. GPT-5.1 Codex Mini trades some capability for lower latency and cost, aimed at high-volume coding assistance. It supports a context window of up to 400K tokens, with training data through Sep 2024.

GPT-5.1 Codex Mini is served through Hormouz behind an OpenAI-compatible API. It supports tool calling, image (vision) input and step-by-step reasoning. Point your base URL at Hormouz and drop in a Hormouz key, and existing OpenAI SDK code runs unchanged.

Pricing is usage-based: $0.25 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.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex

Quickstart

curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.1-codex-mini",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Specs

VendorOpenAI
TypeText, Image
Context window400,000 tokens
Pricing$0.25/M in · $2.00/M out
APIChat Completions
CapabilitiesStreaming · Vision · Tools

Benchmarks

Reasoning

GPQA Diamond
Graduate-level scientific reasoning
81.3%
HLE
Humanity's Last Exam
18.5%
IFBench
Instruction-following
67.9%
AA-LCR
Long-context reasoning
66.7%
CritPt
Research-level physics reasoning
0%
AA Omniscience
Broad factual knowledge accuracy
23.2%
Non-Hallucination
Rate of avoiding fabricated answers
48.4%

Coding

Terminal-Bench Hard
Agentic coding & terminal use
33.3%

Agentic

τ²-Bench
Tool-use agents in dual-control scenarios
62.9%

Source: Artificial Analysis

3D
Top 91%
999Elo
Win rate: 32.8%Avg time: 34.4s
ASCII Art
Top 80%
1,115Elo
Win rate: 43%Avg time: 16.2s
Code
Top 77%
1,099Elo
Win rate: 41.5%Avg time: 47.6s
Data Viz
Top 77%
1,105Elo
Win rate: 40.6%Avg time: 36.2s
Game Dev
Top 71%
1,105Elo
Win rate: 43.4%Avg time: 75.2s
SVG
Top 97%
977Elo
Win rate: 35.3%Avg time: 13.8s
UI Component
Top 77%
1,088Elo
Win rate: 41%Avg time: 35.3s
Website
Top 73%
1,117Elo
Win rate: 42.8%Avg time: 46.6s

Metrics sourced from Design Arena

Code example

cURL
curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.1-codex-mini",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Python
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.1-codex-mini",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
JavaScript
import OpenAI from "openai";
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.1-codex-mini",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Buy the GPT-5.1-Codex-Mini API, paid in rial

  • Buy credit with an Iranian bank card; no foreign card or account needed.
  • One Hormouz key reaches GPT-5.1-Codex-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.1 Codex Mini cost?
Billing is usage-based: $0.25 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.1 Codex Mini from inside Iran?
Create an account on Hormouz and generate an API key. Hormouz provides a stable path to GPT-5.1 Codex Mini from inside Iran, with no foreign credit card or circumvention tooling required.
Is GPT-5.1 Codex Mini compatible with OpenAI code?
Yes. Hormouz exposes an OpenAI-compatible API. Just change the base URL to Hormouz and swap in your Hormouz key. Your existing SDKs and chat-completions code run without a rewrite.
What context window and capabilities does GPT-5.1 Codex Mini have?
GPT-5.1 Codex Mini supports a context window of up to 400K tokens. It also supports tool calling, image (vision) input and step-by-step reasoning. That makes it a good fit for long documents, codebases and multi-turn conversations.
What is GPT-5.1 Codex Mini good for?
GPT-5.1 Codex Mini is purpose-built for coding and software engineering. Writing and refactoring code, agentic development runs, debugging and working across large codebases.
What is GPT-5.1 Codex Mini's knowledge cutoff?
GPT-5.1 Codex Mini's training data runs through Sep 2024. For information newer than that, provide the relevant context in your prompt or connect a tool that fetches live data.

Updated 2026-11-27