{"id":15159957,"url":"https://github.com/p1ayer-1/chatgpt-web-vs-api-pricing","last_synced_at":"2026-02-18T05:01:10.700Z","repository":{"id":255249638,"uuid":"849002140","full_name":"P1ayer-1/ChatGPT-Web-vs-API-pricing","owner":"P1ayer-1","description":"Count tokens to determine cost differential of ChatGPT Plus subscription and ChatGPT API ","archived":false,"fork":false,"pushed_at":"2024-08-28T21:51:21.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T16:02:42.742Z","etag":null,"topics":["chatgpt","chatgpt-api","chatgpt-chat-history","chatgpt-history","chatgpt-plus","chatgpt4","openai","tiktoken"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/P1ayer-1.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":"2024-08-28T19:48:57.000Z","updated_at":"2024-11-27T04:42:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"119ba3af-a132-4c77-aef8-18f51a26c911","html_url":"https://github.com/P1ayer-1/ChatGPT-Web-vs-API-pricing","commit_stats":null,"previous_names":["p1ayer-1/chatgpt-web-vs-api-pricing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/P1ayer-1/ChatGPT-Web-vs-API-pricing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1ayer-1%2FChatGPT-Web-vs-API-pricing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1ayer-1%2FChatGPT-Web-vs-API-pricing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1ayer-1%2FChatGPT-Web-vs-API-pricing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1ayer-1%2FChatGPT-Web-vs-API-pricing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/P1ayer-1","download_url":"https://codeload.github.com/P1ayer-1/ChatGPT-Web-vs-API-pricing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1ayer-1%2FChatGPT-Web-vs-API-pricing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29569853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T04:18:28.490Z","status":"ssl_error","status_checked_at":"2026-02-18T04:13:49.018Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chatgpt","chatgpt-api","chatgpt-chat-history","chatgpt-history","chatgpt-plus","chatgpt4","openai","tiktoken"],"created_at":"2024-09-26T22:03:02.790Z","updated_at":"2026-02-18T05:01:10.695Z","avatar_url":"https://github.com/P1ayer-1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatGPT-Web-vs-API-pricing\nI used this to determine the cost differential between my ChatGPT Plus subscription and the ChatGPT API.\n\nI discovered I could save over $20 monthly by switching to the API.\nThe tax on the monthly ChatGPT Plus bill would cover an entire month of API usage for me.\n\nNot sure if I'll ever clean this README up. I couldn't find a repo with this exact purpose, so I wanted to share.\n\n\n### Usage:\n1. [Export your conversation](https://help.openai.com/en/articles/7260999-how-do-i-export-my-chatgpt-history-and-data)\n2. Extract `conversations.json` to your preferred directory (ex. ./data). It is found in the chatlog export zip file (check your email)\n3. Clone this repo with submodules `git clone https://github.com/P1ayer-1/ChatGPT-Web-vs-API-pricing.git`\n4. Install requirements `pip install -r requirements.txt`\n5. Run `main.py` and pass relevant args. Use `python main.py -h` to explain args\n\n#### Example:\n```\npython main.py ./data/conversations.json gpt-4o all --return_only\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1ayer-1%2Fchatgpt-web-vs-api-pricing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp1ayer-1%2Fchatgpt-web-vs-api-pricing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1ayer-1%2Fchatgpt-web-vs-api-pricing/lists"}