extract.estimate
Free probe + price quote for paid structured-data extraction from a public document URL (pdf_digital, pdf_scanned, image, csv, txt). Returns estimate_id, source_type, page/row count, quality_floor grade (A/B/C/D), cost_breakdown {est_input_tokens, est_output_tokens, model_cost_usdc, margin_x, price_usdc}, and 15-min expires_at. Use the estimate_id with extract.run to pay via x402 USDC on Base. Honest grading: jobs returned as grade D receive an 80% auto-refund.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_url": "<source_url>"
},
"name": "extract.estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_url | Yes | Public http(s) URL of the document to estimate. Max 10 MB. | |
| source_type | No | Optional hint. Server auto-detects from MIME type if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| error | No | ||
| pages | No | ||
| expires_at | No | ||
| estimate_id | No | ||
| source_type | No | ||
| status_code | No | ||
| quality_floor | No | Expected grade: A, B, C, or D. | |
| cost_breakdown | No |