{"id":19653587,"url":"https://github.com/mazzzystar/api-usage","last_synced_at":"2025-09-06T15:35:58.714Z","repository":{"id":183628933,"uuid":"670100874","full_name":"mazzzystar/api-usage","owner":"mazzzystar","description":"Track your OpenAI API token usage \u0026 cost.","archived":false,"fork":false,"pushed_at":"2024-11-01T16:58:47.000Z","size":458,"stargazers_count":72,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-18T23:38:17.953Z","etag":null,"topics":["gpt","openai-api-cost","openai-usage","vercel"],"latest_commit_sha":null,"homepage":"https://apiusage.info","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mazzzystar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T09:47:14.000Z","updated_at":"2025-07-05T03:40:39.000Z","dependencies_parsed_at":"2023-07-26T00:43:13.938Z","dependency_job_id":"1a307440-e1b7-4569-9287-830b7a757305","html_url":"https://github.com/mazzzystar/api-usage","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"e808f39834cd679a29834361770b10c81d2284c5"},"previous_names":["mazzzystar/apiusage","mazzzystar/api-usage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mazzzystar/api-usage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzzystar%2Fapi-usage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzzystar%2Fapi-usage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzzystar%2Fapi-usage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzzystar%2Fapi-usage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mazzzystar","download_url":"https://codeload.github.com/mazzzystar/api-usage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzzystar%2Fapi-usage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273926118,"owners_count":25192313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpt","openai-api-cost","openai-usage","vercel"],"created_at":"2024-11-11T15:14:35.342Z","updated_at":"2025-09-06T15:35:58.612Z","avatar_url":"https://github.com/mazzzystar.png","language":"HTML","readme":"# api-usage\nTrack your OpenAI API usage with [apiusage.info](https://apiusage.info/) to effortlessly view the costs consumed by different models.\n\n![my-usage](static/usage.webp)\n![my-usage](static/usage-pie.webp)\n\n# Introduction\nEnter your OpenAI API Key to view the costs consumed by various model APIs over the past day. It shows the usage of all the cost-incurring models from the previous day on an hourly basis. You can switch to a pie chart to see the cost proportion of each model.\n\n# Security\nThe code is open-source and will not store your privacy, your API Key is only stored locally in `localStorage`.\n\n# Run Yourself\nClone this project, run below in command line:\n```bash\nexport OPENAI_API_KEY=\"YOUR_API_KEY\"\npython app.py\n```\n\n# Contribution\nThis project is to facilitate myself: I call a variety of OpenAI API models: `gpt-3.5/gpt-4/text-embedding/whisper`, but the daily bill does not display their respective proportions. Sometimes I find the expenses from the previous day to be unusually high, but can't pinpoint the reason. So I wrote this tool for myself, when the cost is abnormal, it allows me to conveniently check where the high consumption is. Current features are rather rudimentary, if you have better display forms and requirements, you are welcome to submit a PR.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazzzystar%2Fapi-usage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazzzystar%2Fapi-usage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazzzystar%2Fapi-usage/lists"}