AiFOAI Super-App
$0.50 free credit to get started

AI API for Iranian Developers

One OpenAI-compatible endpoint. Every model in the world. Rial payments.

from openai import OpenAI
client = OpenAI(
    api_key="aifo_sk_live_...",
    base_url="https://api.aifoapp.ir/v1"
)
response = client.chat.completions.create(
    model="openai/gpt-4o",
    messages=[{"role": "user", "content": "سلام!"}]
)
import OpenAI from 'openai';
const client = new OpenAI({
  apiKey: 'aifo_sk_live_...',
  baseURL: 'https://api.aifoapp.ir/v1',
});
const response = await client.chat.completions.create({
  model: 'openai/gpt-4o',
  messages: [{ role: 'user', content: 'سلام!' }],
});
curl https://api.aifoapp.ir/v1/chat/completions \
  -H "Authorization: Bearer aifo_sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4o","messages":[{"role":"user","content":"سلام!"}]}'

Why developers choose AiFO

OpenAI SDK compatible

Just change the baseURL — same SDK works with LangChain, LlamaIndex, and any HTTP client.

Text, image & audio models, one endpoint

GPT, Claude, Gemini, Flux, ElevenLabs, and more — all from one API.

Rial payments

Pay with Zarinpal or Zibal in Rials. USD wallet with live exchange rates.

Free to start

$0.50 credit + instant API key — no credit card required.

Full dashboard

Usage, logs, projects, and webhooks — all at platform.aifoapp.ir.

Persian documentation

Complete guides in Persian at docs.aifoapp.ir.

Supported models

ModelProviderModalityPrice
GPTOpenAIText~$10 / 1M tokens
GeminiGoogleText~$0.50 / 1M tokens
FluxBlack Forest LabsImage$0.05 / image
DALL-EOpenAIImage$0.04 / image
ElevenLabsElevenLabsAudio$0.015 / 1K chars

Transparent pricing

USD wallet, Rial payments

Start with $0.50 free

Official model pricing

No monthly subscription

Frequently asked questions

No. Use the standard OpenAI SDK with AiFO's baseURL. Works with LangChain, LlamaIndex, and any other HTTP client.

Your wallet is charged in USD, paid via Zarinpal or Zibal in Rials. Live exchange rates apply.

Yes, standard limits based on wallet balance. Contact us for enterprise plans.

https://api.aifoapp.ir/v1 — fully compatible with OpenAI API v1.