Repository navigation
Analyze and moments pricing: one batched model request #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b27b1a2
957971c
034de80
8adc3c8
24450a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,4 +60,4 @@ Store `measured_with` with every result. It changes whenever the measurement's r | |
|
|
||
| ## Pricing | ||
|
|
||
| `$0.01` per song measured, plus the [analyze](/api-reference/songs/analyze) rate for each moment described: `$0.05` per model call plus `$0.001166` per second of inference time. The balance must hold `$0.01` plus `$0.05` for every moment that may be described before anything runs: `$0.36` with the default `describe: true`, `$0.01` with `describe: false`, and `$0.01` plus `$0.05` per type with a list. Otherwise the response is `402` and nothing is charged. A moment whose description fails comes back without a description and is not charged, and a failed measurement is not charged. See [Credits](/credits). | ||
| `$0.01` per song measured, plus one batched [analyze](/api-reference/songs/analyze) request for the moments described: `$0.05` once plus `$0.001166` per second of inference time. The balance must hold `$0.01`, plus `$0.05` when any moment may be described, before anything runs: `$0.06` with the default `describe: true` or a list of types, and `$0.01` with `describe: false` or an empty list. Otherwise the response is `402` and nothing is charged. A moment the model does not describe comes back without a description and is not charged, and a failed measurement is not charged. See [Credits](/credits). | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clarify charges for partial descriptions. A missing
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: The new pricing says all moment descriptions share one batched model request, but
SongMomentsRequest.describestill says each description is charged at the analyze rate. Update that schema description to document one base charge and aggregate inference time.Prompt for AI agents