DocsAPI reference
Pricing and billing
1 credit pays for ₹1 of AI usage. Provider prices convert from USD at ₹85 per dollar; calls are charged at the provider's price with a 0% fee, rounded up to a whole credit.
The formula#
credits = max(2, ceil(provider_usd × 85)) # no fee on topprovider_usd is the model's published price applied to the tokens the provider reports: input tokens at the input price, output tokens at the output price, cached input at the model's cache prices when it has them. Models with long-context tiers are priced by the size of the prompt, and the tier applies to the whole call.
Failed calls are free. A provider that cannot be reached, a provider error, an invalid body or an empty balance never produces a charge.
What requests cost#
Worked out by the same pricing function that bills you, for a mid-priced model at $3 in and $15 out per million tokens. Every model's own price is on GET /v1/models.
| Request | In / out tokens | Credits | ≈ INR |
|---|---|---|---|
| A quick questionone line in, a short answer out | 20 / 60 | 2 | ₹2.00 |
| A normal chat turna paragraph each way | 300 / 500 | 2 | ₹2.00 |
| A long questiona page of context, a detailed answer | 2,000 / 1,500 | 3 | ₹3.00 |
| A big taskreview a whole codebase | 12,000 / 4,000 | 9 | ₹9.00 |
| A huge taska codebase-sized prompt | 60,000 / 8,000 | 26 | ₹26.00 |
Headers on every billed response#
| Header | Meaning |
|---|---|
x-vels-credits-charged | What this request cost, in credits. |
x-vels-balance | Your balance after the charge. |
x-request-id | A unique id for this request, on every /v1 response, for support. |
x-ratelimit-limit · x-ratelimit-remaining | Your per-minute allowance and what is left of it, on authenticated responses. |
Non-streamed calls always carry the two billing headers. Proxied streams cannot, because headers go out before the answer exists; see Streaming.
A thin balance#
Velaron.AI never lets an answer stop halfway because the credits ran out. Before a call goes out it works out the most the answer could cost, from your requested max_tokens or the model's own maximum (16,384 when the provider publishes none):
- If your available balance covers it, the request is sent unchanged and that amount is held until the call settles. Holds are what
GET /v1/accountreports asheld. - If it does not, the max-tokens field is lowered to what you can afford, never below 16 tokens, and the call goes out with that.
- If even 16 tokens of answer do not fit, the call is refused with
402 insufficient_creditsand the message tells you how many credits it would need.
A call is allowed whenever the balance is above zero, so the very last call can take it slightly below zero. Free models are never shortened.
Counting tokens before the provider does#
For the balance check, text is estimated at four characters per token and each attached image or file part counts as a flat 1,000 tokens. The provider's reported usage is what you are actually charged for; the estimate only decides whether the call may start.
