Skip to main content

A powerful package for estimating token prices in large language models.

Project description

Tokencal: Token Price Estimation for LLMs

Tokencal

Version

Overview

Tokencal is a sophisticated tool designed to estimate token prices for large language models (LLMs). Whether you're a developer, researcher, or business, Tokencal helps you optimize token usage and manage costs effectively.

Features

  • Accurate Estimations: Get precise token price estimates for various LLMs.
  • Efficient Performance: Fast calculations to save your time.
  • Extensive Compatibility: Works with multiple LLMs.

Installation

To install Tokencal, simply run:

pip install tokencal

Usage

Using Tokencal is straightforward. Here’s a quick example to get you started:

from tokencal import TokenEstimator

# Initialize the estimator with your LLM model details
estimator = TokenEstimator(model_name="Your_LLM_Model")

# Estimate token price
price = estimator.estimate_price(text="Sample text to estimate token price.")
print(f"Estimated token price: {price}")

Keywords

Token price estimation, LLM, Large Language Models, cost optimization, token usage

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

tokencal-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

tokencal-0.1.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file tokencal-0.1.2.tar.gz.

File metadata

  • Download URL: tokencal-0.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tokencal-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5a12d7c3aee3fa4bde81821bed6bc3370d6b79931c734b1d628940e030b95c54
MD5 9afc6f2d76e6a883f8606797afa02930
BLAKE2b-256 b0f8d477aae17ec751e170ac20f8079ef901ba11928fd9a14d873d77deeaa1ad

See more details on using hashes here.

File details

Details for the file tokencal-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tokencal-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tokencal-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 232f1d4a1c816bbb77890c76d8bd72cdf5ce1df8760a4e4e070cffd445135e3d
MD5 d48cbd849338a6671518b390a66407c1
BLAKE2b-256 d771658704a5ccbefc2e2e8bc90100c683fff59a740f87480e63948243e5dd6e

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