Hormouz AIHormouzSign in

OpenAI: GPT-4.1: AI model

GPT-4.1 is an OpenAI model. A flagship model tuned for instruction following, software engineering and long-context reasoning, with up to 1M-token context. Reachable from inside Iran through Hormouz.

Context window:
1,047,576 tokens
Input:
$2/1M tokens
Output:
$8/1M tokens
Type:
text, image
  • Vision
  • Tools
  • Streaming
  • Long context

GPT-4.1 is a flagship model tuned for instruction following, software engineering and long-context reasoning. GPT-4.1 pushes to a roughly one-million-token context window and improves on GPT-4o for coding and instruction following. It supports a context window of up to 1M tokens, with training data through Jun 2024.

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

Pricing is usage-based: $2 per million input tokens and $8 per million output tokens. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.

GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and...

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-4.1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Specs

VendorOpenAI
TypeText, Image
Context window1,047,576 tokens
Pricing$2.00/M in · $8.00/M out
APIChat Completions
CapabilitiesStreaming · Vision · Tools

Benchmarks

Reasoning

GPQA Diamond
Graduate-level scientific reasoning
66.6%
HLE
Humanity's Last Exam
4.2%
IFBench
Instruction-following
43%
AA-LCR
Long-context reasoning
68.3%
CritPt
Research-level physics reasoning
0%
AA Omniscience
Broad factual knowledge accuracy
27.8%
Non-Hallucination
Rate of avoiding fabricated answers
6.7%

Coding

Terminal-Bench Hard
Agentic coding & terminal use
13.6%

Agentic

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

Source: Artificial Analysis

3D
Top 99%
860Elo
Win rate: 30.9%Avg time: 67.8s
Code
Top 86%
1,031Elo
Win rate: 50.9%Avg time: 72.7s
Data Viz
Top 74%
1,111Elo
Win rate: 59.5%Avg time: 60.3s
Game Dev
Top 74%
1,092Elo
Win rate: 59.1%Avg time: 97.2s
UI Component
Top 88%
1,007Elo
Win rate: 49.7%Avg time: 65.6s
Website
Top 84%
1,045Elo
Win rate: 52.3%Avg time: 71.5s

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-4.1",
    "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-4.1",
    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-4.1",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Buy the OpenAI: GPT-4.1 API, paid in rial

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

Use via Hormouz

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

Request company access

FAQ

How much does GPT-4.1 cost?
Billing is usage-based: $2 per million input tokens and $8 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-4.1 from inside Iran?
Create an account on Hormouz and generate an API key. Hormouz provides a stable path to GPT-4.1 from inside Iran, with no foreign credit card or circumvention tooling required.
Is GPT-4.1 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-4.1 have?
GPT-4.1 supports a context window of up to 1M tokens. It also supports tool calling and image (vision) input. That makes it a good fit for long documents, codebases and multi-turn conversations.
What is GPT-4.1 good for?
GPT-4.1 works well for chat assistants, content generation, summarization, drafting and general text tasks, including ones that involve reading images.
What is GPT-4.1's knowledge cutoff?
GPT-4.1's training data runs through Jun 2024. For information newer than that, provide the relevant context in your prompt or connect a tool that fetches live data.

Updated 2026-10-13