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

+2
View File
@@ -224,6 +224,8 @@ type Outcome struct {
Decode time.Duration
// Usage is the engine-reported token usage, if it was present.
Usage *Usage
// Images is how many pictures were made, by an endpoint that makes them.
Images int
// Bytes is how many bytes were relayed to the client.
Bytes int64
// Reply is the assistant's text, when CaptureReply asked for it. Truncated