UPDATElitellm v1.111.1
LiteLLM v1.111.1 cuts failed-auth rows from spend logs
Requests rejected before authentication no longer create zero-cost spend-log or daily-usage rows, so billing reports stop collecting failed-auth noise.
What changed in this release
18 checkpoints in 4 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
Pre-auth denials
- IP check denials: a failed pre-auth IP check no longer reaches billing tables.
- Body-safety denials: a block before authentication no longer creates a billing row.
- Route check denials: a pre-auth route failure also creates no billing row.
- Credential denials: virtual-key, JWT, OAuth, blocked-key, and expired-key refusals all carry the failure marker.
- Sessions and host steps: undecodable session hashes and pre-auth host steps are treated as pre-auth failures.
Spend rows
- Spend logs: pre-auth failures write no zero-cost spend-log row.
- Daily usage: the daily-usage table no longer receives these requests.
- Database writes: rejected authentication requests no longer trigger these billing writes.
- Both paths: Python and Rust authentication read the same failure marker.
Preserved behavior
- Successful requests: authenticated requests keep writing billing records on the existing path.
- Model access denials: a post-auth model-access denial still writes a failure row.
- Budgets and rate limits: post-auth key or team budget and rate-limit denials keep their failure rows.
- Client responses: HTTP status and response content do not change with this fix.
- Callbacks and metrics: logging callbacks and error metrics stay unchanged.
Upgrade checks
- Upgrade action: the release says no extra action is needed; move directly to v1.111.1.
- Image scope: both the ghcr.io and docker.io image addresses ship this release.
- Signature check: both addresses use the same cosign command, with certificate identity pointing to release.yml.
- Build: the release contains 3 PRs, 1 fix, and backports #54993 and #55005.
On this page
ContextFailed authentication no longer reaches billing tables
The practical change in v1.111.1 is narrow: requests rejected before authentication no longer leave zero-cost rows in spend logs or daily usage. Authenticated requests and post-auth failures keep their accounting path. The PR describes cleaner reports and fewer database writes.
The release has 3 PRs and 1 fix, and needs no extra upgrade action. It adds a failure marker to pre-auth refusals; Python and Rust both use it to decide whether to write a spend row. Only database spend tracking changes; client responses, callbacks, and error metrics do not.
The inventory has 4 groups: pre-auth denials, spend rows, preserved behavior, and upgrade checks. The chart maps the release across those groups and marks unchanged paths; the sections take each group in turn, then compare products and versions.
Pre-auth refusals now carry one failure marker
- One marker: IP, body-safety, and route checks rejected before authentication all set AUTHENTICATION_FAILURE_MARKER.
- Credential denials: virtual-key, JWT, OAuth, blocked-key, and expired-key refusals all use the same failure marker.
- Both paths: Python and Rust authentication read the marker, and Rust separates end-user budget denials before key lookup.
Spend logs and daily usage stop taking failed-auth rows
- Result: pre-auth failures create no spend-log or daily-usage row, removing a class of zero-cost failures from reports.
- Writes: these requests no longer trigger the related database writes, so authentication noise stops growing billing tables.
- Decision: tracks_failure_spend returns false when the marker is set; this rule decides whether a row is written.
Post-auth failures still write rows and client responses stay put
- Kept: post-auth denials from model access, key or team budgets, and rate limits still write failure rows.
- Unchanged: client HTTP responses, logging callbacks, and error metrics stay as they were.
- Boundary: the fix suppresses database spend tracking only for pre-auth failures and leaves other failure classes alone.
Upgrade without config edits, then check images and patch scope
- Upgrade: the release says no extra action is needed, so existing deployments can move directly to v1.111.1.
- Images: both the ghcr.io and docker.io addresses ship this release and use the same verification command.
- Build: the release contains 3 PRs, 1 fix, and backports #54993 and #55005.
All three gateways log cost; LiteLLM now keeps failed auth out of spend rows
LiteLLM keeps pre-auth failures out of spend rows, Portkey exposes request logs and status, and Kong splits cost into input and output. This table compares what a request leaves in a log or billing table, not feature counts. Start with billing scope, request status, or token cost detail, then read each product's documented entry and fields.
The products answer different questions: LiteLLM changes which requests enter billing tables, Portkey supplies request logs and status, and Kong supplies input-output token and cost fields. Use LiteLLM for failed-auth billing noise, Portkey for request troubleshooting, and Kong for an input-output cost split. Field count is not a ranking.
| Record entry touched by the fix | LiteLLM v1.111.1 | Portkey Gateway v1.15.2 | Kong AI Gateway 2.3.0 |
|---|---|---|---|
| Per-request billing or log record | Pre-auth failures: no spend-log or daily-usage row; post-auth failures: failure row | Chronological request logs: timestamp, type, model, tokens, thinking tokens, cost | Per GenAI category: input_tokens, output_tokens, cache-write tokens, input_token_cost, output_token_cost |
| Usage aggregation entry | Spend logs and daily usage tables | The Logs page lists requests; DO NOT TRACK retains tokens, cost, latency | AI analytics receive token and cost fields |
From v1.108.21 to v1.111.1, one fix lands in LTS and mainline
Both releases include #54608; only the channel, PR count, and backport differ. v1.108.21 is the LTS release published at 2026-11-28T22:10:07+00:00, followed by v1.111.1 the next day. Both notes list the spend-log and daily-usage fix: under both releases, pre-auth failures write no row. LTS users use the lts tag; mainline users use v1.111.1. Neither needs extra action.
The shared row matters most: both notes list #54608 for the same authentication-failure accounting fix. Differences are the channel, PR count, and backport numbers. Do not migrate between LTS and mainline for this fix. Stay on lts or use the explicit v1.111.1 tag; both carry the same fix.
| Feature | v1.108.21 (LTS) | v1.111.1 |
|---|---|---|
| Request rejected before authentication | Writes no spend-log or daily-usage row | Writes no spend-log or daily-usage row |
| Release channel | The lts image tag always points to the latest LTS release | Ships under the explicit v1.111.1 tag |
| Build | 6 PRs, 1 fix, backport #54986 | 3 PRs, 1 fix, backports #54993 and #55005 |
Release analysisUpgrade first if you bill by key or team; model-only teams can wait
Operators who split LiteLLM costs by key, team, or customer gain the most. A bad-key scan used to leave zero-cost failure rows; it no longer does. Model-only teams can wait. If bills go to customers, the first post-upgrade report should already show less failure noise.
Portkey v1.15.2 lists timestamp, request type, model, tokens, cost, and status per request; Kong 2.3.0 splits cost into input_token_cost and output_token_cost and includes cache tokens. LiteLLM adds no cost fields here, and the three address different visibility layers.
LiteLLM's value is a cleaner billing boundary, not a richer cost breakdown. Portkey adds request status, and Kong adds input-output cost detail. For single-request debugging this release does not help; for clean cost accounting it closes the failed-auth gap.
Station view, not independently tested: sample one day of spend logs and daily usage, confirm pre-auth failures produce 0 rows while post-auth budget or rate-limit denials still produce failure rows, then resume billing reports. Cover both Python and Rust paths with a bad credential and a budget denial.
AIGenLab views
Not independently testedAfter upgrading, sample one day of spend logs and daily usage before letting billing reports continue.
The fix separates pre-auth failures from post-auth denials; sampling confirms the deployment follows the intended branch.
Operators who split costs by key, team, or customer should upgrade first; model-only teams can wait for a maintenance window.
The change affects billing row writes only and leaves model calls and client responses unchanged.
This fix is not a substitute for request-level status checks; Portkey's Status column and Kong's cost split address different layers.
The official materials expose different fields and entry points, and LiteLLM adds no cost-split fields in this release.
Questions
Which deployments should upgrade first?
How should you sample the logs after upgrading?
Do failures after authentication still write rows?
Official sources and scope
- LiteLLM v1.111.1 release Version, publish time, 3 PRs and 1 fix, upgrade action, image addresses, and backports
- LiteLLM PR #54608 Full pre-auth failure categories, the failure marker, both auth paths, preserved behavior, and database write changes
- LiteLLM v1.111.0 release API record Previous formal release v1.111.0, its version, and 2026-11-25T01:42:50Z publish time
- LiteLLM v1.108.21 LTS release LTS version, publish time, 6 PRs and 1 fix, #54608, the lts image tag, and backport #54986
- Portkey Gateway v1.15.2 release API record Portkey Gateway version and publish time used in the comparison table
- Portkey Logs documentation Portkey request-log fields, the Status column, and DO NOT TRACK behavior
- Kong AI Gateway changelog Kong AI Gateway 2.3.0 token fields, cache tokens, and input/output cost split
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.