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

# Billing

API access requires an active trial or a paid plan. Free access after a trial is view-only and does not include API exports, data writes, or alerts. Pricing for API usage is charged along several dimensions. All details can be found at [dune.com/pricing](https://dune.com/pricing).

<Note>
  Failed executions are not always charged. Queries that run until Dune's execution timeout, executions stopped by a user-defined resource/cost cap, and user-cancelled executions after compute has been used may consume credits for resources already used.

  Dune does not charge for SQL syntax/semantic errors, internal query-engine failures, or query-engine capacity-limit failures such as memory or stage limits. For a specific execution, check `execution_cost_credits` on the [status endpoint](/api-reference/executions/endpoint/get-execution-status).
</Note>

## Executions

Credits are consumed based on actual compute resources used for each query execution. The performance tier you select affects credit consumption. If you execute a query but never pull the results, you are only charged for the execution.

## Data Export

Credits are consumed when exporting query results via API or CSV.

| Plan | Credits per MB Exported |
| - | - |
| Free (view-only) | Not available |
| Analyst | 10 |
| Plus | 2 |
| Enterprise | Custom |

## Data Writes

Credits are consumed when writing data (table creation, data insertion, uploads).

| Plan | Credits per GB Written |
| - | - |
| Free (view-only) | Not available |
| Analyst | 3 |
| Plus | 3 |
| Enterprise | Custom |

<Note>
  Minimum charge is 1 credit per write operation.
</Note>

## Storage

Storage limits are per-plan caps, not charged per-credit.

| Plan | Storage Limit |
| - | - |
| Free (view-only) | No data writes |
| Analyst | 1 GB |
| Plus | 15 GB |
| Enterprise | Unlimited |

## Webhooks (Alerts)

| Plan | Webhooks |
| - | - |
| Free (view-only) | Not available |
| Analyst | 5 |
| Plus | 5 |
| Enterprise | Custom |

## Queries Endpoint

Available on Plus and Enterprise plans.

## Data Transformations Billing

Data Transformations is an Enterprise-only feature with usage-based credit consumption.

### Credit Consumption

#### Compute Credits

* Same as Fluid Engine credits for query execution
* Charged based on actual compute resources used
* Depends on query complexity and execution time

#### Write Operations

* **Minimum 1 credit** per write operation
* Scales with data volume (GB written)
* Applied to INSERT, MERGE, CREATE TABLE AS SELECT, etc.

#### Maintenance Operations

* OPTIMIZE, VACUUM, and ANALYZE operations consume credits
* Based on compute resources and data written during maintenance
* Can be automated with dbt post-hooks

See [dbt Connector documentation](/api-reference/connectors/dbt/overview) for more details.


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