Velaron.AI

DocsAPI reference

Account and usage

Two read-only endpoints so your code always knows where it stands, without a dashboard.

GET/v1/account

curl
curl https://velaron.ai/v1/account -H "Authorization: Bearer $KREDIT_KEY"

{
  "object": "account",
  "user_id": "did:privy:cm1abc…",
  "email": "you@example.com",
  "key": { "name": "Cursor", "prefix": "kred_sk_ab12…wxyz" },
  "balance": 4988,
  "held": 120,
  "available": 4868,
  "usd_value": 4.988,
  "total_spent": 3120,
  "rate_limit": { "requests_per_minute": 60 }
}
balanceinteger

Every credit the account holds right now.

heldinteger

Credits reserved by calls still running (streams, images, video). Released when they settle.

availableinteger

balance − held, never below zero. What a new call can spend.

usd_valuenumber

The balance divided by 85; inr_value is the same in rupees at ₹85 to the dollar.

total_spentinteger

Everything this account has ever spent, across all its keys and the playground.

A key sees only what it needs to spend. Never the account's other keys, nor its purchases.

GET/v1/usage

curl
curl "https://velaron.ai/v1/usage?from=2026-09-01&to=2026-10-01&limit=2" -H "Authorization: Bearer $KREDIT_KEY"

{
  "object": "list",
  "period": { "from": "2026-09-01T00:00:00.000Z", "to": "2026-10-01T00:00:00.000Z" },
  "total_credits": 1830,
  "by_model": [{ "model": "openai/gpt-4o", "calls": 41, "input_tokens": 120400, "output_tokens": 38100, "credits": 1830 }],
  "data": [
    { "id": 912, "created_at": "2026-09-22T08:14:02.311Z", "key": "3d9e…", "model": "openai/gpt-4o", "input_tokens": 300, "output_tokens": 500, "credits": 11 },
    { "id": 911, "created_at": "2026-09-22T08:13:40.008Z", "key": "playground", "model": "openai/gpt-4o", "input_tokens": 20, "output_tokens": 60, "credits": 2 }
  ],
  "has_more": true,
  "next": 911
}
from · todate

Any date new Date() understands, such as 2026-09-01 or 2026-09-01T12:00:00Z. from is inclusive, to exclusive. A date that cannot be parsed answers 400 invalid_query.

limitinteger

Rows per page, 1 to 500. Defaults to 100.

beforeinteger

Pass the previous page's next to continue. Rows come newest first.

total_credits and by_model cover the whole period, not just the page. key is the id of the key that made the call, or playground for calls made from the browser playground.