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

# Billing

Pricing for API is charged along two dimensions. All details can be found at [dune.com/pricing](https://dune.com/pricing)

<Note>
  If your execution fails, then no credits are chargd. If you execute a query but never pull the results, you are only charged for the execution.
</Note>

| Dimension            | Charge                                                                                                                              |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Executions           | 10 credits per medium query engine executions <br /> 20 credits per large query engine executions                                   |
| Datapoints (Results) | 1 credit per 1,000 datapoints on Free <br /> 1 credit per 5,000 datapoints on Plus <br /> 1 credit per 25,000 datapoints on Premium |
| Storage              | 1MB on Free <br /> 15GB on Plus <br /> 50GB on Premium                                                                              |
| Queries Endpoint     | Available on Plus and Premium                                                                                                       |
| Webhooks (Alerts)    | 1 on Free <br /> 5 on Plus <br /> 50 on Premium                                                                                     |

A datapoint applies to query results after the query is run, and can in most cases be thought of `rows * columns` with an additional limit of 100 avg bytes per cell in a set of results. This can be expressed as:

```math
Credits = Datapoints/1000 = max(rows*columns, ceil(totalbytes/100))/1000
```

Any API usage billing will be based on what account the API key is associated with. If you use your team api key to call a public query belonging to yourself, the billing will be associated to the team (and vice versa).
