IN ENGLISH · AI ACCESS FROM IRAN

AI API & chat access in Iran — GPT, Claude, Gemini, DeepSeek & more via 1xAi

1xAi is an AI gateway operated inside Iran. It proxies the official APIs of OpenAI, Anthropic, Google and DeepSeek, and serves xAI Grok, Kimi, GLM, Qwen, MiniMax and Hunyuan alongside them, so people on Iranian networks can use models from ten vendors — 100+ of them, behind a single key and a single Toman balance — where the providers themselves don't offer local access or local payment.

[01]WHAT IT IS

One gateway, ten 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, DeepSeek, Grok, Kimi, GLM, Qwen, MiniMax and Hunyuan models. No SDK forks, no per-provider accounts, no foreign billing relationship.

python — any OpenAI SDK works unchangedpython
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 — 100+ models across the ten providers, with live Toman prices — is on the models page.

[02]WHO IT SERVES

Developers and everyday users inside Iran

DEVELOPERS

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.

CONSUMERS

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.

[03]BILLING

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 markup of 15–30% depending on the model, nothing else. For chat there are monthly plans, starting with a free plan that gives a 100,000-Toman chat allowance every 30 days (renewing automatically, with a 30,000-Toman weekly cap) on fast models such as gpt-4o-mini, claude-haiku-4-5 and gemini-2.5-flash. Paid plans add a larger allowance and stronger models. Full details for each plan are on the plans page; API usage on any account is billed from the same wallet credit.

[04]TRY IT FREE

Two free ways in

  1. [01]

    Free chat plan. 100,000 Toman of chat allowance every 30 days, renewing automatically with a 30,000-Toman weekly cap, on the fast models. Signing up takes about a minute, with Google or an email and an Iranian mobile number — no foreign phone number or card.

  2. [02]

    Signup gift wheel. One server-drawn spin per new account, worth 100,000 to 1,000,000 Toman of gift credit for the fast, inexpensive models, plus 30,000 Toman for any model. Both last 14 days from the spin and also cover API usage.

[05]THE FINE PRINT

What 1xAi is not

1xAi is not affiliated with, or endorsed by, OpenAI, Anthropic, Google, DeepSeek, xAI, Moonshot AI, Z.ai, Alibaba Qwen, MiniMax or Tencent Hunyuan— it is an independent gateway that relays requests upstream and hosts no models of its own. 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.

FAQ · IN ENGLISH

Can I use the ChatGPT or Claude API from Iran through 1xAi?

Yes. 1xAi is a gateway hosted inside Iran, so it is reachable from Iranian networks without a VPN. It proxies the official OpenAI, Anthropic, Google and DeepSeek APIs and also serves xAI Grok, Kimi, GLM, Qwen, MiniMax and Hunyuan models. 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 100+ models from all ten 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 published markup of 15–30% depending on the model — 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 a minute, with Google or with an email and an Iranian mobile number; no foreign phone number or card. The free chat plan includes a 100,000-Toman chat allowance every 30 days (auto-renewing, with a 30,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 of gift credit for the fast, inexpensive models, plus 30,000 Toman for any model; both are valid for 14 days, in chat and the API.

Is 1xAi affiliated with OpenAI, Anthropic, Google or any other model vendor?

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.

MORE IN ENGLISH
  • API documentation

    Quickstart, auth, native Anthropic/Gemini routes, streaming, Toman billing and account endpoints.

  • Terms of Service

    Billing, refunds, availability, liability and termination.

  • Privacy Policy

    What we collect, what never leaves, and what the model provider receives.

  • Contact

    Business enquiries, large top-ups, and anything the docs did not answer.

  • Models and prices

    Every callable model with live Toman rates, context windows and endpoints.

  • ChatGPT API from Iran

    Whether the OpenAI API can be called from an Iranian network, and how.

  • Claude API from Iran

    Anthropic's Messages API from Iran, including the native passthrough route.

  • OpenAI-compatible endpoint

    The base URL, the auth header, every supported route, streaming and errors.

  • Pricing

    How billing works: list price plus a 15–30% markup by model, paid in Toman.

  • Service status

    Live per-provider reachability measured from inside Iran, plus the raw dataset.