valmat/gpt-tokenator

GPT 3 tokens counter

28
/ 100
Experimental

When integrating Large Language Models (LLMs) into applications, knowing the token count of text is crucial for managing API costs and adhering to length limits. This tool takes a piece of text as input and outputs the exact number of tokens it would consume when sent to the OpenAI GPT-3 or GPT-4 API. It's used by software developers building applications that interact with OpenAI's LLMs.

No commits in the last 6 months.

Use this if you are a software developer building applications with GPT-3 or GPT-4 and need to accurately pre-calculate token usage for cost management or input validation.

Not ideal if you are an end-user of an LLM application or a developer working with LLMs other than OpenAI's GPT-3/GPT-4.

LLM-development OpenAI-API API-cost-management text-processing application-development
Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 5 / 25
Maturity 16 / 25
Community 7 / 25

How are scores calculated?

Stars

10

Forks

1

Language

C++

License

MIT

Last pushed

Dec 11, 2024

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/valmat/gpt-tokenator"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.