Skip to navigation

Estimate a signal set preview

Prices a preview of one version over an agent’s recent completed traces without calling a model: the traces it would read, its expected cost and the projected monthly cost. When the response carries an estimateId, the preview must send it, and it then evaluates exactly the traces this estimate counted, selected as of tracesThrough.

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired
versionNumberintegerRequired>=1

Request

This endpoint expects an object.
agentIdstringRequired

Price a preview over this agent’s most recent completed traces.

limitintegerOptional1-50
Traces to read, default 20, at most 50.

Response

Estimate
costUsddouble
What the preview is expected to spend.
monthlyTraceVolumeinteger
projectedMonthlyUsddouble

Mean unit cost times the agent’s last-30-day trace volume.

tracesThroughstring
The traces counted are the newest ones started at or before this time.
tracesToReadinteger
Completed traces the preview would evaluate.
estimateExpiresAtstringOptional

When estimateId stops being accepted, 24 hours after it is issued.

estimateIdstringOptional
When present, the preview must send this id. It previews once, over only the traces this estimate counted.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error