estimate_cost
Get the exact price to analyze an audio file before committing. Always call this first. Returns cost in dollars and a job_estimate_id valid for 30 minutes. Free — never charged.
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. | |
| job_estimate_id | No | Estimate identifier valid for the configured TTL. | |
| 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. |