Analyze and moments pricing: one batched model request
What changes
recoupable/api#1233 runs full_report's 13 sections, and song moments' descriptions, as one batched model request each. Each pays the $0.05 base once instead of once per call.
| Was | Now | |
|---|---|---|
full_report base | $0.65 (13 calls) | $0.05 + seconds of sections that returned |
full_report 402 gate | $0.65 | $0.05 |
| Moments (describe) gate | $0.36 | $0.06 ($0.01 measurement + $0.05) |
Edited:
- the analyze and moments pricing paragraphs (OpenAPI and reference pages),
- both 402 descriptions, plus the moments 402 example (
required_credits60000), - the
required_creditsdescription, - the
full_reportpreset andelapsed_secondsdescriptions ("one batched request", "one after another"), - the credits page.
Also regenerated manifest.json and llms-full.txt, and refreshed the inventory hash. apiSourceCommit is unchanged.
Order
This describes behavior that goes live when api#1233 merges. Merge that first, then this. After both merge, re-pin apiSourceCommit to the api#1233 merge commit, as #35 did for batch and moments.
Checks
pnpm docs:build, pnpm docs:check, pnpm test (145), pnpm type-check, pnpm lint, and refresh-contract-inventory.py --check against the pinned API revision all pass.
🤖 Generated with Claude Code
Summary by cubic
Updates the docs to match recoupable/api#1233, where full_report's 13 sections and song moments' descriptions now run as one batched model request, paying the $0.05 base once.
full_report's 402 gate drops from$0.65to$0.05; moments' gate drops from$0.36to$0.06.- Covers the analyze and moments pricing paragraphs, the 402 descriptions and the moments
required_creditsexample (60000), therequired_creditsdescription, thefull_reportpreset andelapsed_secondsdescriptions, and the credits page. - Refreshed
example-cases.jsonviabuild-contract-examples.py, regeneratedmanifest.jsonandllms-full.txt, and pinnedapiSourceCommitto the head of api#1233.
Merge api#1233 first; after it lands, re-pin apiSourceCommit to its merge commit.