> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.magica.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Can I know upfront how many credits a task will use?

It depends on how you use Magica.

- **Tools:** each tool's page shows an estimated credit cost before you run it. Developers can also request an estimate through the API.
- **Super Agent tasks:** the cost can't be known exactly upfront. A task may use several models and tools, and the steps depend on what it finds along the way. For large tasks, Super Agent asks you to approve the expected spend before it continues.

In every case, credits are based on actual usage. Magica holds an estimate while a run is in progress, then charges the actual amount when it finishes.

- Track your detailed credit usage at [magica.com/usage](https://magica.com/usage).
- Failed generations are usually refunded. See [Do I get charged for failed generations?](https://magica.com/helpdesk/credits-and-usage-tracking/do-i-get-charged-for-failed-generations) for the exceptions.