Awesome Free LLM APIs IR

AI API Iran: 9 Free LLM APIs Verified Working From Iran in 2026

Complete guide to free AI APIs that work from Iran in 2026. 9 providers verified with direct Iran access. Cloudflare, Mistral, GitHub Models, and more. No credit card needed.

Last reviewed: 2026-07-19

Quick answer: 9 out of 22 free LLM API providers in this catalog are verified working from Iran with direct access (no VPN required): Cloudflare Workers AI, GitHub Models, Hugging Face, Kilo Gateway, LLM7.io, Mistral AI, OpenCode Zen, OVHcloud AI Endpoints, and SambaNova Cloud.

For the most current status, visit the live catalog.

Direct Iran Access Providers

These providers have been tested and confirmed working from inside Iran:

ProviderService TypeFree TypeRate LimitOpenAI-Compatible
Cloudflare Workers AIOfficial GatewayFree quota10,000 neurons/day
GitHub ModelsOfficial GatewayFree quota150 RPD
Hugging FaceOfficial Gateway$0.10/month creditModel-dependent
Kilo GatewayOfficial GatewayFree models200 RPH
LLM7.ioCommunity GatewayFree models30 RPM (anon)
Mistral AIOfficial ProviderFree quotaModel-dependent
OpenCode ZenOfficial GatewayFree modelsModel-dependent
OVHcloud AI EndpointsOfficial GatewayFree models2 RPM
SambaNova CloudOfficial GatewayFree quota20 RPD

Blocked or Restricted Providers

These providers are not accessible from Iran:

ProviderStatusDetails
Aion Labs⛔ Blocked
Cerebras⛔ Blocked
Cohere⛔ Blocked
Google Gemini🚫 Not supported officiallyMay work intermittently
Groq⛔ Blocked
OpenRouter⛔ Blocked
ModelScope🧾 Signup blockedAPI endpoint reachable
SiliconFlow🧾 Signup blockedChina identity verification

5 providers have unknown Iran access status and need further testing.

Getting Started with AI APIs from Iran

Step 1: Choose a Provider

For Persian users, we recommend starting with:

  • Cloudflare Workers AI: Best overall for Iran, no credit card, 10K neurons/day
  • GitHub Models: Access to GPT-4o-mini, 150 RPD, GitHub account only
  • Mistral AI: Strong Persian language support, direct access

Step 2: Sign Up and Get an API Key

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["API_KEY"],
    base_url=os.environ["BASE_URL"],
)

response = client.chat.completions.create(
    model="MODEL_ID",
    messages=[{"role": "user", "content": "Hello from Iran!"}],
)
print(response.choices[0].message.content)

Step 3: Test Connectivity

Before building your full application, test with a simple request. If you encounter errors, check:

  • The provider's iran_access status in the catalog
  • Whether your API key is active
  • Whether you've exceeded rate limits

Iran Access Status Guide

StatusMeaning
✅ Direct testedProven working with Iran IP, no VPN
🛡️ VPN testedWorks through authorized VPN
⛔ BlockedConfirmed not accessible
🧾 Signup blockedAPI reachable but signup requires foreign ID
❔ UnknownInsufficient evidence
🚫 Not supported officiallyProvider policy excludes Iran

Best AI APIs for Persian Language Tasks

For Persian/Farsi text generation, these providers perform well:

  • Mistral AI: Excellent multilingual capabilities
  • SambaNova Cloud: Verified Iran access, 20 RPD
  • Cloudflare Workers AI: Multiple models, generous quota

Frequently Asked Questions

How many free AI APIs work from Iran in 2026?

9 out of 22 providers are verified working from Iran with direct access. An additional 2 work through VPN. 5 have unknown status requiring further testing.

Do I need a VPN to use AI APIs from Iran?

Not for the 9 direct-access providers listed above. These have been tested and confirmed working with Iran IP addresses. However, Groq, OpenRouter, and Aion Labs require VPN access.

Which free AI API from Iran has the highest rate limits?

GitHub Models offers 150 requests per day with access to GPT-4o-mini. Cloudflare Workers AI provides 10,000 neurons/day across multiple models. Kilo Gateway allows 200 requests per hour.

Are there any Iranian AI APIs available?

This catalog focuses on international providers accessible from Iran. If you know of an Iranian AI API provider with a public free API, please submit an issue.

Can I use these APIs for Persian chatbots?

Yes. Mistral AI, GitHub Models, and SambaNova Cloud all support Persian language chat. Use the OpenAI-compatible SDK with any of these providers.

Related Guides

Help Improve the Data

If you test a provider from Iran, submit a sanitized Iran Access Report. Include the test date, provider, and result — never include API keys, cookies, or personal information.

Browse the complete catalog for the latest status of all 22 providers.