DeepSeek API from Iran: three questions that decide it
The usual AI-API checklist starts with "pick a model". From Iran that checklist is in the wrong order. Three questions come first, and each one can end the project before the model matters at all: will the provider serve you, can you pay, and will your toolchain work once it can reach something.
1. Will the provider serve you at all?
This is answered in writing, by the providers, before any card or any IP is involved.
- OpenAI publishes the countries and territories where ChatGPT and the API are supported, and states that a location not included in that list means the API is not available there. Iran is not on the list. The same page warns that access from outside the listed countries can get an account blocked or suspended.
- Anthropic publishes a supported-regions policy: its products are available only in the countries listed, and any country not listed is unsupported — including use by a person physically located in such a region.
Which means the common advice — a VPN plus a foreign card — is not a workaround, it is the exact behaviour the policies describe as grounds for suspension. The workable question is different: is there a provider that was never on that list?
2. Can you pay?
Iranian cards are a dead end on foreign AI merchants for the same reason they are elsewhere in the region, only more so: the merchant sees a decline long before anyone looks at your balance. What is left is crypto, and in practice that means USDT.
| Rail | Cost per transfer | What it needs |
|---|---|---|
| USDT BEP20 (BNB Smart Chain) | a few cents | a BEP20 wallet or an exchange withdrawal |
| USDT TRC20 (Tron) | about $1 | a Tron wallet, e.g. TronLink |
| PayPal | ~4% conversion spread | only an account that can send internationally — optional, not the plan |
Two details matter more than the rail choice:
- Create the order before you send. The order carries the address, the amount and the 30-minute window. Sending to the address from memory, without an open order, is how people create work for support.
- One transfer, not several. Split transfers inside one order do not each get matched; one order matches one incoming transaction.
The balance is credited for what actually arrives on-chain, so an exchange withdrawal fee does not void the order — the smaller amount is simply what you get. Minimum top-up is $5, the balance is prepaid, and nothing renews by itself.
3. Will your toolchain work?
This is the part that is genuinely solved, because the interface is the industry-standard one rather than a bespoke SDK:
# OpenAI-compatible clients (Cursor, Cline, n8n, the OpenAI SDK)
base_url = https://api.lbase.com/v1
# Claude Code / Anthropic SDK — no /v1, the SDK appends /v1/messages
ANTHROPIC_BASE_URL=https://api.lbase.com
ANTHROPIC_AUTH_TOKEN=sk-your-key
Model names stay stable across builds — the current build is DeepSeek V4.1 Flash, build 1017 — so a configuration that works today keeps working after an upgrade. Full per-tool configs are in the docs.
What this does not solve
Being straight about the boundary: a Chinese-model gateway gives you DeepSeek, not GPT and not Claude. If a workload genuinely needs a model that only a US provider serves, that model stays out of reach from Iran — no gateway changes another company's country list. What you get instead is a working model, an OpenAI-compatible endpoint, and a payment rail that does not require a card.
You are also responsible for the laws and provider terms that apply to you personally; that part is between you and your jurisdiction, not something a reseller can answer for you.
How to check all three in five minutes
- Register at api.lbase.com/register — email and password; $0.5 of free credit appears immediately and needs no payment method.
- Create a key in the console and select a group (DeepSeek for native names, Claude Compatible if your tool expects Claude names). A key with no group cannot call anything.
- Send one real request from your own machine and watch the latency — that is the number a VPN-based plan never tells you honestly.
- Only then top up $5 by USDT. Read the per-model rate in the console before you send, because rates move.
Questions developers ask
Is OpenAI or Claude available in Iran?
Not through their own platforms. OpenAI publishes a list of supported countries and says a location that is not on the list is not supported; Iran is not on it. Anthropic's supported-regions policy lists the countries where its products are available and states that any country not listed is unsupported. Using either from an unlisted region risks the account being blocked.
How do I pay for an API top-up from Iran?
With USDT, not a card. BEP20 on BNB Smart Chain costs a few cents per transfer, TRC20 on Tron about one dollar. Create the order in the console first, then send one transfer inside the 30-minute window. The balance is credited for the amount that actually arrives on-chain. Minimum top-up is $5.
Will my existing tools work without code changes?
Yes for OpenAI- and Anthropic-compatible clients. Use https://api.lbase.com/v1 as the base URL for OpenAI-format tools, and https://api.lbase.com for Claude Code or the Anthropic SDK. Model names stay stable across builds, so a config that works today keeps working after an upgrade.
What happens if my transfer arrives after the order expires?
It is not lost. Late transfers are picked up from on-chain monitoring and credited manually; email service@lbase.com with the transaction hash. Keeping the hash is the single most useful thing you can do when a top-up does not appear.
Reference: OpenAI supported countries and territories · Anthropic supported regions · DeepSeek API pricing.
Nova