LiteLLM Proxy Setup
What you need
1. Install the callback
pip install "revenium-python-sdk[litellm-proxy]"2. Register the callback in your proxy config
litellm_settings:
callbacks: ["revenium_middleware.litellm.proxy.middleware.proxy_handler_instance"]3. Set the metering key
4. Send a test transaction to confirm capture
Adding attribution
What the callback captures
Choose one metered path per workload
Last updated
Was this helpful?