---
title: "Credit Balance"
method: GET
path: "/v1/account/credits"
tags: ["Account Management", "Credits"]
---

# Credit Balance

`GET /v1/account/credits`

## Request

- Base URL: `https://api.swarms.world`
- URL: `https://api.swarms.world/v1/account/credits`
- Auth: none declared. Required headers: `x-api-key`

Retrieves the current API credit balance for the authenticated user.

## Headers

- `x-api-key` string, required

## Response `200`

Successful Response

- CreditBalanceOutput
  - `credit` number, required: Purchased credit balance. The only balance that pays for API usage.
  - `free_credit` number, required: Free credit balance. Shown for reference only; free credits no longer pay for API usage.
  - `referral_credits` number, required: Referral credits balance. Shown for reference only; referral credits no longer pay for API usage.
  - `total_credits` number, required: Spendable balance, equal to `credit`. This is the balance checked against the $1.00 minimum on billable routes.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `500c79520e41`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/changes/v1/account/credits/get.md)

---

[API](https://skmtc.dev/the-swarm-corporation/apis/swarms-api.md) - [All operations](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/llms.txt) - [OpenAPI document](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/revisions/fca99f497199?raw)
