estimate_cost
Estimate audio analysis cost anonymously and free before committing. Read analysis_options for eligible anonymous one-off Checkout, trial duration fit and key-based banked-token use; these do not verify balance or trial entitlement. Eligible quotes can include checkout.upfront_payment_estimate from the current charge builder; this is not a reserved price or a saved-link charge. Review the hosted amount before payment. Returns estimated dollars, job_estimate_id and expires_at. Review the estimate before spending; final cost depends on measured duration and completed analysis, and Checkout can collect a buffered amount with refund thresholds. If processing or payment returns estimate_pricing_changed, get a fresh free estimate, present the new price, and wait for explicit user approval before processing or payment. Never silently retry analysis or purchase.
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": {
"audio_url": "<audio_url>",
"tools": "<tools>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | Yes | Analysis tools to price. Available in v1.0: bpm, key, waveform. Coming soon: structure, chords. | |
| audio_url | Yes | Publicly accessible URL of the audio file (MP3, WAV, FLAC, OGG, Opus). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| error | No | Machine-readable error code. | |
| tokens | No | Estimated Pulse tokens. | |
| details | No | Additional structured context from Pulse. | |
| message | No | Human-readable recovery guidance. | |
| cost_usd | No | Estimated analysis cost in USD. | |
| breakdown | No | Per-tool token and cost estimate. | |
| retryable | No | Whether the caller may retry after changing state or waiting. | |
| expires_at | No | ISO timestamp when the estimate expires. | |
| content_type | No | ||
| cost_display | No | Human-readable USD estimate. | |
| duration_source | No | Duration provenance: prior worker measurement, declared WAV or MP3 frame metadata, MP3 bitrate inferred from a bounded prefix, assumed format byte rate, or placeholder. Prefix bitrate cannot establish that the whole file is constant bitrate. All quotes remain estimates; processing measures actual audio. | |
| job_estimate_id | No | Estimate identifier valid for the configured TTL. | |
| analysis_options | No | Advisory continuation choices for this estimate, not a reserved charge, verified balance, trial grant or host certification. | |
| normalize_source | No | ||
| duration_inferred | No | ||
| audio_url_original | No | ||
| audio_url_normalized | No | ||
| content_length_bytes | No | ||
| duration_estimate_sec | No | Estimated audio duration in seconds. |