Skip to main content

Budgets per API key

A Spend Limit on Every LLM API Key

Give each key a budget in rupees, for its lifetime, per day or per month. When the budget is used, that key stops; everything else keeps running.

# Two settings change in your existing code

base_url = "https://api.aicredits.in/v1"
api_key  = "sk-your-aicredits-key"
  • No international card needed
  • Minimum ₹50 top-up
  • Credits valid 1 year

Three limits you can set

  • Budget per key: a rupee amount, for the key's lifetime or reset each day or month
  • Rate limit per key: requests per minute
  • Expiry date per key, for demos, trials and contractors

And one you get by default

The wallet is prepaid, so the balance is the ceiling for the whole account. A coding agent in a loop or a leaked key can use up a key's budget, and at worst the wallet, but it cannot run up a bill.

What you are budgeting for

Read from the live catalog, in rupees.

Calculate your cost
ModelInput / 1M tokensOutput / 1M tokensProvider
GPT-6 Luna₹9.75₹48.77openai
GPT-6.1 Sol₹195.07₹975.34openai
Claude Sonnet 5.5₹195.07₹975.34anthropic
Claude Haiku 5.5₹9.75₹48.77anthropic
Gemini 3.8 Flash₹73.15₹365.75google
DeepSeek V4.1 Flash₹29.26₹117.04deepseek

Prices are read from the live catalog and include the 5% forex buffer and the default 5% markup. They change with the live USD/INR rate.

What you get

OpenAI-compatible

Drop-in endpoint for chat, embeddings, and images. No SDK changes needed.

Automatic failover

If a provider errors or rate-limits you, we retry on the next available route.

INR wallet

Prepaid wallet in ₹. Top up via UPI, Net Banking, or Debit Card.

Budget controls

Per-key rate limits and spend budgets. Prevent runaway costs.

Make your first API call

No international card needed.

  1. 01

    Create account

    Sign up with your email. No international card needed.

  2. 02

    Add ₹ via UPI

    Instant wallet top-up via Razorpay — UPI, net banking, or debit card.

  3. 03

    Replace base_url

    One line change and call any model — OpenAI, Claude, Gemini, DeepSeek.

Frequently asked questions

How do I set a spend limit on an LLM API key?

When you create or edit a key in the dashboard, enter a budget in rupees and choose whether it applies for the key's lifetime, per day or per month. You can also set a requests-per-minute limit and an expiry date.

What happens when a key reaches its budget?

Requests with that key are refused with a 402 error that says the key's budget is exceeded. Other keys on the account keep working. Raise the budget in the dashboard to resume.

Is the limit exact?

It is a cap on recorded usage, checked before each request. The cost of a request is only known when it finishes, and usage is recorded in short batches, so a burst of requests can go slightly past the budget before the key stops. Treat it as a guard against runaway spend and set it with a little margin.

Is there a limit for the whole account?

Yes: the wallet. It is prepaid and cannot go below zero, so the balance you loaded is the most the account can spend.

Can I give each teammate or project a separate limit?

Yes. Create one key per person or project, each with its own budget and rate limit. For teammates with their own login, Teams lets you allocate part of your wallet to each member.

Can I manage budgets from code?

Yes. The Management API can create keys with a budget, change a key's budget, rate limit or expiry, and read usage, so a deployment script or an internal tool can do it.

Get an API key and make a first call.

Create your account, top up via UPI, and make your first API call. No international card needed.