Docs Menu & Search
Documentation
nabh.cloud API
One OpenAI-compatible API for open large language models — priced per token in Indian Rupees, paid from prepaid credits.
The nabh.cloud API gives you an OpenAI-compatible endpoint for a catalogue of open models (text, embeddings, image, and speech). Most models share one endpoint per modality; a few use their own model-scoped URL instead — same auth, same request/response shape. Prices are in ₹ and you pay only for what you use, from prepaid nabh credits — no subscription required to start, and 50 free credits on signup.
Base URL
All API requests are made to:
https://api.nabh.cloud/v1
Because the API follows the OpenAI Chat Completions specification, existing OpenAI SDKs and tools work by changing only the base URL and the API key.
curl https://api.nabh.cloud/v1/chat/completions \
-H "Authorization: Bearer nbh_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-oss-20b",
"messages": [{"role": "user", "content": "Hello from India!"}]
}'Every response carries X-Balance-INR (your credit balance before this request) and
X-Request-ID as headers. Non-streaming chat, embeddings, and image responses also
include cost_inr and balance_inr in the JSON body — the credits this
request used and your remaining credits. Despite the _inr names, these values are in
credits (1 nabh credit = ₹1). Streaming responses don’t carry a body-level cost (headers are sent
before the stream completes), but every streamed chat completion includes a final usage chunk
(prompt_tokens/completion_tokens) you can multiply by the model’s
published rate to compute the exact cost yourself. You are never charged beyond your available
credits.