levysoft/chatgpt-token-cost-analysis
Python script and HTML page to analyze token costs from ChatGPT export chats. Extracts messages, calculates token usage, and determines monthly costs. The Python script saves results to a CSV file, while the HTML page provides an interactive, local analysis tool with support for multiple models and ensures data privacy.
This tool helps individuals or teams track and understand their spending on ChatGPT. By uploading your exported ChatGPT conversation data, it analyzes your chat history, calculates the tokens used for both your input and the AI's output, and estimates the total and monthly costs. It's designed for anyone who uses ChatGPT frequently and wants insight into their usage expenses.
No commits in the last 6 months.
Use this if you want to understand how much your ChatGPT conversations are costing you, broken down by month and model, while keeping your chat data private.
Not ideal if you need to analyze token costs for AI models other than OpenAI, Claude, or Gemini, or if you don't have access to your exported ChatGPT conversation history.
Stars
8
Forks
1
Language
HTML
License
MIT
Category
Last pushed
Mar 03, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/levysoft/chatgpt-token-cost-analysis"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
xtekky/gpt4free
The official gpt4free repository | various collection of powerful language models | opus 4.6 gpt...
aledipa/Free-GPT4-WEB-API
Not just GPT4! Easy to use, Self-Hosted, Unlimited and Free WEB API of the latest A.I. like...
chatanywhere/GPT_API_free
Free ChatGPT&DeepSeek API Key,免费ChatGPT&DeepSeek API。免费接入DeepSeek API和GPT4 API,支持 gpt | deepseek...
CharlesPikachu/FreeGPTHub
FreeGPTHub: A truly free, unified GPT API gateway—unlike “fake-free” alternatives that hide...
Junyi-99/ChatGPT-API-Scanner
Scan GitHub for available OpenAI API Keys