OpenAI SDK compatible
Just change the baseURL — same SDK works with LangChain, LlamaIndex, and any HTTP client.
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": "سلام!"}]
)Just change the baseURL — same SDK works with LangChain, LlamaIndex, and any HTTP client.
GPT, Claude, Gemini, Flux, ElevenLabs, and more — all from one API.
Pay with Zarinpal or Zibal in Rials. USD wallet with live exchange rates.
$0.50 credit + instant API key — no credit card required.
Usage, logs, projects, and webhooks — all at platform.aifoapp.ir.
Complete guides in Persian at docs.aifoapp.ir.
| Model | Provider | Modality | Price |
|---|---|---|---|
| GPT-5 | OpenAI | Text | ~$10 / 1M tokens |
| GPT-4o | OpenAI | Text | ~$5 / 1M tokens |
| Claude Sonnet 4.6 | Anthropic | Text | ~$6 / 1M tokens |
| Gemini 3 Flash | Text | ~$0.50 / 1M tokens | |
| DeepSeek V4 | DeepSeek | Text | ~$0.30 / 1M tokens |
| Grok 4 | xAI | Text | ~$5 / 1M tokens |
| Flux 2 Pro | Black Forest Labs | Image | $0.05 / image |
| DALL-E 3 | OpenAI | Image | $0.04 / image |
| ElevenLabs v3 | ElevenLabs | Audio | $0.015 / 1K chars |
| Whisper | OpenAI | Audio | $0.006 / minute |
USD wallet, Rial payments
Start with $0.50 free
Official model pricing
No monthly subscription