API Key Spend Check

Checking your spend on the CBorg API Key Manager

Visit https://api.cborg.lbl.gov/key/manage to view your current API key status, spend and budget reset date.

Checking your spend using an API call

Assuming the API key is available in your user environment as $CBORG_API_KEY, you can check the current spend with /user/info, e.g.;

curl --location 'https://api.cborg.lbl.gov/user/info' --header "Authorization: Bearer $CBORG_API_KEY"

Note: You must allow up to 5 seconds since your last API call for spend logs to be written to the database.

Unable to use Free Models after Budget Cap Reached

Due to a bug in the API server, free models will stop working if the budget cap is reached. Email scienceit@lbl.gov for assistance.

Requesting a budget increase

You can increase your monthly budget yourself – up to $500/month – from the CBorg API Key Manager. Click Manage Project & Budget, then provide a valid Project ID + Activity ID (PID) and your approver’s email address. Only actual usage above the default monthly allocation is recharged against your PID. See Manage Budget & Project for details. For budgets over $500/month, email scienceit@lbl.gov.