Estimate Cost
estimate_costFREE: Estimate the x402 USDC cost of any tool or multi-step workflow before paying. Use this before calling paid tools to check pricing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | Tool name to estimate cost for (e.g. "analyze_document", "extract_web", "summarize") | |
| depth | No | Workflow depth hint for filing/contract tools. Default: standard | |
| query | No | Optional analysis query. Include it for exhaustive/high-output requests so the preview matches the x402 quote. | |
| workflow | No | Optional list of tool names for a multi-step workflow. Returns total cost for the full pipeline. | |
| input_source | No | Input source hint used to explain cache/download behavior | |
| content_length | No | Approximate character count of your input document (used for LLM cost estimation) | |
| content_sample | No | Optional short content excerpt for multilingual/high-output pricing hints without sending the full document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | Pricing explanation | |
| estimates | Yes | Cost estimates per tool | |
| available_tools | Yes | List of available paid tools |