-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The Feature
Hello,
Would it be possible to get directly the cost of the request from the OpenRouter when used.
The response can contain the cost details, this is how roo code gets it:
https://github.com/RooCodeInc/Roo-Code/blob/44086e4a8638259625373e27c817cadbcd610dc1/src/api/providers/openrouter.ts#L141-L174
We need to be sure that all request sent to OpenRouter enable the usage:
https://openrouter.ai/docs/use-cases/usage-accounting
Motivation, pitch
Avoiding having to keep a list of static cost for OpenRouter, when in reality it's dynamic depending on which provider used.
LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?
No
Twitter / LinkedIn details
No response
jcabillot, Jordhan-Carvalho, mariuszrzepka and paulchaum
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request