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": "سلام!"}]
)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":"سلام!"}]}'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 | OpenAI | Text | ~$10 / 1M tokens |
| Gemini | Text | ~$0.50 / 1M tokens | |
| Flux | Black Forest Labs | Image | $0.05 / image |
| DALL-E | OpenAI | Image | $0.04 / image |
| ElevenLabs | ElevenLabs | Audio | $0.015 / 1K chars |
USD wallet, Rial payments
Start with $0.50 free
Official model pricing
No monthly subscription