/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/infoReturns 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 keyinfo.max_budgetMaximum budget for this keyAvailable 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
}
}