{"id":16201200,"url":"https://github.com/mjunaidca/visitors-agent-cost-report","last_synced_at":"2026-02-03T11:05:38.589Z","repository":{"id":257364394,"uuid":"855460320","full_name":"mjunaidca/visitors-agent-cost-report","owner":"mjunaidca","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-16T07:55:08.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T17:46:21.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjunaidca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-10T22:49:27.000Z","updated_at":"2024-09-16T07:55:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"80b5ccec-1a7c-4c3d-83b9-dfab6dea6695","html_url":"https://github.com/mjunaidca/visitors-agent-cost-report","commit_stats":null,"previous_names":["mjunaidca/visitors-agent-cost-report"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mjunaidca/visitors-agent-cost-report","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjunaidca%2Fvisitors-agent-cost-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjunaidca%2Fvisitors-agent-cost-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjunaidca%2Fvisitors-agent-cost-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjunaidca%2Fvisitors-agent-cost-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjunaidca","download_url":"https://codeload.github.com/mjunaidca/visitors-agent-cost-report/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjunaidca%2Fvisitors-agent-cost-report/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29043799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-10-10T09:36:20.128Z","updated_at":"2026-02-03T11:05:38.558Z","avatar_url":"https://github.com/mjunaidca.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Visitors Chatbot\n\n## Initial Cost Analysis\n\nHere’s a clear and structured way to present the **individual message cost breakdown** and **cost per day for different user volumes**, including caching storage.\n\n---\n\n### **1. Individual Message Cost Breakdown (Without Storage)**\n\n| **Cost Component**         | **Token Count (per message)**  | **Rate per Million Tokens**   | **Cost per Message**     |\n|----------------------------|-------------------------------|-------------------------------|--------------------------|\n| **Input Tokens**            | 640 tokens (40 query + 600 history) | $0.075 / million tokens       | \\( \\frac{640}{1,000,000} \\times 0.075 = \\) **$0.000048** |\n| **Output Tokens**           | 140 tokens                    | $0.30 / million tokens         | \\( \\frac{140}{1,000,000} \\times 0.30 = \\) **$0.000042**   |\n| **Context Caching (Usage)** | 34,000 tokens                 | $0.01875 / million tokens      | \\( \\frac{34,000}{1,000,000} \\times 0.01875 = \\) **$0.0006375** |\n| **Total Cost per Message**  |                               |                               | **$0.00073**              |\n\n---\n\n### **2. Per Day and 30 Days Total Cost for Different User Volumes (Including Fixed Cache Storage Cost)**\n\n#### Assumptions:\n- **Each user sends 20 queries per day**.\n- **Fixed Cache Storage Cost**: $0.84/day.\n- **30 days** considered for monthly calculations.\n\n#### **Per Day and 30-Day Cost (with 20 queries per user)**\n\n| **Users per Day**   | **Total Messages per Day** | **Message Cost per Day**    | **Fixed Cache Storage Cost per Day** | **Total Daily Cost**     | **Total Cost for 30 Days**   |\n|---------------------|----------------------------|-----------------------------|--------------------------------------|--------------------------|------------------------------|\n| **200 users/day**    | \\( 200 \\times 20 = 4,000 \\) messages | \\( 4,000 \\times 0.00073 = 2.92 \\)    | **$0.84/day**                         | \\( 2.92 + 0.84 = \\) **$3.76/day**  | \\( 3.76 \\times 30 = \\) **$112.80**  |\n| **500 users/day**    | \\( 500 \\times 20 = 10,000 \\) messages | \\( 10,000 \\times 0.00073 = 7.30 \\)   | **$0.84/day**                         | \\( 7.30 + 0.84 = \\) **$8.14/day**  | \\( 8.14 \\times 30 = \\) **$244.20**  |\n| **1,000 users/day**  | \\( 1,000 \\times 20 = 20,000 \\) messages | \\( 20,000 \\times 0.00073 = 14.60 \\)  | **$0.84/day**                         | \\( 14.60 + 0.84 = \\) **$15.44/day** | \\( 15.44 \\times 30 = \\) **$463.20** |\n| **2,000 users/day**  | \\( 2,000 \\times 20 = 40,000 \\) messages | \\( 40,000 \\times 0.00073 = 29.20 \\)  | **$0.84/day**                         | \\( 29.20 + 0.84 = \\) **$30.04/day** | \\( 30.04 \\times 30 = \\) **$901.20** |\n\n---\n\n### **Footnotes:**\n\n1. **Context Caching Storage Cost**:\n   - In addition to the per-message cost, there is a **fixed cost of $0.84/day** for storing 34,000 tokens as cached content.\n\n2. **Compute Cost**:\n   - The **compute cost** for running the FastAPI service on **Azure Container Apps Service** is **not included** in the above calculations. As previously estimated, this compute cost is approximately **$23.44/month**.\n\nThis breakdown offers a clear view of the costs involved in running the chatbot for different user volumes, including token usage and fixed caching storage costs.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjunaidca%2Fvisitors-agent-cost-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjunaidca%2Fvisitors-agent-cost-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjunaidca%2Fvisitors-agent-cost-report/lists"}