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

# Usage, credits, and limits

> Understand what Cloud meters, start with bounded workloads, and inspect your usage.

Use a small input batch to check output quality and observed usage before expanding a job. The [dashboard](https://chowder.ai/dashboard) shows your credits, usage, and plan.

## What gets metered

| Processing | Metered work |
| - | - |
| General inference | Input and generated output tokens, with image tokens accounted for separately |
| Text Boolean inference | Input tokens on the specialized Boolean route |
| Embeddings | Text and image input tokens |
| Documents | Successfully parsed pages |
| Media | Processed audio/video duration under the selected media operation |
| Dedicated GPU startup and teardown | Applicable startup allowance and idle time for held GPU units |

Processing charges and startup/idle charges are separate. Active work is charged through its processing units; do not estimate a whole query from token counts alone. See **Billing** for your plan and [pricing](https://chowder.ai/pricing) for rates.

The first request can wait for managed compute to start. Small requests can therefore have a different cost and latency profile from a larger batch. Treat measured cold and warm runs separately when comparing performance.

## Start with a bounded input

A final `LIMIT` bounds returned rows. Filters, sorting, and aggregation can require processing additional inputs before those results are known.

For an initial trial, bound the input relation **before** inference or embedding. This query sends at most 100 reviews to the model:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    title,
    infer(
        content,
        'Does this review describe a product failure?',
        BOOL
    ).output AS product_failed
FROM (
    SELECT
        title,
        content
    FROM read_parquet('hf://buckets/chowderai/chowder-demo/parquet/data/amazon-reviews/*.parquet')
    LIMIT 100
) AS batch;
```

For text, [count tokens](https://docs.chowder.ai/guides/token-profiling.md) to understand input size; tokenizer choice, instructions, output length, image processing, and hardware also affect the workload.

Inspect [**Usage**](https://chowder.ai/dashboard/usage) after the batch, then increase its size deliberately.

## Reuse completed processing

Matching successful results in your application's cache can avoid another Cloud processing call. Changing a downstream aggregation can reuse the same classifications; changing the model, prompt, output schema, or input may require new work.

Caching avoids the repeated operation. It does not promise zero total Cloud charges if other work or GPU resources remain active. See [Caching](https://docs.chowder.ai/concepts/caching.md) for reuse conditions and [Data handling](https://docs.chowder.ai/cloud/data-handling.md) for where the cache lives.

## Plans and credits

Cloud processing requires an active plan and available credits. Plan credits reset with the billing period. Prepaid top-up credits are separate; manage both in [**Billing**](https://chowder.ai/dashboard/billing).

When credits are exhausted, Cloud stops work. Work delivered before the stop is charged, and work already in flight can make the balance slightly negative. A stopped query can therefore consume credits without returning a complete materialized table. Check usage before retrying a large job.

## GPU and capacity limits

Your plan limits the GPUs your account can hold at once across running work. A query combining document parsing, inference, and embedding can need multiple managed processing stages. Other concurrent queries also contribute to the account's limit.

An explicit `Engine(remote=True, num_gpus=...)` requests GPU parallelism for supported stages. A request above your plan's limit runs with fewer GPUs and a warning. A query fails with `CHOWDER_PLAN_GPU_LIMIT` only when it can't get one GPU for each processing stage. Start with the default configuration; use [Python API](https://docs.chowder.ai/reference/python-api.md) when tuning a workload.

| Error | What to do |
| - | - |
| `CHOWDER_PLAN_INACTIVE` | Check the account's plan in **Billing** |
| `CHOWDER_CREDITS_EXHAUSTED` | Check your balance and add credits or wait for renewal |
| `CHOWDER_PLAN_GPU_LIMIT` | Reduce concurrent work or the query's required GPU stages; check your plan limit |
| `CHOWDER_GPUS_RELEASING` | Retry in a few seconds; your previous query's GPUs are still being released |
| `CHOWDER_CAPACITY_BUSY` | Retry later; the service currently cannot admit more GPU work |

These errors raise `chowder.SQLError` with the code in its `code` attribute. For connection and authentication problems, see [Troubleshooting](https://docs.chowder.ai/reference/troubleshooting.md#a-remote-client-cannot-connect).


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