Spend less, agent more. Token optimization SDK for Agentic AI.
Project description
TokenWise Python SDK
Spend less, agent more. Token optimization SDK for Agentic AI.
pip install tokenwise
from tokenwise import TokenWise
tw = TokenWise(api_key="sk-...")
response = tw.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}],
)
print(tw.print_savings())
See GitHub for full documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tokenwise_ai-0.1.0.tar.gz
(5.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tokenwise_ai-0.1.0.tar.gz.
File metadata
- Download URL: tokenwise_ai-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47493e1c6faf5ade22492e3c6c4d30a41e0651f9b4f856949485b72a2dd87d81
|
|
| MD5 |
ceb0a278b029da3802054dbdb2824c28
|
|
| BLAKE2b-256 |
79bdafa4d1374d18eddac2459df77734a72736057ef8f4a8f14b4bf095d9abb9
|
File details
Details for the file tokenwise_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tokenwise_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55169775470a2c7881645d51cb6c7f8f014b9c999bba48fccde710edf4f784a1
|
|
| MD5 |
15caedf27f807f69a61830ba5b267a10
|
|
| BLAKE2b-256 |
344e0092833a7950f8241584b5572a84ad2b1c0f4ca21c4da50d53b8e57c7be9
|