Skip to main content
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.
curl -sS "https://api.developer.pixelcut.ai/v1/credits" \
  -H "X-API-Key: $PIXELCUT_API_KEY"
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());
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.