(the proxy dockerfile checks if the database_url is set and then initializes the db connection) You can get spend for a key by using the /key/info endpoint. The virtual keys system is the primary authentication mechanism for litellm proxy
OnlyFans Users and Revenue Statistics (2024) - SignHouse
Virtual keys are bearer tokens stored in the database that identify and authorize requests to the proxy.
Born out of the illustrious y combinator program, litellm is a lightweight, powerful abstraction layer that unifies llm api calls across providers — whether you’re calling openai, anthropic,.
Litellm allows you to specify the following You can set the api configs using Set the litellm api key or specific provider key You might need to set additional parameters
Litellm provides a common set of params, that we map across all providers. This means you don't have to hand out your precious master api keys from openai or other providers. When you run it, you'll be prompted for a model name and api key For example, you could enter
For a full list of models supported in litellm, see the litellm providers docs.
If the key has an attached 'user_id' or 'team_id', the spend for that user is tracked in the litellm_usertable, and team in the litellm_teamtable