Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tokenwise_ai-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for tokenwise_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 47493e1c6faf5ade22492e3c6c4d30a41e0651f9b4f856949485b72a2dd87d81
MD5 ceb0a278b029da3802054dbdb2824c28
BLAKE2b-256 79bdafa4d1374d18eddac2459df77734a72736057ef8f4a8f14b4bf095d9abb9

See more details on using hashes here.

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

Hashes for tokenwise_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55169775470a2c7881645d51cb6c7f8f014b9c999bba48fccde710edf4f784a1
MD5 15caedf27f807f69a61830ba5b267a10
BLAKE2b-256 344e0092833a7950f8241584b5572a84ad2b1c0f4ca21c4da50d53b8e57c7be9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page