用量和計費
說明 request、premium request、allowance、budget、billing entity 和 GitHub 2026 usage-based billing 遷移邊界。
Copilot 計費不能只看“有沒有開通”。真實成本來自七個維度:功能入口、模型、premium requests(高階請求)、budget(預算)、allowance(額度)、billing entity(計費主體)和即將遷移的 usage-based billing(基於用量的計費)——少看一個維度,月底就會有"為什麼這麼貴"的疑問。
結論:教程裡不要寫死價格和額度;要寫判斷框架和官方核驗路徑。
GitHub 官方 requests 文件說明:從 2026-06-01 起,Copilot 正從 request-based billing 遷移到 usage-based billing。具體價格、模型 multiplier 和 plan allowance 必須回官方頁面核驗。
1. Request 和 premium request
GitHub 官方定義中,request 是你讓 Copilot 做事的一次互動,例如發 prompt、觸發 chat response、讓 extension 幫忙。
Premium request 是使用更高階處理能力的請求,消耗量會隨功能和模型變化。
flowchart TD
Prompt["使用者發起一次任務"] --> Request["request"]
Request --> Basic{"included model / included interaction?"}
Basic -->|是| Included["不消耗或低成本"]
Basic -->|否| Premium["premium request"]
Premium --> Model["model multiplier"]
Model --> Budget["allowance / budget / billing entity"]
Budget --> Report["usage report / analytics"]
style Premium fill:#fef3c7,stroke:#d97706,stroke-width:2px
style Budget fill:#fee2e2,stroke:#dc2626,stroke-width:2px
2. 哪些功能可能消耗 premium requests
官方 requests 頁面列出的 premium features 包括:
- Copilot Chat。
- Copilot CLI。
- Copilot code review。
- Copilot cloud agent。
- Copilot Spaces。
- Spark。
- OpenAI Codex VS Code integration preview。
- Third-party coding agents preview。
不要只盯 Chat。團隊一旦開始使用 CLI、cloud agent、code review 或第三方 agent,成本結構會變複雜。
3. 預算和 allowance
要區分四個詞:
- Allowance:計劃中包含的額度,通常按月重置。
- Budget:你設定的額外支出控制和告警。
- Premium request paid usage policy:組織或企業是否允許超出 allowance 後繼續產生費用。
- Billing entity:當使用者來自多個組織或企業時,費用計到哪一方。
官方文件還說明,premium request counters 在每月 1 日 00:00:00 UTC 重置;未使用額度不會結轉到下個月。
4. 使用者應該怎麼看用量
官方監控頁面給出的入口包括:
- 在 IDE 中檢視用量。
- 在 GitHub Billing and licensing settings 裡看 overview。
- 用 Premium request analytics 檢視詳細資料。
- 下載 usage report。
VS Code、Visual Studio、JetBrains、Xcode、Eclipse 都有各自的用量入口。團隊教程裡不需要逐個截圖,重點是讓使用者知道用量不是猜的。
5. 管理員應該怎麼控成本
建議:
- 預設啟用 included models,限制高成本模型預設開放。
- 為高階模型和 premium features 建 budget。
- 設定 75%、90%、100% 告警。
- 監控同一 prompt 反覆重試、大上下文請求、agentic session 和 code review。
- 對 CLI、cloud agent、third-party agents 建獨立覆盤項。
- 多組織使用者必須明確
Usage billed to,否則 premium requests 可能被拒絕。
6. 解釋成本時不要犯的錯
- 不要把一個月的 allowance 當成永久額度。
- 不要把 included model 當成永遠免費,官方模型列表會變化。
- 不要把 prompt 次數等同於最終費用,model multiplier 會影響消耗。
- 不要忽略 cloud agent session 和 steering comments。
- 不要用舊 request-based 口徑解釋 2026-06-01 之後的新 usage-based billing。
深讀:為什麼教程不寫具體價格表
價格、模型 multiplier、included models、plan allowance 和 preview 狀態都可能變化。教程寫死數字很快會變成錯誤資訊。
商業級教程應該寫穩定判斷:在哪裡看、怎麼分層、怎麼設預算、怎麼解釋異常,而不是複製一張會過期的價格表。
本章自檢
- 是否知道哪些功能會消耗 premium requests?
- 是否知道當前模型是否有 multiplier?
- 是否設定 budget 和超額策略?
- 多組織使用者是否選擇了 billing entity?
- 是否準備遷移到 usage-based billing 口徑?
透過標準:團隊能從官方 billing/analytics 頁面解釋用量來源,而不是月底才猜。
官方來源
- Requests in GitHub Copilot —— GitHub 官方 request、premium request、allowance、model multiplier 說明。
- Monitoring your GitHub Copilot usage and entitlements —— GitHub 官方用量檢視和最佳化建議。
- Usage-based billing for organizations and enterprises —— GitHub 官方 usage-based billing 遷移入口。