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

# Credits

> Understand how live Image API jobs reserve paid credits.

Sandbox keys do not consume credits. Live keys reserve paid credits when a job is accepted.

To create live jobs, the account must have:

```txt theme={"theme":{"light":"github-light","dark":"github-light"}}
API access enabled
paid credits available
available paid credits >= required job cost
```

Free credits are for the Web Studio only and are not API-eligible.

## Public tool costs

Call:

```bash theme={"theme":{"light":"github-light","dark":"github-light"}}
curl https://aigenstudio.app/api/v1/tools
```

The response includes current public credit costs for every available Image API tool.

Core costs:

| Tool             | Credits | Unit   |
| ---------------- | ------: | ------ |
| Image Editing    |       5 | image  |
| Image AI Edit    |       8 | output |
| AI Background    |       8 | output |
| Image Generation |      10 | output |
| Ad Creative      |      10 | output |

## Reservation model

When a live job is accepted, AI Gen Studio reserves the full required paid-credit amount. On success, reserved credits are consumed. If processing fails before billable work completes, reserved credits are released according to the failure policy.

If the account does not have enough paid credits, the API returns `402 insufficient_api_credits`.
