# Feature:Billing(P2;Phase 0 不做) > 父文件:[PRD.md](../PRD.md) | 對應 User Stories:US-27 > > **⚠️ Phase 0 完全不做**。本文件只留介面定義與未來規劃。 --- ## 範圍 Phase 0 / Phase 1 全部跳過。Phase 2 再規劃。 --- ## 為什麼 Phase 0 不做 - Phase 0 是雛形,只給內部測試 - 商業模式尚未定案(訂閱 / usage-based / freemium 都有可能) - 接金流(Stripe 等)會拖慢雛形進度 --- ## 可能的商業模式(Phase 2 待討論) ### 模式 A:訂閱制 | 方案 | 月費 | 裝置數上限 | 模型儲存 | 叢集 | |------|------|----------|---------|------| | Free | $0 | 1 | 100MB | ❌ | | Pro | $19 | 5 | 10GB | ✅ | | Team | $99 | 無限 | 100GB | ✅ | | Enterprise | 客製 | — | — | + SSO, SLA | ### 模式 B:按推論次數 - $X / 1M inferences - 前 100K 免費 ### 模式 C:Freemium + 轉檔計費 - 本體免費使用 - 轉檔服務按次計費($Y / 轉檔) --- ## BillingProvider 介面(Phase 2) ```go // internal/billing/provider.go type BillingProvider interface { CreateCustomer(ctx context.Context, user *User) (*Customer, error) CreateSubscription(ctx context.Context, customerID, planID string) (*Subscription, error) CancelSubscription(ctx context.Context, subscriptionID string) error ReportUsage(ctx context.Context, customerID, meterID string, quantity int64) error GetInvoices(ctx context.Context, customerID string) ([]Invoice, error) } ``` Phase 2 實作候選: - Stripe(最成熟,SaaS 標配) - Paddle(全球稅務處理較好) - Lemon Squeezy(小團隊友善) --- ## 其他未定案 - 企業合約 / PO 流程 - 退款政策 - 多幣別 - 發票系統(特別是台灣統一發票) --- ## 連結 - 回:[PRD ��引](../PRD.md)