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.
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.
https://api.topbilling.in/v1import 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)
x-request-id: tb_req_…, the same ID as its charge.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.
The official OpenAI and Anthropic SDKs, plain HTTP and Claude Code. Set the base URL and use a Top Billing key and model ID.
Failover hands a request to the next healthy route before anything billable happens, so a retry behind the scenes never charges you again.
Each price is the model’s active pricing version: the row your requests are charged at. INR per 1M tokens, before GST.
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 worksChat 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.
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,
)
Native-lane requests are never failed over behind your back. Everything else follows the model’s route order.
More in the documentation and the legal documents.
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.
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.
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.
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.
Yes. GST is shown before you pay, and a tax invoice carrying our GSTIN is on the Billing page after every successful payment.
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.
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.
Credits are prepaid, non-transferable and usable only on Top Billing. Refunds follow the refunds and credits policy.
Create an account, add credits by UPI, create a key, and send your first request with the SDK already in your codebase.