Skip to content

AI Credits

The balance AI work draws from.

Open AI Credits
Checked against the dashboard on November 15, 2026

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_notes writes 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_modes says which image modes a website build may use: svg, stock, gen_low and gen_high. The two that generate pictures with AI need a paid membership and a workspace credit plan; otherwise they are locked.
curl -s https://xuda.ai/cpi/get_site_build_image_modes \
  -H 'content-type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
const res = await fetch('https://xuda.ai/cpi/get_site_build_image_modes', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ api_key: 'YOUR_API_KEY' }),
});
const { code, data } = await res.json();
import requests

res = requests.post(
    'https://xuda.ai/cpi/get_site_build_image_modes',
    json={'api_key': 'YOUR_API_KEY'},
)

A good answer has code 1. A refused one has a negative code and says why in data.

How is this guide?

Last updated on November 12, 2026