GPT and Claude for Nepal, paid in rupees
One API key for OpenAI and Anthropic models. Top up from eSewa, Khalti or your bank, with no dollar card. The official SDKs work unchanged, and every request is billed in NPR.
नेपालमै, नेपालीका लागि · pay only for what you use
from openai import OpenAI
client = OpenAI(
base_url="https://api.qnepal.com/v1",
api_key="qn-…", # from your QNepal dashboard
)
reply = client.chat.completions.create(
model="gpt-6.2-sol",
messages=[{"role": "user", "content": "नमस्ते! Summarise this invoice."}],
)eSewa, Khalti, FonePay QR or bank transfer. Credits land in your wallet in NPR.
Provider list price × NRB rate + a flat, published margin. Every request itemised.
A small Go gateway forwards each token as it arrives, and retries on a second key if a provider fails.
We never log prompts or completions. Keys are hashed, and each account's data is isolated.
Per million tokens, in NPR
| Model | Input | Cached input | Output |
|---|---|---|---|
| Loading prices… | |||
Prices follow the providers' published rates, converted at the Nepal Rastra Bank sell rate plus our margin. Long-context requests and cache writes are billed at the providers' rates for those tiers.
Sign up with your email. It takes a few seconds.
Pay from your eSewa, Khalti or bank app, then submit the transaction ID. We verify it and credit your wallet.
Set base_url to api.qnepal.com/v1 and use your qn- key. No other code changes.
Questions, answered plainly
What is QNepal?
QNepal is a Nepali service that gives developers and businesses in Nepal API access to OpenAI (GPT) and Anthropic (Claude) models, paid in Nepali rupees. It exposes OpenAI- and Anthropic-compatible endpoints at https://api.qnepal.com/v1, so the official SDKs work with only the base URL and key changed.
Do I need a dollar card or a foreign account?
No. QNepal is prepaid in NPR. You top up a wallet from a local payment app such as eSewa or Khalti, or by bank transfer, and each API request is charged from that balance.
How is usage billed?
Per token, in NPR. Each request is charged from the token counts the provider reports (input, cached input, cache writes and output). Prices are the provider's list price converted at the Nepal Rastra Bank exchange rate plus QNepal's margin. While a request runs, the most it could cost is reserved from your balance, and the unused part is released when it finishes.
Which models can I use?
OpenAI GPT models and Anthropic Claude models, with one API key. The current list, with prices in NPR per million tokens, is in the pricing table and at GET https://api.qnepal.com/v1/models, which needs no API key.
What do I change in my code?
Only the base URL and the API key. Point the OpenAI SDK at https://api.qnepal.com/v1 or the Anthropic SDK at https://api.qnepal.com, and use a qn- key from your dashboard. Claude models also work on the OpenAI-style /v1/chat/completions endpoint.
Are my prompts stored?
No. QNepal does not store prompts or completions. It keeps request metadata (model, token counts, latency and cost) for billing. Requests are processed by OpenAI or Anthropic under their API data policies.
What are the rate limits?
By default 120 requests a minute per API key, and per account up to 16 requests in flight and about 2 million tokens a minute. New accounts that have not topped up yet get 30 requests a minute until their first top-up. Limited requests return HTTP 429 with a Retry-After header.