/v1/chat/completionsChat completions
Conversational Malayalam generation — the same intelligence that powers Musiriz Chat. Send a message history, receive a Malayalam-first reply.
Musiriz API
The Musiriz API exposes the foundation model behind Musiriz Chat as a simple REST interface. Build Malayalam-first products — assistants, search, citizen services, content tools — without leaving Malayalam behind.
Authentication
Every request is authenticated with a bearer API key. Keys are issued to waitlist members at launch and can be rotated or revoked at any time. Keep your key on the server — never ship it in a mobile app or browser bundle.
Bearer token
Send your key in the Authorization header of every request.
Server-side only
Call the API from your backend so the key never reaches end users.
Scoped & revocable
Create separate keys per app or environment, and revoke them instantly.
Authorization: Bearer msz-your-api-keyEndpoints
/v1/chat/completionsConversational Malayalam generation — the same intelligence that powers Musiriz Chat. Send a message history, receive a Malayalam-first reply.
/v1/completionsRaw text generation for Malayalam prose, poetry, translation and instruction following.
/v1/embeddingsDense vectors for Malayalam text — semantic search, clustering and retrieval over Malayalam corpora.
/v1/modelsDiscover available Musiriz model versions, their dialect coverage and context limits.
Usage examples
curl https://api.musiriz.ai/v1/chat/completions \
-H "Authorization: Bearer $MUSIRIZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "musiriz-guru-v1",
"messages": [
{ "role": "system", "content": "നിങ്ങൾ ഒരു മലയാളം സഹായിയാണ്." },
{ "role": "user", "content": "ഓണത്തിന്റെ ചരിത്രം പറഞ്ഞുതരൂ" }
],
"temperature": 0.7
}'from musiriz import Musiriz
client = Musiriz(api_key="msz-...")
response = client.chat.completions.create(
model="musiriz-guru-v1",
messages=[
{"role": "user", "content": "വള്ളുവനാടൻ ശൈലിയിൽ ഒരു കവിത എഴുതൂ"}
],
)
print(response.choices[0].message.content)import Musiriz from "musiriz";
const client = new Musiriz({ apiKey: process.env.MUSIRIZ_API_KEY });
const completion = await client.chat.completions.create({
model: "musiriz-guru-v1",
messages: [
{ role: "user", content: "കേരള സർവീസ് ചോദ്യങ്ങൾക്ക് സഹായിക്കൂ" },
],
});
console.log(completion.choices[0].message.content);{
"id": "chatcmpl-msz-01",
"object": "chat.completion",
"model": "musiriz-guru-v1",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "ഓണം കേരളത്തിന്റെ ഏറ്റവും വലിയ ഉത്സവമാണ്…"
},
"finish_reason": "stop"
}
],
"usage": { "prompt_tokens": 24, "completion_tokens": 138 }
}Built for every dialect
Musiriz is trained for the full dialect range of Malayalam, so your users can write the way they actually speak. API access opens to waitlist members first — open weights are already available on Hugging Face.