Velaron.AI

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 for a call
credits = max(2, ceil(provider_usd × 85))  # no fee on top

provider_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.

RequestIn / out tokensCredits≈ INR
A quick questionone line in, a short answer out20 / 602₹2.00
A normal chat turna paragraph each way300 / 5002₹2.00
A long questiona page of context, a detailed answer2,000 / 1,5003₹3.00
A big taskreview a whole codebase12,000 / 4,0009₹9.00
A huge taska codebase-sized prompt60,000 / 8,00026₹26.00

Headers on every billed response#

HeaderMeaning
x-vels-credits-chargedWhat this request cost, in credits.
x-vels-balanceYour balance after the charge.
x-request-idA unique id for this request, on every /v1 response, for support.
x-ratelimit-limit · x-ratelimit-remainingYour 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/account reports as held.
  • 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_credits and 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.