Skip to main content

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

Metadata

Release files for tokencal 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tokencal 0.1.2
File Size Uploaded
tokencal-0.1.2.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tokencal 0.1.2
File Interpreter ABI Platform
tokencal-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / tokencal-0.1.2.tar.gz

Download URL tokencal-0.1.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5a12d7c3aee3fa4bde81821bed6bc3370d6b79931c734b1d628940e030b95c54
BLAKE2b-256 checksum
How to use checksums
b0f8d477aae17ec751e170ac20f8079ef901ba11928fd9a14d873d77deeaa1ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / tokencal-0.1.2-py3-none-any.whl

Download URL tokencal-0.1.2-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
232f1d4a1c816bbb77890c76d8bd72cdf5ce1df8760a4e4e070cffd445135e3d
BLAKE2b-256 checksum
How to use checksums
d771658704a5ccbefc2e2e8bc90100c683fff59a740f87480e63948243e5dd6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page