cURL
curl --request GET \ --url https://api.swarms.world/v1/account/credits \ --header 'x-api-key: <x-api-key>'
{ "credit": 123, "free_credit": 123, "referral_credits": 123, "total_credits": 123 }
Retrieves the current API credit balance for the authenticated user.
Documentation IndexFetch the complete documentation index at: https://docs.swarms.ai/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.swarms.ai/llms.txt
Use this file to discover all available pages before exploring further.
Successful Response
Regular credit balance.
Free credit balance.
Referral credits balance.
Total available credits (sum of all credit types).