docs(songs): analyze base price $0.05 per model call

Merged
SW
2mo ago
+5-5

Pricing lever on POST /api/songs/analyze for recoupable/app#2061: the base price per model call moves from $0.01 to $0.05; the $0.001166 per-second rate is unchanged. Leads the api change (merge order docs โ†’ api).

Why: on 2026-09-06 Modal billed $4.07 for 55 analyze calls we charged $1.54 for. Modal bills container lifetime (a ~26 s start plus the scale-down tail per container), which a per-second inference price cannot see; the base fee is what covers it. Paired with the api PR's scaledown_window 300 โ†’ 60 s, today's traffic would have charged $4.01 against $1.62 of Modal cost.

  • credits.mdx: the Music analysis row and the cost-table row.
  • api-reference/openapi/releases.json: the 402 description and required_credits description + example (50000 single, 650000 full_report).

Local render screenshot to follow in a comment.

๐Ÿค– Generated with Claude Code

https://claude.ai/code/session_01MA74CxAKfuwDxeb9JG11Qi


Summary by cubic

Raises the documented base price for POST /api/songs/analyze from $0.01 to $0.05 per model call; the $0.001166 per-second inference charge is unchanged. This aligns the docs with recoupable/app#2061 and should merge before the accompanying api change.

Summary by CodeRabbit

  • Documentation
    • Updated music analysis pricing to $0.05 per standard model call.
    • Updated full_report pricing to $0.65, equivalent to 650,000 credits.
    • Clarified that full_report uses 13 model calls.
    • Retained the inference-time rate of $0.001166 per second.