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.1.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.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tokencal-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ff9b12def38d20d18b0e20b32366b474d66fed59cfe6086d59104a35d2400f50
MD5 09d6ced5a8fa9709827909239cc1f258
BLAKE2b-256 6ef287945b1cace256aa6a56ddd8910c1fe27b3fd0d8ae6f6cee3911fabbcd41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tokencal-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efeb3fe276371ba77c504a77c7342d926f4caed1674b0da2f5e15b86626ff123
MD5 f16d123d4601eb738d24a52cbff937e2
BLAKE2b-256 fb7d2d0aab89ecb255bb43bf75f5d4437b27987a1c1bc0d02820669fdc876a3b

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