AI Credits
The balance AI work draws from.
Reading your balance, the usage behind it, credit rules, sending credits, buying a pack and auto recharge are done from the dashboard, where you are signed in. None of them is a method in the public API, so there is no call to make with an API key to read or change them.
Two public methods are close to credits. You pass your API key with each; see Calling a method for how.
generate_release_noteswrites the release notes of a build from what changed since the last release. It only reads, and the AI call is metered to the account that makes it, so it spends credits.get_site_build_image_modessays which image modes a website build may use:svg,stock,gen_lowandgen_high. The two that generate pictures with AI need a paid membership and a workspace credit plan; otherwise they are locked.
A good answer has code 1. A refused one has a negative code and says why in data.