Stream AI Explanation (SSE)
Streams the generative text output of MuminAI, providing real-time rendering of scholarly explanations for a hadith as it is being processed by the backend.
GET
🔐Auth Requiredhttps://api.mumin.ink/hadiths/:id/explain-streamPath Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The ID of the Hadith |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
language | string | No | Language code for the explanation (default: ru) |
Response
Data chunks are streamed linearly via text/event-stream. MuminAI's JSON fragments are progressively repaired during generation.
data: {"content":{"short_meaning":"Faith is buil"}}
data: {"content":{"short_meaning":"Faith is built upon"}}
data: {"content":{"short_meaning":"Faith is built upon basic principles."}}
data: [DONE]