Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI Usage and Costs via API #293

Open
RyanMarten opened this issue Dec 29, 2024 · 0 comments
Open

OpenAI Usage and Costs via API #293

RyanMarten opened this issue Dec 29, 2024 · 0 comments

Comments

@RyanMarten
Copy link
Contributor

https://platform.openai.com/docs/api-reference/usage/completions

Right now we are tracking via the client, which works well across all the different models (use litellm for costs).

This new API might be useful if we want to get the exact costs and usage across a time period or with a specific API key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant