﻿# LiteLLM adds gateway-owned identity labels to Vertex requests

Validate identity-label provenance, normalization and billing reconciliation separately; LiteLLM’s Vertex labels help attribution only on supported labeled usage paths.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-vertex-identity-label-attribution/
Language: en

LiteLLM v1.111.0-dev.4 adds configurable key, team, organization and project labels to Vertex requests. The November 15 prerelease’s implementation derives identity labels at the proxy and guards their reserved prefix. For cost attribution, an emitted label and a correctly reconciled billing category are separate pieces of evidence.

## The gateway should derive caller identity

Create two synthetic teams and keys whose calls reach the same Vertex model. Capture the outgoing labels with labeling enabled, then submit caller-supplied values using the reserved identity prefix. Verify that the final labels reflect gateway identity rather than the caller’s claim. This is necessary for meaningful chargeback: a field that any client can assign freely cannot by itself establish who incurred the usage.

## Normalization can collapse human-readable aliases

The implementation rewrites alias text to fit label rules. Test the actual aliases used by the organization, including punctuation, case and non-ASCII names where relevant. Compare normalized outputs and look for collisions before using them as report keys. A label suitable for an upstream API may lose distinctions that operators rely on in the gateway UI. Preserve a documented mapping for attribution rather than guessing identity from the transformed text.

## Inspect every billed operation family

A service may mix chat, embeddings, reranking and batch work. Exercise the operation families actually used and inspect their emitted identity fields. Do not extrapolate a passing chat call to every route. Keep labeling disabled as a control and verify the expected unchanged payload. The setting is configurable, so deployment evidence must show which fields are selected and which workers loaded that selection.

## Reconcile labels with usage before chargeback

Send a small known synthetic workload and compare gateway usage with the billing view where Google supports the relevant labels. Account for reporting delay and unsupported paths explicitly. The feature enables attribution; it does not guarantee that every billed service line exposes every label immediately. A reviewable result explains matched and unmatched usage without forcing unexplained amounts into a convenient team category.

## Sources

- [LiteLLM v1.111.0-dev.4 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.4)
- [LiteLLM implementation and review #50732](https://github.com/BerriAI/litellm/pull/50732)

## Related reading

- [LiteLLM virtual keys: separate access for each application](/journal/litellm-virtual-key-scopes/)
- [LiteLLM budgets: periods, shared limits and overrun tests](/journal/litellm-budget-reset/)
