The project's AI credits: the balance and each grant with credits left, soonest-expiring first.
Responses
200The project's AI creditsapplication/json · object
The project's AI credits
enabledbooleanrequiredWhether this server uses AI credits; when it doesn't, the balance is 0 and there are no grants
balancenumberrequiredCredits left: below 0 when a request ran past it, and the next credits cover that first
grantsarray of CreditGrantrequiredEach grant with credits left, soonest-expiring first
ShowHide 6 properties
idstringrequiredThe grant's id
sourcestringrequiredWhere it came from: FREE (given once to a new project), TOPUP (bought), PLAN (the plan's for its billing period) or MANUAL (given by the server's operator)
One of
"FREE""TOPUP""PLAN""MANUAL"creditsnumberrequiredCredits it gave
remainingnumberrequiredCredits it has left
expiresAtstring · nullablerequiredWhen what's left expires (ISO 8601); null: for good
createdAtstringrequiredWhen it was given (ISO 8601)
401No API key was sent, or it isn't valid: it was revoked, or whoever created it left the team.application/json · Error
errorobjectrequiredShowHide 2 properties
codestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
403It isn't allowed: the key is read-only, its creator isn't a project owner or admin where only they may, only a person can do it in the app, a setting is off, or someone's address isn't confirmed. The code says which.application/json · Error
errorobjectrequiredShowHide 2 properties
codestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
429Too many requests: past 600 a minute per key, try again after the seconds in the Retry-After header. Some operations have limits of their own (their description gives them), whose 429 has no Retry-After.application/json · Error
errorobjectrequiredShowHide 2 properties
codestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
500Something went wrong on Tuti's side. Try again in a moment.application/json · Error
errorobjectrequiredShowHide 2 properties
codestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change

