/key/info

Check your key's remaining balance and spend. Budget lives on the standard /key/info endpoint — authenticate with your API key and it returns that key's own budget.

GET
/key/info

Returns the calling key's spend and budget. Authenticate with your API key in the Authorization header; the key in the URL is not required.

Request

Request
curl https://api.fastmetal.ai/key/info \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

info.spendTotal amount spent on this key
info.max_budgetMaximum budget for this key

Available balance is max_budget − spend. All amounts are in the smallest currency unit (yen for JPY).

Response
{
  "key": "sk-...",
  "info": {
    "spend": 1234,
    "max_budget": 10000
  }
}