🪔 Diwali Mega Sale – 60% OFFCelebrate Diwali with incredible savings! Get 60% OFF on every AI model. Unlock premium AI at unbeatable prices. Limited-time festive offer!🎉 New User Bonus — ₹1,000 CreditsNew to TopBilling? Sign up and apply promo code LAUNCH-1000 to get ₹1,000 in credits. Start exploring premium AI services today.Learn more
Top Billing
Happy Diwali
All systems operationalAI Infrastructure

One Platform.
Every AI capability.
Paid in rupees.

OpenAI- and Anthropic-compatible APIs for chat, messages and embeddings. Pay by UPI, cards or net banking, get a GST invoice on every top-up, and keep the SDKs already in your code.

Base URLhttps://api.topbilling.in/v1
Your first request
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["TB_API_KEY"],
    base_url="https://api.topbilling.in/v1",
)

response = client.chat.completions.create(
    model="tb-gpt-6-astra",
    messages=[{"role": "user", "content": "Summarise this ticket in one line."}],
)
print(response.choices[0].message.content)
Every response carries x-request-id: tb_req_…, the same ID as its charge.
17models live in the catalogue2API formats: OpenAI and Anthropic₹100minimum top-up, no subscriptionLiveAll systems operational
Why teams in India choose it

Global AI models.
Local billing.

01Pay in rupees

UPI, cards or net banking.

Prepaid INR credits through Cashfree. GST is shown before you pay and a tax invoice with our GSTIN follows every payment. No USD card, no forex markup.

02Same SDKs

Change two lines.

The official OpenAI and Anthropic SDKs, plain HTTP and Claude Code. Set the base URL and use a Top Billing key and model ID.

03Never billed twice

One reservation, one settlement.

Failover hands a request to the next healthy route before anything billable happens, so a retry behind the scenes never charges you again.

How a request flows

One request. One route that works.
One charge.

01 · Request illustrative
See every rupee

Every request,
traced to its charge.

Usage lists each request with its model, tokens and charge, per key. The request ID in the response header is the same ID on the ledger row.

How usage works
Usageillustrative · live prices
RequestModelTokens in / outCharge
tb_req_7Kq2…tb-gpt-6-astra1,240 / 380₹1.0852
tb_req_9Fm4…tb-claude-fable-55,210 / 940₹3.4249
tb_req_2Hx8…tb-claude-fable-5-1860 / 210₹0.6601
tb_req_5Pa1…tb-claude-opus-53,020 / 1,160₹1.5241
Total₹6.6943
Example token counts priced at the active rates of the models above, before GST.
Built for developers

Change two lines.
Keep your code.

Chat Completions, Responses, Messages, Embeddings and Models at https://api.topbilling.in/v1. A parameter a model cannot honour is rejected with a clear 400, never silently ignored.

app.py− before+ after
 import os
 from openai import OpenAI
 
-client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
+client = OpenAI(
+    api_key=os.environ["TB_API_KEY"],
+    base_url="https://api.topbilling.in/v1",
+)
 
 response = client.chat.completions.create(
-    model="<your-current-model>",
+    model="<top-billing-model-id>",
     messages=messages,
 )
Reliability

When a route fails,
your bill does not.

Native-lane requests are never failed over behind your back. Everything else follows the model’s route order.

  1. ReserveAn upper bound is held from your credits before the request runs.
  2. Route A failsTimeout, overload or a 5xx, before anything billable was produced.
  3. Route B servesThe next healthy route answers the same request.
  4. Settle onceCharged on the tokens the model reported. The rest is released.
Live statusChecking status
Questions

Straight answers.

More in the documentation and the legal documents.

What is Top Billing?

An AI API gateway operated by VD Enterprises, a GST-registered business in India. You call AI models through OpenAI- and Anthropic-compatible APIs and pay from prepaid credits in Indian rupees.

Do I need to change my code?

Usually two lines. Point the official OpenAI SDK at https://api.topbilling.in/v1, or the Anthropic SDK at https://api.topbilling.in, and use a Top Billing API key and model ID. A parameter a model cannot honour is rejected with a clear 400, never silently ignored.

Does Claude Code work?

Yes. Set ANTHROPIC_BASE_URL to https://api.topbilling.in, ANTHROPIC_AUTH_TOKEN to your Top Billing key and ANTHROPIC_MODEL to a model ID from the Models page. The Claude Code guide has the details.

How do I pay?

Add credits on the Billing page with UPI, cards or net banking through Cashfree, our payment gateway. Card, UPI and bank details are entered with the gateway and never reach our servers.

Do I get a GST invoice?

Yes. GST is shown before you pay, and a tax invoice carrying our GSTIN is on the Billing page after every successful payment.

Is there a subscription or platform fee?

No. Credits are prepaid in INR and charged per token at the model’s listed price on the pricing page. No subscription, no platform fee, no minimum monthly spend.

What happens when a route fails?

On models with failover enabled, a route that times out, is overloaded or returns a 5xx before producing anything billable hands the request to the next healthy route. The request is reserved once and settled once, so a failover never bills twice.

Can credits be refunded?

Credits are prepaid, non-transferable and usable only on Top Billing. Refunds follow the refunds and credits policy.

Start building
in minutes.

Create an account, add credits by UPI, create a key, and send your first request with the SDK already in your codebase.