AI API & chat access in Iran — GPT, Claude, Gemini & DeepSeek via 1xAi
1xAi is an AI gateway operated inside Iran. It proxies the official APIs of OpenAI, Anthropic, Google and DeepSeek, so people on Iranian networks can use the real models — 38+ of them, behind a single key and a single Toman balance — where the providers themselves don't offer local access or local payment.
One gateway, four providers, one key
The API is OpenAI-SDK compatible. Point any OpenAI client — official SDKs, LangChain, whatever you already run — at https://1xai.ir/v1 with a 1xAi key, and the same code reaches GPT, Claude, Gemini and DeepSeek models. No SDK forks, no per-provider accounts, no foreign billing relationship.
from openai import OpenAI
client = OpenAI(
base_url="https://1xai.ir/v1", # the only change
api_key="1xai-...",
)
reply = client.chat.completions.create(
model="claude-haiku-4-5", # or gpt-4o-mini, gemini-2.5-flash, ...
messages=[{"role": "user", "content": "Hello from Tehran"}],
)The full catalogue — 38+ models across the four providers, with live Toman prices — is on the models page.
Developers and everyday users inside Iran
Ship against one API. Teams building for the Iranian market — or diaspora developers with users there — get a single OpenAI-compatible endpoint reachable from inside the country, with usage deducted from a Toman wallet instead of a foreign card.
A Persian-first chat app. The hosted chat has a fully Persian, right-to-left UI with a free plan, and installs as a PWA on phone or desktop. There is no native app and 1xAi is not in any app store — the web app is the product.
Toman in, official model prices out
Payment is in Iranian Toman through Zarinpal, a local payment gateway, with a minimum top-up of 100,000 Toman. The pricing rule is a single sentence: every model costs the provider's own USD list price plus a flat 20% markup — nothing else. For chat there are four plans. Free: a 100,000-Toman chat allowance every 30 days (auto-renewing, 40,000-Toman weekly cap, on fast models like gpt-4o-mini, claude-haiku-4-5 and gemini-2.5-flash). Base at 500,000 Toman/month: 500,000 Toman of credit, 200,000 weekly cap, fast plus mid-tier models such as gpt-4o. Pro at 2,000,000 Toman/month: 2,000,000 credit, 800,000 weekly cap, all models. Max at 10,000,000 Toman/month: 10,000,000 credit, 4,000,000 weekly cap, all models. Full details for each plan are on the plans page; API usage on any account is billed from the same wallet credit.
Two free ways in
- [01]
Free chat plan. 100,000 Toman of chat allowance every 30 days, renewing automatically with a 40,000-Toman weekly cap, on the fast models. Signing up takes about 30 seconds and needs only an email — no phone number, no foreign card.
- [02]
Signup gift wheel. One server-drawn spin per new account, worth 100,000 to 1,000,000 Toman in wallet credit. That credit never expires and also covers API usage.
What 1xAi is not
1xAi is not affiliated with, or endorsed by, OpenAI, Anthropic, Google or DeepSeek — it is an independent gateway that relays requests to their official APIs. Because the responses come from the real models, each provider's own usage policies apply. We publish no uptime percentages or user counts here; current and historical service health lives on the public status page, which anyone can check.
Can I use the ChatGPT or Claude API from Iran through 1xAi?
Yes. 1xAi is a gateway hosted inside Iran that proxies the official OpenAI, Anthropic, Google and DeepSeek APIs, so it is reachable from Iranian networks without a VPN. The API is OpenAI-SDK compatible: point any OpenAI client at base_url https://1xai.ir/v1 with a 1xAi key and the same code works across 38+ models from all four providers.
How do I pay without an international credit card?
Billing is in Iranian Toman through Zarinpal, a local payment gateway, with a minimum top-up of 100,000 Toman. Pricing is transparent: each model costs the provider's own USD list price plus a flat 20% markup — there are no per-seat licenses or hidden fees.
Is there a free way to try it?
Two ways, both behind a free account — signing up takes about 30 seconds and needs only an email, no phone number or foreign card. The free chat plan includes a 100,000-Toman chat allowance every 30 days (auto-renewing, with a 40,000-Toman weekly cap) on gpt-4o-mini, claude-haiku-4-5 and gemini-2.5-flash. And every new account gets one server-drawn spin of a gift wheel worth 100,000 to 1,000,000 Toman in wallet credit that never expires and also covers API usage.
Is 1xAi affiliated with OpenAI, Anthropic, Google or DeepSeek?
No. 1xAi is an independent gateway and is not affiliated with or endorsed by any of the model providers. Responses come from the official models, and each provider's own usage policies apply to what the models will and won't do. Live service health is published on the public status page at 1xai.ir/status.