discovery_estimate
Estimate the credits required to run a Disco analysis.
Returns `required_credits` for public (always 0) and private, with private
split by whether LLMs are enabled (use_llms=False is faster, use_llms=True
adds smarter preprocessing, literature context and a written summary).
Also returns per-visibility depth caps and accepted file formats. No
authentication required — when an API key is supplied, also returns the
caller's available credits.
Call this before discovery_analyze whenever cost or feasibility is unclear.
Args:
file_size_mb: Size of the dataset in megabytes.
num_columns: Number of columns in the dataset.
analysis_depth: Search depth (1=fast, higher=deeper). Used to compute the
private-run cost. Default 2.
api_key: Disco API key (disco_...). Optional. When provided, the response
includes `account.available_credits`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| num_columns | Yes | ||
| file_size_mb | Yes | ||
| analysis_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |