Model Key Policy
Madeenan does not store customer LLM provider keys. Retrieve sources from Madeenan, then call your own model provider from your own backend.
Recommended Flow
const sources = await fetch("https://api.madeenan.com/v1/search?q=patience&indexes=quran,hadith,tafsir,dua", {
headers: {
"X-Madeenan-API-Key": process.env.MADEENAN_API_KEY
}
}).then((res) => res.json());
// Next, call your own LLM provider from your backend.
// Put sources.results into the model context and render Madeenan citations
// beside the generated answer.
What Madeenan Stores
- Your Madeenan app, subscription, API key hash, and usage records.
- Retrieval results and citation metadata for the responses it serves.
- No customer OpenAI, Anthropic, Gemini, or other model provider API keys.
Security note
Hosted chat runs on Madeenan's own Gemini Flash-Lite key and has a usage quota. For production generation, use the Search API and keep model credentials on your infrastructure.