typestrict.aidocs
APICredits

Get the balance

GET
/v1/credits

The credit balance.

Authorization

api_key
headerAuthorizationBearer <token>

An API key from Settings (ts_...).

Response Body

application/json
  1. response
balance*integer
Formatint64
per_model*integer

Credits one training costs.

Formatint64
curl -X GET "https://example.com/v1/credits"
{  "balance": 0,  "per_model": 0}