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

# Why doesn't my LLM bill grow when I rerun the suite?

> Qodex uses LLM calls for authoring and recovery, while stable saved API and UI scenarios replay deterministically.

# Why doesn't my LLM bill grow when I rerun the suite?

Qodex uses the LLM to create tests, understand changes, and recover from drift.

It does not call the LLM for every step of every saved replay. That is why rerunning a saved suite should not make your model bill grow linearly with suite size.

## API replay

Saved API scenarios replay as normal HTTP requests.

The runner substitutes variables, sends the request, evaluates assertions, and records the result. No model call is needed on the stable replay path.

## UI replay

Saved UI scenarios store browser actions that worked for each step.

On replay, Qodex runs those cached actions directly in Chromium. If the UI changes and the cached action fails, Qodex may use one recovery call to resolve the original intent against the current page.

Recovery is the exception, not the normal replay path.

## When the LLM is used

Qodex uses the LLM for:

* Authoring new scenarios.
* Reading specs, pages, and project context.
* Exploring unknown API or UI surfaces.
* Recovering from drift.
* Classifying failed results and explaining failures and findings.
* Answering questions in chat, including **Ask in chat** on a test run result.
* Reviewing generated scenarios before saving.

It is not used for stable API replay or stable UI replay.

## Why the first run costs more

The first run usually includes discovery and authoring.

Qodex has to understand the surface, decide what to test, create scenarios, resolve UI steps, and verify that saved tests work. Later runs reuse that work.

## Next steps

> [card] [Usage and cost caps](https://qodex.ai/docs/account-usage-and-cost-caps.md)
>
> Understand project spend windows.

> [card] [Replay cache and self-healing](https://qodex.ai/docs/ui-testing-replay-cache.md)
>
> Learn how UI reruns avoid repeated model work.

> [card] [Bring your own key](https://qodex.ai/docs/integrations-byok.md)
>
> Route model usage through your provider account.

> [card] [How Qodex works](https://qodex.ai/docs/how-qodex-works.md)
>
> See the agent lifecycle.


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