Digital Appendix
『AIエージェントが見つけたサーバーレス』のデジタル付録
単価表、転送、完全退出
単価表、転送、完全退出
対象本文
第11章の実行環境とmodelの二重課金、第15章の1PB退出見積り、data transfer、完全退出時の無償化条件を補います。
収集方法
2026年7月10日に各社の公式pricing入口、AWS/Googleの完全退出program、EU Data Actを確認しました。価格の単純比較表は通貨、region、tier、契約、free allowanceで誤解を生むため、計算項目と取得元を正本にします。
現在の答え
計算項目
| 層 | 主な課金dimension | 見落としやすい項目 |
|---|---|---|
| FaaS/runtime | request、GB-second、vCPU/memory time、provisioned capacity | initialization、idle baseline、log、NAT、public IPv4、snapshot |
| agent runtime | session/runtime time、tool、memory、storage | idle timeout、persistent session storage、gateway、observability |
| model API | input/output token、image/audio、cache、batch | reasoning token、tool call、embedding、regional price、reservation |
| managed inference/GPU | instance/GPU time、active compute、endpoint | minimum capacity、model storage、weight load、data transfer |
| state/observability | operation、storage、retention、ingest/query | index、backup、cross-region replication、high-cardinality telemetry |
| network | Internet egress、inter-region/AZ、NAT/gateway processing | 双方向課金、protocol overhead、request fee、retrieval fee |
実行環境とmodel APIの単価を別々に取り、同じrun_idまたは成果単位へ集計します。本文の封筒裏は倍率を示すもので、現在の通貨額は下記pricing pageと契約単価から再計算します。
| 対象 | 現在値の正本 |
|---|---|
| AWS Lambda / MicroVMs | https://aws.amazon.com/lambda/pricing/ |
| Google Cloud Run / functions | https://cloud.google.com/run/pricing |
| Azure Functions | https://azure.microsoft.com/en-us/pricing/details/functions/ |
| Cloudflare Workers | https://developers.cloudflare.com/workers/platform/pricing/ |
| AWS Bedrock | https://aws.amazon.com/bedrock/pricing/ |
| Google Vertex AI | https://cloud.google.com/vertex-ai/generative-ai/pricing |
| Azure AI Foundry | https://azure.microsoft.com/en-us/pricing/details/ai-foundry/ |
| Cloudflare Workers AI | https://developers.cloudflare.com/workers-ai/platform/pricing/ |
1PB退出の読み方
本文の$0.09/GBは説明用の仮定です。2026年7月10日時点で、AWS EC2の一部region・tierには同じ表示値がありますが、service、destination、free allowance、tier、contractで変わり、1PB全体へ一律適用できません。Cloudflare R2のようにInternet egressを無料とするstorageも、operation、retrieval、接続する他serviceの処理費は別です。
退出費用は次を分けます。
- sourceから読むrequest/retrievalと解凍・変換。
- source service、region、Internet、専用線ごとのdata transfer。
- destinationへのingest、検証用二重稼働、差分同期。
- 失敗再送、checksum、log、暗号化、消去証拠。
- 回線速度とwindowが決める所要時間。
AWSとGoogle Cloudは、全workload/dataを移し契約を終了する完全退出についてdata transfer feeの免除またはcredit手順を公開しています。これは通常のmulti-cloud運用、部分移行、日常的なreplicationを無償にする契約ではありません。事前通知、対象service、期間、終了条件を読みます。
一次資料
- AWS EC2 data transfer pricing: https://aws.amazon.com/ec2/pricing/on-demand/
- AWS full-exit data transfer: https://aws.amazon.com/blogs/aws/free-data-transfer-out-to-internet-when-moving-out-of-aws/
- Google Cloud network pricing: https://cloud.google.com/vpc/network-pricing
- Google Cloud exit process: https://cloud.google.com/exit-cloud
- Azure bandwidth pricing: https://azure.microsoft.com/en-us/pricing/details/bandwidth/
- Cloudflare R2 pricing: https://developers.cloudflare.com/r2/pricing/
- EU Data Act: https://eur-lex.europa.eu/eli/reg/2023/2854
既知の未知
- list price、currency、tier、free allowance、contract discount、taxは継続的に変わります。
- pricing calculatorの見積りはinvoiceと同じではなく、network pathや関連serviceを漏らす場合があります。
- 完全退出programの対象と手順は契約・法域で異なり、部分移行へ一般化できません。
- 1PBの所要時間は帯域だけでなく、小object数、parallelism、rate limit、checksum、再送、delta catch-upに依存します。
変更履歴
- 0.9.0 (2026-07-10): 二重課金の取得元、network費、1PB退出、完全退出programを一つの見積り条件として初版ドラフト化。