Endpoints / Account and integration
Estimate request credits
Calculate a request's maximum charge at the current published rate without executing the data query. Eligible sandbox reads and discovery operations can cost zero.
/api/v1/billing/estimateKeylessFree No API key is required.
Response
The response has these fields.
operationstringrate_card_versionstringmaximum_creditsintegerexactbooleanunitsobject
Workflow examples
What is the maximum cost of a two-block price request?
POST https://api.quantset.dev/api/v1/billing/estimate
Content-Type: application/json
{
"method": "GET",
"path": "/prices",
"params": {
"ticker": "NVDA",
"limit": 251
}
}Inspect maximum_credits, exact and the returned tariff version before issuing the same data request. Pass X-Max-Credits on that read to enforce your budget.
Reading the results
Estimates use the submitted selectors and page bounds at the published tariff. The actual receipt reports the settled charge, including any applicable free access.
Coverage and limits
An estimate does not reserve credits or fetch observations. Missing data, eligible sample access and returned record counts can reduce the final charge.
Related guides
Use with agents
AI agents call this endpoint over HTTP, or read its Markdown version. Connect Claude, ChatGPT, Cursor or your own agent
Errors
| Status | Code | What to do |
|---|---|---|
| 413 | request_too_large | Reduce the size of the request body. |
| 422 | invalid_parameter | Correct the named parameter and retry. |
| 429 | rate_limited | Wait for Retry-After seconds. |
| 500 | internal_error | The request could not be completed. |
| 503 | temporarily_unavailable | Retry safe reads after a short delay. |
Questions
- Can I try Estimate request credits without signing up?
- Yes. This operation is keyless.
- Can an AI agent use this?
- Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.
- What does null mean in the response?
- The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.
More in account and integration
POST /api/v1/webhooksDelete a webhookDELETE /api/v1/webhooks/{webhook_id}Test a webhookPOST /api/v1/webhooks/{webhook_id}/testPartner catalogGET /api/v1/partner-catalogCreate an agent sandbox keyPOST /api/v1/agent/signupCreate an agent checkout linkPOST /api/v1/agent/checkout-linkSubmit API feedbackPOST /api/v1/feedbackSandboxPublished credit rate cardGET /api/v1/billing/rate-card