tokencost
To calculate token and translated USD cost of string and message calls to OpenAI, for example when used by AI agents
Installation
In a virtualenv (see these instructions if you need to create one):
pip3 install tokencost
Releases
Version | Released | Bullseye Python 3.9 |
Bookworm Python 3.11 |
Files |
---|---|---|---|---|
0.1.12 | 2024-07-25 | |||
0.1.11 | 2024-06-21 | |||
0.1.10 | 2024-06-15 | |||
0.1.9 | 2024-06-04 | |||
|
||||
0.1.8 | 2024-05-22 | |||
|
||||
0.1.7 | 2024-03-27 | |||
|
||||
0.1.6 | 2024-03-27 | |||
|
||||
0.1.5 | 2024-03-27 | |||
|
||||
0.1.3 | 2024-03-26 | |||
|
||||
0.1.2 | 2024-02-06 | |||
|
||||
0.1.1 | 2024-02-06 | |||
|
||||
0.1.0 | 2024-01-31 | |||
|
||||
0.0.5 | 2024-01-04 | |||
|
||||
0.0.4 | 2024-01-04 | |||
0.0.3 | 2024-01-04 | |||
0.0.2 | 2023-12-26 | |||
Issues with this package?
- Search issues for this package
- Package or version missing? Open a new issue
- Something else? Open a new issue