orkunkinay/openai_cost_calculator
Calculate exact USD cost of each OpenAI API call — no guesswork.
This tool helps developers accurately calculate the USD cost for each API call made to OpenAI or Azure OpenAI, whether using Chat Completions or the Responses API, even with streaming. You provide the response object from an OpenAI API call, and it outputs a precise cost breakdown. It's designed for software developers who are integrating LLMs and need to monitor or bill for API usage.
Available on PyPI.
Use this if you need a lightweight, independent utility to get exact cost estimates for your OpenAI API calls without a larger LLM framework.
Not ideal if you need cost estimation for multiple LLM providers beyond OpenAI, or require a full LLM routing and orchestration framework.
Stars
12
Forks
6
Language
Python
License
—
Category
Last pushed
Mar 09, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/orkunkinay/openai_cost_calculator"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
xllm-go/bypass
集成了openai-api、coze、deepseek、cursor、windsurf、qodo、blackbox、you、grok、bing 绘画 多款AI的聊天逆向接口适配到...
Mon-ius/Docker-Warp-Socks
Connet to CloudFlare WARP, exposing `socks5` proxy all together.
x-dr/chatgptProxyAPI
🔥 使用cloudflare 搭建免费的 OpenAI api代理 ,解决网络无法访问问题。支持流式输出
qingchencloud/cj2api
将 ChatJimmy 转换为 OpenAI 兼容 API 的 Cloudflare Worker | 零成本部署,支持流式输出,自带测试页
0x676e67/ninja
Reverse engineered ChatGPT proxy