Pictures are priced by the picture

auth.pricing takes per_image, charged on top of a prompt's tokens; a model
priced only per picture is not free, so a spent budget still stops it.
Each usage row keeps how many pictures were made (migration 0041), and
ctl request and the admin API's request view show them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-09 21:48:47 +02:00
1 parent 3894e8e5fd
commit 4a4fe8fa16
19 files changed
+162 -19

No files matched your search

@@ -0,0 +1,3 @@
-- How many pictures a request made, for a model that makes them: what a
-- per-picture price is charged by, and what its tokens do not say.
ALTER TABLE usage ADD COLUMN images INTEGER NOT NULL DEFAULT 0;