API · beta
The Muslim AI API.
A wrapped GPT Realtime model with Akhi's adab-first, halal-only, scholar-deferring system prompt built in. Upload your knowledge base once, and the API answers from it on both text and voice, in 12+ languages.
Text
Point the OpenAI SDK at our base URL and you have a Muslim, adab-aware assistant. Halal-only and scholar-deferring by default, in the language your user writes in.
Realtime voice
Mint a short-lived token and stream live, natural voice straight from your app. Your keys never touch the client.
Live translation
Translate a whole conversation in real time, both directions, with Islamic terms like salah and insha'Allah kept intact.
Quickstart
A few lines to your first reply.
Authenticate with your key, send a message, and get back an adab-aware response. The realtime token lets your client stream voice directly.
Text chat
// OpenAI-compatible: use the OpenAI SDK with our base URL.
import OpenAI from "openai"
const akhi = new OpenAI({
apiKey: "akhi_sk_...",
baseURL: "https://app.akhi.ai/api/v1",
})
const r = await akhi.chat.completions.create({
model: "akhi-chat",
messages: [{ role: "user", content: "Assalamu alaikum" }],
})Realtime voice and translation
// Mint a realtime token on your server, then connect your client to it.
const res = await fetch("https://app.akhi.ai/api/v1/realtime/session", {
method: "POST",
headers: { Authorization: "Bearer akhi_sk_...", "Content-Type": "application/json" },
body: JSON.stringify({ translateTo: "Arabic" }), // live translation
})
const { value } = await res.json() // ephemeral token (ek_...)What horizontal APIs cannot ship
The Muslim context is built in, not bolted on.
Adab, by default
Salam-led, respectful, and warm. The etiquette is in the model before you write a line of prompt.
Halal-only and scholar-deferring
Declines haram topics. Never issues fatwas or rulings, and defers questions of fiqh to a qualified scholar.
12+ languages
Arabic, Urdu, Bengali, Turkish, Indonesian, Malay, and more, with code-switching mid-sentence.
Your knowledge base
Upload your hours, docs, and FAQs once. The API retrieves and answers from them on both text and voice, and refers anything it does not know.
Use case
Live translation for a multilingual jamaat.
A community app opens a realtime session with a target language and streams a whole khutbah or counseling call, translated in real time, both directions. Names and Islamic terms stay intact, and the voice keeps its adab. One endpoint, no model wrangling.
Pricing
Usage-based. Pay for what you use.
Start free, then pay only for usage past the beta allowance. No subscription for the API.
Free beta
$0
10 realtime minutes + 500 requests per account
Realtime voice + translation
$1.40/min
after the free allowance
Text chat
$15/1M tokens
about $0.015 per request
Volume pricing available. Talk to us.
Build with Muslim AI.
Sign up, grab your key from the dashboard, and make your first call in minutes.