Credits
Get credits
Get your account's total credits and settled usage in one currency, using a management key.
https://api.numes.ai/api/v1/creditsName exactly one currency with currency, USD or BTC; balances are held per currency and never combined. total_credits minus total_usage is the account's balance in that currency, without holds for running requests. BTC amounts are in satoshis. A missing or unknown currency returns 400. Per-key spending is available from Get current key.
Authorization
AuthorizationheaderRequired
Bearer management key. Management keys manage inference keys and cannot run inference. Authorization: Bearer $NUMES_MANAGEMENT_KEY
Headers
X-Request-IdstringCorrelation ID, not an idempotency key. Inference request IDs recorded with a generation are unique per account. A traffic-admitted request reusing a recorded ID returns 400 invalid_request. Traffic admission rejection takes precedence over this conflict, including for reused IDs; it performs no generation lookup and writes no generation, result or attempt. Rate-limit rejection returns 429 rate_limited with Retry-After; an inference limiter outage retains 500 server.
Length1–128
Query parameters
Responses
200Credit totals in the requested settlement currencyapplication/json
BodyCreditsResponseapplication/json
ErrorCompatible error envelopeapplication/json
Headers