Artifact 572735102b71d366d9cc48a1f8b21c25038550fd81307209a1e3242b1792d685:
- File
test/pic/cost.sh
-
2026-11-19 23:24:39
— part of check-in
[fe63b75bbd]
on branch cost
— Model prices and real costs, as Pi's
The catalog snapshot (regenerated from pi.dev) keeps each model's per-Mtok prices and tiers, as do the pi.dev overlay and models.json. Each reply is priced as Pi's calculateCost does: tiers, 1-hour cache writes, per-API usage normalisation, OpenRouter's billed total. The cost and Pi's normalised token counts are stored with the generation and appear in usage events, the Pi export, pic models --json and, per conversation, pic sessions --json. (user: dmestas, size: 4298) [annotate] [blame] [check-ins using]
- 2026-11-20 00:37:51 — part of check-in [d23959e47c] on branch trunk — CI green on facfe0d2409e; Fil-C pass (213) (user: dmestas, size: 4298) [annotate] [blame] [check-ins using]
-
2026-11-20 00:42:38
— part of check-in
[76939caa66]
on branch images
— Merge trunk (costs) into images; the catalog keeps both input and cost
tools/model-catalog.sh writes each model's input types and prices; src/model_catalog.inc regenerated from pi.dev (653 models). (user: dmestas, size: 4298) [annotate] [blame] [check-ins using]
- 2026-11-20 01:03:57 — part of check-in [ebc4b0e75a] on branch cache — Merge trunk (images, costs) into prompt caching (user: dmestas, size: 4298) [annotate] [blame] [check-ins using]
-
2026-11-20 02:17:08
— part of check-in
[1e0a50a3c5]
on branch gemini
— Merge trunk into Gemini; the catalog includes Google's models
src/model_catalog.inc regenerated from pi.dev with google-generative-ai: 679 models, each with input types and prices. (user: dmestas, size: 4298) [annotate] [blame] [check-ins using]
- 2026-11-20 02:28:00 — part of check-in [f7b1bab2f5] on branch highlight — Merge trunk into the syntax highlighter (user: dmestas, size: 4298) [annotate] [blame] [check-ins using]
- 2026-11-20 11:17:07 — part of check-in [fa1d0f1004] on branch tui-round-3 — Merge trunk into tui-round-3: images, caching, costs, Gemini, hooks seam; pic_bash kept at journal v10 (user: dmestas, size: 4298) [annotate] [blame] [check-ins using]
-
2026-11-19 23:24:39
— part of check-in
[fe63b75bbd]
on branch cost
— Model prices and real costs, as Pi's