Skip to main content

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

Project description

Tokencal: Token Price Estimation for LLMs

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.0.tar.gz (2.8 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.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tokencal-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 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.0.tar.gz
Algorithm Hash digest
SHA256 ddbabf92d8f94139c7c9f7589b6de555b68ae9e129cbc9deef70f2b6bda2cd26
MD5 610a38b887c8258479e1ea5af10ec3eb
BLAKE2b-256 76ba22163e0ebbd4c7475af4900b65bbb7d7f437fb8e121033e720ec4ca594fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tokencal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9011fcda13fec3894c1509310c10431110bc064f69859fec3beb3c014f98e11d
MD5 2a3b01a1c2a74124a5a7776a8411eff1
BLAKE2b-256 3c9eefe7324d604d703dad600ad0477e7e030ed67d1177ff3ec8c3edb049eb42

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