Chat Completions
OpenAI-compatible chat API with function calling, JSON mode, and 128K context. Drop-in replacement for existing integrations — just change the base URL.
Models
nariwal-1nariwal-1-mininariwal-1-thinkRequest
curl https://api.nariwal.shop/v1/chat/completions \
-H "Authorization: Bearer $NARIWAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nariwal-1",
"messages": [{"role": "user", "content": "Explain quantum computing in one sentence."}]
}'Response
{
"id": "chatcmpl-9f2k1x",
"model": "nariwal-1",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "Quantum computing uses qubits that exist in superposition to solve certain problems exponentially faster than classical computers."
},
"finish_reason": "stop"
}],
"usage": { "prompt_tokens": 12, "completion_tokens": 21, "total_tokens": 33 }
}