Pay with eSewa
Credit in Nepali rupees. No dollar card, so no card loading charge and no exchange spread.
Nepal’s first LLM router
An OpenAI-compatible AI router for developers in Nepal. Access multiple models and see the exact rupee cost of every request.
How it works
Add credit in Nepali rupees. No international card, no dollar account.
Example amount.
Your key is shown once. We keep only a fingerprint of it, never the key itself.
Masked example, not a real key.
Keep your OpenAI SDK. Swap the base URL and the key, and nothing else.
Works with OpenAI's Python and Node SDKs, curl and OpenCode.
Integration
M82 Router speaks the OpenAI Chat Completions format, including streaming and tool calls. We test it end to end with curl and OpenCode.
import osfrom openai import OpenAI client = OpenAI(-removed: base_url="https://api.openai.com/v1",-removed: api_key=os.environ["OPENAI_API_KEY"],+added: base_url="https://api.m82router.com/v1",+added: api_key=os.environ["M82_API_KEY"], max_retries=0,) reply = client.chat.completions.create( model="openai/gpt-oss-20b", messages=[{"role": "user", "content": "Say hello in Nepali."}],)print(reply.choices[0].message.content)
Keep your key in an environment variable or a secret manager, never in browser code.
{
"object": "chat.completion",
"model": "openai/gpt-oss-20b",
"choices": [{
"message": { "content": "नमस्ते! …" }
}],
"usage": {
"prompt_tokens": 1200,
"completion_tokens": 350
},
"m82": {
"request_id": "req_01M82RGAT8Z1VCK0NE3C0VTS8F",
"cost_npr": "0.015063049575"
}}Every response has an x-request-id header. Normal responses also carry m82.request_id and the exact m82.cost_npr.
Billing
Every request holds credit from your balance before it runs. When the reply ends, you pay once for what it actually used.
Hold an estimate of the cost: what you send, plus your max_tokens.
The model replies, streamed or all at once. Nothing touches your wallet.
The real usage is priced once: one charge, and any unused hold is released.
| Step | Entry | Amount, Rs. | Available, Rs. |
|---|---|---|---|
| Start | wallet balance | — | 500.000000000000 |
| 01Reserve | reservation | −0.217316403360 | 499.782683596640 |
| 02Run | usage | 1,200 in · 350 out | no change |
| 03Settle | usage_charge | −0.015063049575 | 499.984936950425 |
reservation_release | +0.202253353785 |
402If the hold doesn't fit your available balance, the request stops here and is never sent to a model.
Example: a 4,800-byte request on gpt-oss-20b with max_tokens 8,192, starting from a Rs. 500 balance. Settle writes both of its lines together.
Why M82 Router
Credit in Nepali rupees. No dollar card, so no card loading charge and no exchange spread.
Prepaid. A request your balance can't cover gets a 402 and never reaches the model.
We don't store or log what you send or what comes back. Only the metadata you need to reconcile a charge.
Each key gets about 40,00,000 tokens a minute and 8 requests at once; your account 300 requests a minute in total. Over the limit, a 429 with Retry-After.
Paying for an API from Nepal
Card fees and limits vary by bank.
About M82 Router
M82 Router connects your application to multiple large language models through one OpenAI-compatible API. Choose a model from the catalog, send your request with an M82 API key, and see its cost in Nepali rupees.
An LLM router, also called an AI router, gives your application a common API for different large language models. With M82 Router, you select the model for each request and can switch between supported models without managing a separate provider key for each one.
Read the API integration guide for curl, Python, Node.js and OpenCode setup.
For developers building from Nepal, M82 Router brings model prices and request costs into NPR, with eSewa as the top-up method. Account access and payments depend on the current beta availability shown on this site.
Browse models and rupee prices or compare published model usage to choose a model for your application.
Questions
No. You add credit in rupees from eSewa, and you never enter a card on M82 Router.
Per token, at the model's current rupee price per million tokens for input, cached input and output. M82 Router prices the whole request once and rounds to 12 decimal places. The response shows the exact amount, and the same request ID appears in your Usage page and ledger.
Before each request, M82 Router holds credit for an estimate of its cost. If your available balance can't cover that hold, the request is refused with a 402 error and nothing is sent to the model. When it settles, you're charged once for what it actually used and any unused hold is released.
Keep the request ID. If the model provider can't take the request, the hold is released. If a reply is interrupted, M82 Router settles against the usage the provider reported, and reviews the request when that usage is uncertain. It never guesses. Check your Usage page before retrying.
No. M82 Router doesn't store or log the content of prompts or completions. It keeps request metadata (model, token counts, cost, timing and the request ID) so you can reconcile every charge.
The model providers that host each model. Your request is sent to them to generate the reply, and their data policies apply while they process it.
Yes, but never backwards. Each request uses the price that was active when its credit was reserved.
Each API key gets 120 requests and about 40,00,000 tokens a minute, with 8 running at once. Your account as a whole gets 300 requests, about 80,00,000 tokens and 20 at once, so extra keys don't raise it. A request over the limit gets a 429 with a Retry-After header.
Refunds are reviewed by hand during the beta. Contact support with your eSewa payment ID. Write to contact@m82labs.dev.
Any client that lets you set an OpenAI-compatible base URL and key. We test curl and OpenCode end to end; OpenAI's Python and Node SDKs are next on our list.
Get started