> ## Documentation Index
> Fetch the complete documentation index at: https://pixelcut.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Credits

> How to check your remaining credits and monitor your usage.

Pixelcut API uses a credit-based model. Each successful request consumes credits based on the operation.

## When are credits consumed?

In general:

* Credits are consumed on **successful** requests
* Failed requests typically do **not** consume credits
* In some cases (for example, safety moderation), credits may still be consumed

## How to check your remaining credits

Use the `GET /v1/credits` endpoint to fetch your balance programmatically.

```bash cURL theme={null}
curl -sS "https://api.developer.pixelcut.ai/v1/credits" \
  -H "X-API-Key: $PIXELCUT_API_KEY"
```

```js Node.js theme={null}
const resp = await fetch('https://api.developer.pixelcut.ai/v1/credits', {
  headers: { 'X-API-Key': process.env.PIXELCUT_API_KEY },
});
console.log(await resp.json());
```

```python Python theme={null}
import os, requests
resp = requests.get(
  "https://api.developer.pixelcut.ai/v1/credits",
  headers={"X-API-Key": os.environ["PIXELCUT_API_KEY"]},
)
resp.raise_for_status()
print(resp.json())
```

## How to monitor your usage

You can monitor your usage through the **developer dashboard**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.