Estimate the cost of a run
estimate_costEstimate what an AI, verify, scrape or Flow run would cost, for a number of rows, for a list (for a Flow too, where Flows on lists are on), or (for a Flow) for the rows on a connected sheet. A Flow estimate also returns needed_to_start_cents, the balance a run needs to start; with spreadsheet_id it also returns output_columns and reused_columns: the columns the Flow would write (token to letter), and which of them already exist on the sheet. Uses the same calculation as the Sorzio add-on. For your workspace the estimate is what Sorzio will charge: $0.00 on an internal workspace, for AI on your own key on Pro or Scale, and for Verify on your own No2Bounce key on Scale (charge_note says why). needed_to_start_cents is the balance the run holds while it runs, which can be more than the estimate; the unused part is returned when the run ends. A scrape estimate is the most the run can cost; usual_cost_cents is what most runs are charged. Signed out, estimates are list prices. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Kind flow only. Tab name. Defaults to the first tab. | |
| kind | Yes | ||
| rows | No | Row count. Up to 25,000 for ai, verify and scrape, and up to 50,000 for a Flow. | |
| model | No | Model id from list_models. Defaults to openai/gpt-4o-mini for kind ai when omitted. | |
| prompt | No | ||
| flow_id | No | Required for kind flow. The Flow's flow_id from list_flows. | |
| list_id | No | Use this list's row count instead of rows (for kind flow too, where Flows on lists are on). Rows a Flow removed are not counted. | |
| header_row | No | Kind flow only. Row number of the header. Defaults to 1. | |
| web_search | No | ||
| enrich_type | No | ||
| input_columns | No | Kind flow only. Maps a Flow input to a sheet header when the names differ, for example {"email": "Work email"}. | |
| system_prompt | No | ||
| spreadsheet_id | No | Kind flow only, instead of rows: the sheet id or full docs.google.com URL. The rows are counted on the Flow's input columns. | |
| only_rows_where | No | When estimating a list run, count only the rows that match this filter. | |
| scrape_provider | No | ||
| verify_provider | No | ||
| reasoning_effort | No |