Skip to content

[Bug]: Cost tracking is not working with Vercel Models #20412

@NoAchache

Description

@NoAchache

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

I am using vercel through LiteLLM. All users are supposed to have a rate limit of 10$/month but the cost tracking is not working (c.f. example screenshot, 16M token for 0$). The bug happened with anthropic-claude-opus-4.5 but i feel like it happens for all models

Image

Steps to Reproduce

  1. LiteLLM version: v1.81.0-stable (self-deployed on GCP cloudrun)
  2. spec in config.yaml:
    - model_name: vercel/anthropic-claude-opus-4.5 litellm_params: model: vercel_ai_gateway/anthropic/claude-opus-4.5 api_key: os.environ/VERCEL_AI_GATEWAY_API_KEY
  3. Call the model through the LiteLLM server

Relevant log output

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

v.1.81.0-stable

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions