GET /v1/capabilities is authoritative for numeric rates and tier copy.
Check status
Free floors (D173/D174)
Before any credit is charged:
Past the floor: memory write 1 credit (0.02), browse static 3 credits (0.05). See Pricing for the volume-discount slider rates.
Buy credits (slider)
unit_rate_usd and total_usd at the D173 volume-discount table. Until business registration completes (D125) and STRIPE_SLIDER_CHECKOUT_ENABLED is set, expect 503 with status: not_live and error_code: STRIPE_GATED_D125 — no Stripe Checkout Session is created.
Purchased credit never expires (D174). Retired fixed packs used 180-day expiry on grant-only rows; slider purchases do not set
expires_at.
Retired pack checkout
POST /v1/billing/packs/checkout returns 410 Gone (PACK_CHECKOUT_RETIRED). Fixed packs are historical only — use the slider endpoint above.
Auto top-up
Set a threshold and saved payment method — Lithtrix refills automatically when your balance drops below it.pack field still reflects the pre-D173 auto-topup shape — slider migration is a follow-up when D125 unblocks charging.
Webhook
POST /v1/billing/webhook — Stripe-signed events. Configure STRIPE_WEBHOOK_SECRET on the host. Slider purchases use metadata purchase_type=slider when live.
Environment (ops)
STRIPE_SLIDER_CHECKOUT_ENABLED—falseuntil D125 go-live (default)STRIPE_SECRET_KEY,STRIPE_PUBLISHABLE_KEY,STRIPE_WEBHOOK_SECRET- Legacy pack Price IDs (
STRIPE_PRICE_PACK_*) — dormant; retained for historical webhook rows only
GET /v1/capabilities for the pricing block and per-call rates, and Pricing for the full D173/D174 shape.