Cloud Run 定價

Cloud Run 只會按您實際使用的資源收費,進位至最接近的 100 毫秒倍數。Cloud Run 總帳單金額為套用免費方案後,定價表中的資源用量總和。

將「並行」設定為一次處理多項要求時,多項要求可共用執行個體的 CPU 和記憶體。

網際網路資料傳出作業會使用 Premium Network Service Tier,並按照 Google Cloud 網路服務定價計費,每月在北美洲境內可享 1 GiB 的免費資料傳輸量。

資料移轉至虛擬私有雲網路時,會以「從 VM 移轉資料」計費,並按照虛擬私有雲資料移轉費率收費。無伺服器 VPC 存取連接器也會收取執行所需的運算資源費用。請參閱「無伺服器 VPC 存取定價」。

將資料移轉至同一區域的 Google Cloud 資源 (例如從一個 Cloud Run 服務傳送至另一個 Cloud Run 服務的流量) 不會產生費用。資料傳輸至 Media CDN、Cloud CDN 和 Cloud Load Balancing 不會產生費用。

費用考量事項

評估 Cloud Run 定價時,請考量下列事項:

  • 隨選隨用,按用量計費:Cloud Run 提供隨選容量,並自動調度資源。Cloud Run 不需預先佈建基礎架構,即可因應預期的使用量高峰。Cloud Run 計費的容器執行個體為已使用的容器執行個體。
  • 總持有成本:Cloud Run 會收取運算費用,但能提供更多價值。舉例來說,Cloud Run 提供可用區備援,且由於網站可靠性工程師在後台做了許多工作,因此作業量較低,加上操作簡單,能提高您和團隊的效率。
  • 承諾使用折扣:購買承諾使用折扣,即可降低 Cloud Run 的長期使用費用。舉例來說,如果 Cloud Run 服務一律有一個以上的現有執行個體,您可以承諾至少使用這個數量,藉此降低費用。Compute 彈性承諾使用折扣適用於 GKE、Compute Engine 和 Cloud Run。

進一步瞭解成本最佳化。

Pricing calculator

您可以使用 Google Cloud Pricing Calculator 估算 Cloud Run 的使用費用。

價目表

下列定價表使用 GiB 秒 單位。舉例來說,1 GiB-second 可以是執行 1 GiB 執行個體 1 秒,或是執行 256 MiB 執行個體 4 秒。vCPU-second 單位也適用相同原則。CUD 是指承諾使用折扣。

免費方案的用量會按帳單帳戶彙整所有專案的用量,並在每月重設。只有超過免費方案的用量才會計費。免費方案會以支出折扣的形式套用,並採用第 1 級定價。

Cloud Run 定價取決於所選區域。Cloud Run 服務的定價也取決於 billing 設定。

如果您使用美元以外的貨幣付費,系統將按照 Cloud Platform SKU 頁面上列出的相應貨幣價格來計費。

服務 (以執行個體為依據的計費模式)

採用以執行個體為依據的計費模式的服務

免費方案 (以 us-central1 定價為準):

  • CPU:每月前 240,000 vCPU-秒免費
  • RAM - 每月前 450,000 GiB-秒免費
  • Johannesburg (africa-south1)
  • Taiwan (asia-east1)
  • Hong Kong (asia-east2)
  • Tokyo (asia-northeast1)
  • Osaka (asia-northeast2)
  • Seoul (asia-northeast3)
  • Mumbai (asia-south1)
  • Delhi (asia-south2)
  • Singapore (asia-southeast1)
  • Jakarta (asia-southeast2)
  • Bangkok (asia-southeast3)
  • Kuala Lumpur (asia-southeast4)
  • Sydney (australia-southeast1)
  • Melbourne (australia-southeast2)
  • Warsaw (europe-central2)
  • Finland (europe-north1)
  • Stockholm (europe-north2)
  • Madrid (europe-southwest1)
  • Belgium (europe-west1)
  • Berlin (europe-west10)
  • Turin (europe-west12)
  • London (europe-west2)
  • Frankfurt (europe-west3)
  • Netherlands (europe-west4)
  • Zurich (europe-west6)
  • Milan (europe-west8)
  • Paris (europe-west9)
  • Doha (me-central1)
  • Dammam (me-central2)
  • Tel Aviv (me-west1)
  • Montreal (northamerica-northeast1)
  • Toronto (northamerica-northeast2)
  • Mexico (northamerica-south1)
  • Sao Paulo (southamerica-east1)
  • Santiago (southamerica-west1)
  • Iowa (us-central1)
  • South Carolina (us-east1)
  • Northern Virginia (us-east4)
  • Columbus (us-east5)
  • Alabama (us-east7)
  • Dallas (us-south1)
  • Oregon (us-west1)
  • Los Angeles (us-west2)
  • Salt Lake City (us-west3)
  • Las Vegas (us-west4)
  • Phoenix (us-west8)
顯示折扣選項

資源

預設 (美元)

* (USD)
Cloud Run CUD - 1 Year* (USD)
Cloud Run CUD - 3 Year* (USD)
Compute Flexible CUD - 1 Year* (USD)
Compute Flexible CUD - 3 Year* (USD)

CPU (每 vCPU-秒)

US$0.000018US$0.00001494US$0.00001494US$0.00001296US$0.00000972

記憶體 (每 GiB-秒)

US$0.000002US$0.00000166US$0.00000166US$0.00000144US$0.00000108

GPU 類型:NVIDIA L4 非可用區備援 (每秒)

US$0.0001867----

GPU 類型 NVIDIA L4 可用區備援 (每秒)

US$0.0002909----

GPU 類型 NVIDIA RTX PRO 6000 非可用區備援 (每秒)

US$0.00036522----

GPU 類型 NVIDIA RTX PRO 6000 可用區備援 (每秒)

US$0.00056913----
* 每個計費模式都有專屬 ID。您可能需要啟用相關設定,才能享有計費模式折扣。按這裡瞭解詳情。

Cloud Run CUD 僅適用於 Cloud Run 資源。如要享有更多彈性,請使用 Compute 彈性 CUD。

彈性 CUD 是指 Compute 彈性承諾使用折扣。

服務 (以要求為依據的計費方式)

計費執行個體時間內,採用以要求為依據計費的服務

免費方案 (以 us-central1 的有效定價為準):

  • CPU:每月前 180,000 vCPU-秒免費
  • RAM - 每月前 360,000 GiB-秒免費
  • 要求 - 每月 200 萬次要求免付費
  • Johannesburg (africa-south1)
  • Taiwan (asia-east1)
  • Hong Kong (asia-east2)
  • Tokyo (asia-northeast1)
  • Osaka (asia-northeast2)
  • Seoul (asia-northeast3)
  • Mumbai (asia-south1)
  • Delhi (asia-south2)
  • Singapore (asia-southeast1)
  • Jakarta (asia-southeast2)
  • Bangkok (asia-southeast3)
  • Kuala Lumpur (asia-southeast4)
  • Sydney (australia-southeast1)
  • Melbourne (australia-southeast2)
  • Warsaw (europe-central2)
  • Finland (europe-north1)
  • Stockholm (europe-north2)
  • Madrid (europe-southwest1)
  • Belgium (europe-west1)
  • Berlin (europe-west10)
  • Turin (europe-west12)
  • London (europe-west2)
  • Frankfurt (europe-west3)
  • Netherlands (europe-west4)
  • Zurich (europe-west6)
  • Milan (europe-west8)
  • Paris (europe-west9)
  • Doha (me-central1)
  • Dammam (me-central2)
  • Tel Aviv (me-west1)
  • Montreal (northamerica-northeast1)
  • Toronto (northamerica-northeast2)
  • Mexico (northamerica-south1)
  • Sao Paulo (southamerica-east1)
  • Santiago (southamerica-west1)
  • Iowa (us-central1)
  • South Carolina (us-east1)
  • Northern Virginia (us-east4)
  • Columbus (us-east5)
  • Dallas (us-south1)
  • Oregon (us-west1)
  • Los Angeles (us-west2)
  • Salt Lake City (us-west3)
  • Las Vegas (us-west4)
  • Phoenix (us-west8)
顯示折扣選項

資源

類型

預設 (美元)

* (USD)
Cloud Run CUD - 1 Year* (USD)
Cloud Run CUD - 3 Year* (USD)
Compute Flexible CUD - 1 Year* (USD)
Compute Flexible CUD - 3 Year* (USD)

CPU (每 vCPU-秒)

啟用時間


US$0.000024US$0.00001992US$0.00001992US$0.00001992US$0.00001992

閒置時間 (最少執行個體數:1)


US$0.0000025US$0.000002075US$0.000002075US$0.000002075US$0.000002075

記憶體 (每 GiB-秒)

啟用時間

US$0.0000025US$0.000002075US$0.000002075US$0.000002075US$0.000002075

閒置時間 (最少執行個體數:1)

US$0.0000025US$0.000002075US$0.000002075US$0.000002075US$0.000002075

要求 (每 1,000,000 次)

不適用

US$0.40US$0.332US$0.332US$0.332US$0.332
* 每個計費模式都有專屬 ID。您可能需要啟用相關設定,才能享有計費模式折扣。按這裡瞭解詳情。

1 閒置執行個體數量下限是指使用執行個體數量下限保持暖機狀態的執行個體,其閒置計費時間。閒置執行個體數量若未達下限,則不會產生費用。

只有在成功驗證後,要求才會傳送至容器,並開始計費。如果 IAM 政策拒絕要求,則不會計費。

Cloud Run CUD 僅適用於 Cloud Run 資源。如要享有更多彈性,請使用 Compute 彈性 CUD。

CUD 是指承諾使用折扣。

工作

免費方案 (以 us-central1 定價為準):

  • CPU:每月前 240,000 vCPU-秒免費
  • RAM - 每月前 450,000 GiB-秒免費
  • Johannesburg (africa-south1)
  • Taiwan (asia-east1)
  • Hong Kong (asia-east2)
  • Tokyo (asia-northeast1)
  • Osaka (asia-northeast2)
  • Seoul (asia-northeast3)
  • Mumbai (asia-south1)
  • Delhi (asia-south2)
  • Singapore (asia-southeast1)
  • Jakarta (asia-southeast2)
  • Bangkok (asia-southeast3)
  • Kuala Lumpur (asia-southeast4)
  • Sydney (australia-southeast1)
  • Melbourne (australia-southeast2)
  • Warsaw (europe-central2)
  • Finland (europe-north1)
  • Stockholm (europe-north2)
  • Madrid (europe-southwest1)
  • Belgium (europe-west1)
  • Berlin (europe-west10)
  • Turin (europe-west12)
  • London (europe-west2)
  • Frankfurt (europe-west3)
  • Netherlands (europe-west4)
  • Zurich (europe-west6)
  • Milan (europe-west8)
  • Paris (europe-west9)
  • Doha (me-central1)
  • Dammam (me-central2)
  • Tel Aviv (me-west1)
  • Montreal (northamerica-northeast1)
  • Toronto (northamerica-northeast2)
  • Mexico (northamerica-south1)
  • Sao Paulo (southamerica-east1)
  • Santiago (southamerica-west1)
  • Iowa (us-central1)
  • South Carolina (us-east1)
  • Northern Virginia (us-east4)
  • Columbus (us-east5)
  • Alabama (us-east7)
  • Dallas (us-south1)
  • Oregon (us-west1)
  • Los Angeles (us-west2)
  • Salt Lake City (us-west3)
  • Las Vegas (us-west4)
  • Phoenix (us-west8)
顯示折扣選項

資源

預設 (美元)

* (USD)
Cloud Run CUD - 1 Year* (USD)
Cloud Run CUD - 3 Year* (USD)
Compute Flexible CUD - 1 Year* (USD)
Compute Flexible CUD - 3 Year* (USD)

CPU (每 vCPU-秒)

US$0.000018US$0.00001494US$0.00001494US$0.00001296US$0.00000972

記憶體 (每 GiB-秒)

US$0.000002US$0.00000166US$0.00000166US$0.00000144US$0.00000108

GPU 類型:NVIDIA L4 非可用區備援 (每秒)

US$0.0001867----

GPU 類型 NVIDIA RTX PRO 6000 非可用區備援 (每秒)

US$0.00036522----
* 每個計費模式都有專屬 ID。您可能需要啟用相關設定,才能享有計費模式折扣。按這裡瞭解詳情。

Cloud Run CUD 僅適用於 Cloud Run 資源。如要享有更多彈性,請使用 Compute 彈性 CUD。

彈性 CUD 是指 Compute 彈性承諾使用折扣。

延遲的工作

免費方案 (以 us-central1 區域的價格為準):

  • CPU:每月前 342,857 vCPU-秒免費
  • RAM - 每月前 642,857 GiB-秒免費
  • Johannesburg (africa-south1)
  • Taiwan (asia-east1)
  • Hong Kong (asia-east2)
  • Tokyo (asia-northeast1)
  • Osaka (asia-northeast2)
  • Seoul (asia-northeast3)
  • Mumbai (asia-south1)
  • Delhi (asia-south2)
  • Singapore (asia-southeast1)
  • Jakarta (asia-southeast2)
  • Bangkok (asia-southeast3)
  • Kuala Lumpur (asia-southeast4)
  • Sydney (australia-southeast1)
  • Melbourne (australia-southeast2)
  • Warsaw (europe-central2)
  • Finland (europe-north1)
  • Stockholm (europe-north2)
  • Madrid (europe-southwest1)
  • Belgium (europe-west1)
  • Berlin (europe-west10)
  • Turin (europe-west12)
  • London (europe-west2)
  • Frankfurt (europe-west3)
  • Netherlands (europe-west4)
  • Zurich (europe-west6)
  • Milan (europe-west8)
  • Paris (europe-west9)
  • Doha (me-central1)
  • Dammam (me-central2)
  • Tel Aviv (me-west1)
  • Montreal (northamerica-northeast1)
  • Toronto (northamerica-northeast2)
  • Mexico (northamerica-south1)
  • Sao Paulo (southamerica-east1)
  • Santiago (southamerica-west1)
  • Iowa (us-central1)
  • South Carolina (us-east1)
  • Northern Virginia (us-east4)
  • Columbus (us-east5)
  • Alabama (us-east7)
  • Dallas (us-south1)
  • Oregon (us-west1)
  • Los Angeles (us-west2)
  • Salt Lake City (us-west3)
  • Las Vegas (us-west4)
  • Phoenix (us-west8)
顯示折扣選項

資源

預設 (美元)*

(USD)
Compute Flexible CUD - 1 Year* (USD)
Compute Flexible CUD - 3 Year* (USD)

CPU (每 vCPU-秒)

US$0.0000126US$0.000009072US$0.000006804

記憶體 (每 GiB-秒)

US$0.0000014US$0.000001008US$0.000000756

GPU 類型:NVIDIA L4 非可用區備援 (每秒)

US$0.0001867--

GPU 類型 NVIDIA RTX PRO 6000 非可用區備援 (每秒)

US$0.00036522--
* 每個計費模式都有專屬 ID。您可能需要啟用相關設定,才能享有計費模式折扣。按這裡瞭解詳情。

注意:延遲工作價格會動態調整,最快每 30 天變更一次。

Cloud Run CUD 僅適用於 Cloud Run 資源。如要享有更多彈性,請使用 Compute 彈性 CUD。

彈性 CUD 是指 Compute 彈性承諾使用折扣。

worker 集區

免費方案 (以 us-central1 定價為準):

  • CPU - 每月前 384,204 vCPU-秒免費
  • RAM - 每月前 728,744 GiB-秒免費
  • Johannesburg (africa-south1)
  • Taiwan (asia-east1)
  • Hong Kong (asia-east2)
  • Tokyo (asia-northeast1)
  • Osaka (asia-northeast2)
  • Seoul (asia-northeast3)
  • Mumbai (asia-south1)
  • Delhi (asia-south2)
  • Singapore (asia-southeast1)
  • Jakarta (asia-southeast2)
  • Bangkok (asia-southeast3)
  • Kuala Lumpur (asia-southeast4)
  • Sydney (australia-southeast1)
  • Melbourne (australia-southeast2)
  • Warsaw (europe-central2)
  • Finland (europe-north1)
  • Stockholm (europe-north2)
  • Madrid (europe-southwest1)
  • Belgium (europe-west1)
  • Berlin (europe-west10)
  • Turin (europe-west12)
  • London (europe-west2)
  • Frankfurt (europe-west3)
  • Netherlands (europe-west4)
  • Zurich (europe-west6)
  • Milan (europe-west8)
  • Paris (europe-west9)
  • Doha (me-central1)
  • Dammam (me-central2)
  • Tel Aviv (me-west1)
  • Montreal (northamerica-northeast1)
  • Toronto (northamerica-northeast2)
  • Mexico (northamerica-south1)
  • Sao Paulo (southamerica-east1)
  • Santiago (southamerica-west1)
  • Iowa (us-central1)
  • South Carolina (us-east1)
  • Northern Virginia (us-east4)
  • Columbus (us-east5)
  • Dallas (us-south1)
  • Oregon (us-west1)
  • Los Angeles (us-west2)
  • Salt Lake City (us-west3)
  • Las Vegas (us-west4)
  • Phoenix (us-west8)
顯示折扣選項

資源

預設 (美元)

* (USD)
Compute Flexible CUD - 1 Year* (USD)
Compute Flexible CUD - 3 Year* (USD)

CPU (每 vCPU-秒)

US$0.000011244US$0.000008096US$0.000006072

記憶體 (每 GiB-秒)

US$0.000001235US$0.000000889US$0.000000667

GPU 類型:NVIDIA L4 非可用區備援 (每秒)

US$0.0001867--

GPU 類型 NVIDIA L4 可用區備援 (每秒)

US$0.0002909--

GPU 類型 NVIDIA RTX PRO 6000 非可用區備援 (每秒)

US$0.00036522--

GPU 類型 NVIDIA RTX PRO 6000 可用區備援 (每秒)

US$0.00056913--
* 每個計費模式都有專屬 ID。您可能需要啟用相關設定,才能享有計費模式折扣。按這裡瞭解詳情。

如果您使用美元以外的貨幣付費,系統將按照 Cloud Platform SKU 頁面上列出的相應貨幣價格來計費。

彈性 CUD 是指 Compute 彈性承諾使用折扣。

執行個體

  • Johannesburg (africa-south1)
  • Taiwan (asia-east1)
  • Hong Kong (asia-east2)
  • Tokyo (asia-northeast1)
  • Osaka (asia-northeast2)
  • Seoul (asia-northeast3)
  • Mumbai (asia-south1)
  • Delhi (asia-south2)
  • Singapore (asia-southeast1)
  • Jakarta (asia-southeast2)
  • Bangkok (asia-southeast3)
  • Kuala Lumpur (asia-southeast4)
  • Sydney (australia-southeast1)
  • Melbourne (australia-southeast2)
  • Warsaw (europe-central2)
  • Finland (europe-north1)
  • Stockholm (europe-north2)
  • Madrid (europe-southwest1)
  • Belgium (europe-west1)
  • Berlin (europe-west10)
  • Turin (europe-west12)
  • London (europe-west2)
  • Frankfurt (europe-west3)
  • Netherlands (europe-west4)
  • Zurich (europe-west6)
  • Milan (europe-west8)
  • Paris (europe-west9)
  • Doha (me-central1)
  • Dammam (me-central2)
  • Tel Aviv (me-west1)
  • Montreal (northamerica-northeast1)
  • Toronto (northamerica-northeast2)
  • Mexico (northamerica-south1)
  • Sao Paulo (southamerica-east1)
  • Santiago (southamerica-west1)
  • Iowa (us-central1)
  • South Carolina (us-east1)
  • Northern Virginia (us-east4)
  • Columbus (us-east5)
  • Alabama (us-east7)
  • Dallas (us-south1)
  • Oregon (us-west1)
  • Los Angeles (us-west2)
  • Salt Lake City (us-west3)
  • Las Vegas (us-west4)
  • Phoenix (us-west8)
顯示折扣選項

資源

預設 (美元)

* (USD)
Compute Flexible CUD - 1 Year* (USD)
Compute Flexible CUD - 3 Year* (USD)

CPU (每 vCPU-秒)

US$0.00000027US$0.000000194US$0.000000146

記憶體 (每 GiB-秒)

US$0.00000193US$0.00000139US$0.000001042
* 每個計費模式都有專屬 ID。您可能需要啟用相關設定,才能享有計費模式折扣。按這裡瞭解詳情。

如果您使用美元以外的貨幣付費,系統將按照 Cloud Platform SKU 頁面上列出的相應貨幣價格來計費。

彈性 CUD 是指 Compute 彈性承諾使用折扣。

暫時磁碟

  • Johannesburg (africa-south1)
  • Taiwan (asia-east1)
  • Hong Kong (asia-east2)
  • Tokyo (asia-northeast1)
  • Osaka (asia-northeast2)
  • Seoul (asia-northeast3)
  • Mumbai (asia-south1)
  • Delhi (asia-south2)
  • Singapore (asia-southeast1)
  • Jakarta (asia-southeast2)
  • Bangkok (asia-southeast3)
  • Sydney (australia-southeast1)
  • Melbourne (australia-southeast2)
  • Warsaw (europe-central2)
  • Finland (europe-north1)
  • Stockholm (europe-north2)
  • Madrid (europe-southwest1)
  • Belgium (europe-west1)
  • Berlin (europe-west10)
  • Turin (europe-west12)
  • London (europe-west2)
  • Frankfurt (europe-west3)
  • Netherlands (europe-west4)
  • Zurich (europe-west6)
  • Milan (europe-west8)
  • Paris (europe-west9)
  • Doha (me-central1)
  • Dammam (me-central2)
  • Tel Aviv (me-west1)
  • Montreal (northamerica-northeast1)
  • Toronto (northamerica-northeast2)
  • Mexico (northamerica-south1)
  • Sao Paulo (southamerica-east1)
  • Santiago (southamerica-west1)
  • Iowa (us-central1)
  • South Carolina (us-east1)
  • Northern Virginia (us-east4)
  • Columbus (us-east5)
  • Dallas (us-south1)
  • Oregon (us-west1)
  • Los Angeles (us-west2)
  • Salt Lake City (us-west3)
  • Las Vegas (us-west4)
顯示折扣選項

資源

預設美元

* (USD)
Compute Flexible CUD - 1 Year* (USD)
Compute Flexible CUD - 3 Year* (USD)

暫時磁碟

US$0.000109589 / 1 gibibyte hourUS$0.000078904 / 1 gibibyte hourUS$0.000059178 / 1 gibibyte hour
* 每個計費模式都有專屬 ID。您可能需要啟用相關設定,才能享有計費模式折扣。按這裡瞭解詳情。

區域價格級別

適用級別 1 定價

  • africa-south1 (約翰尼斯堡)
  • asia-east1 (台灣)
  • asia-northeast1 (東京)
  • asia-northeast2 (大阪)
  • asia-south1 (印度孟買)
  • asia-southeast3 (曼谷)
  • asia-southeast4 (吉隆坡)
  • europe-north1 (芬蘭)  低二氧化碳2
  • europe-north2 (斯德哥爾摩)  低二氧化碳2
  • europe-southwest1 (Madrid)  Low CO2
  • europe-west1 (比利時)  低二氧化碳2
  • europe-west4 (Netherlands)  低二氧化碳2
  • europe-west8 (米蘭)
  • europe-west9 (巴黎)  低二氧化碳2
  • me-west1 (特拉維夫)
  • northamerica-south1 (墨西哥)
  • us-central1 (愛荷華州)  低二氧化碳排放
  • us-east1 (南卡羅來納州)
  • us-east4 (北維吉尼亞州)
  • us-east5 (哥倫布)
  • us-south1 (達拉斯)  低二氧化碳2
  • us-west1 (奧勒岡州)  低二氧化碳2
  • us-west8 (鳳凰城)

適用第 2 級定價

  • asia-east2 (香港)
  • asia-northeast3 (韓國首爾)
  • asia-southeast1 (新加坡)
  • asia-southeast2 (雅加達)
  • asia-south2 (印度德里)
  • australia-southeast1 (雪梨)
  • australia-southeast2 (墨爾本)
  • europe-central2 (波蘭華沙)
  • europe-west10 (柏林)  低二氧化碳2
  • europe-west12 (杜林)
  • europe-west2 (英國倫敦)  低二氧化碳2
  • europe-west3 (德國法蘭克福)  低二氧化碳
  • europe-west6 (瑞士蘇黎世)  低二氧化碳
  • me-central1 (杜哈)
  • me-central2 (達曼)
  • northamerica-northeast1 (蒙特婁)  低二氧化碳
  • northamerica-northeast2 (多倫多)  低二氧化碳2
  • southamerica-east1 (巴西聖保羅)  低二氧化碳
  • southamerica-west1 (智利聖地牙哥)  低二氧化碳
  • us-west2 (洛杉磯)
  • us-west3 (鹽湖城)
  • us-west4 (拉斯維加斯)

計費執行個體時間

所有 Cloud Run 執行個體的匯總計費時間會以 Cloud Monitoring 指標的形式顯示。詳情請參閱 container/billable_instance_time 指標。

計費執行個體時間會四捨五入至最接近的 100 毫秒,並取決於 Cloud Run 服務的 billing 設定:

計費執行個體時間

採用「以要求為依據」計費模式的服務,其計費執行個體時間

根據預設,Cloud Run 只會在下列情況下,針對分配給執行個體的 CPU 和記憶體計費:

  • 執行個體正在啟動。
  • 執行個體正在安全地 關閉 (處理 SIGTERM 信號)。
  • 執行個體正在處理至少一項要求。如以下圖表所示,可計費的執行個體時間從第一個要求開始時起算,到最後一個要求結束時為止:

如果設定執行個體數量下限,這些執行個體未處理要求時,也會以不同的「閒置」費率計費。請參閱上表。

以執行個體為依據計費的服務,可計費的執行個體時間

選擇採用以執行個體為依據的計費模式後,系統會針對 Cloud Run 容器執行個體的整個生命週期計費,也就是從容器啟動到終止的時間,且至少會收取 1 分鐘的費用。

Cloud Run jobs 的計費執行個體時間

Cloud Run 工作會按 Instance-based billing 費率計費,針對啟動的任何執行個體,收取整個生命週期的費用,最低為 1 分鐘。

計費示例

範例 1:公開 API/網站 - 外部應用程式資料存取

假設您在歐洲西部 1 區 (比利時) 部署了 Cloud Run 服務,並採用以要求為準的計費方式,用於提供網站、網頁應用程式、API 或行動後端服務。您的服務每月收到 1,000 萬個要求,每個要求的平均延遲時間為 400 毫秒。這項服務的設定為 1 個 vCPU、512 MiB 記憶體,以及每個執行個體最多 20 個並行要求。流量模式遵循 24 小時週期,要求量在 12 小時內呈鐘形曲線分布。

這項工作負載的每月預估費用為 $13.69 美元。如果沒有 vCPU/記憶體免費方案,費用會是 $18.91 美元。

如要詳細瞭解這些計算方式,並調整設定和用量估算值,請使用 Pricing Calculator。

範例 2:單一並行 - CPU 密集型/非執行緒安全應用程式,每個執行個體一個要求

假設您在 europe-west1 (比利時) 部署了 Cloud Run 服務,並採用以要求為準的計費方式,用於處理 CPU 密集型、非執行緒安全應用程式,且一次處理一個要求。您的服務每月收到 1,000 萬個要求,每個要求的平均延遲時間為 400 毫秒。這項服務設定為 1 個 vCPU 和 512 MiB 記憶體。

這項工作負載的每月預估費用為 $81.72 美元。如果沒有 vCPU/記憶體免費方案,費用會是 $86.49 美元。

如要詳細瞭解這些計算方式,並調整設定和用量估算值,請使用 Pricing Calculator。

範例 3:AI 推論端點 - 使用 Ollama 提供本機模型

假設您在 europe-west1 (比利時) 部署了 Cloud Run 服務,用於提供即時、GPU 加速的 LLM 或圖像生成服務。這項服務設定了 4 個 vCPU、16 GiB 記憶體和 NVIDIA-L4 (無可用區備援)。這項服務的執行個體數量每天會達到 2 個的峰值,流量模式則遵循 24 小時週期,要求量在 12 小時內呈現鐘形曲線分布。

這項工作負載的預估每月費用為 $822.40 美元。如果沒有 vCPU/記憶體免費方案,費用會是 $827.62 美元。

如要詳細瞭解這些計算方式,並調整設定和用量估算值,請使用 Pricing Calculator。

範例 4:無伺服器函式 - 輕量級 FaaS,可在上傳圖片時調整大小

假設您在歐洲西部 1 區 (比利時) 部署了 Cloud Run 服務,並採用依要求計費的方式,用於提供事件觸發的程式碼執行作業 (例如:檔案上傳、HTTP 要求)。您的服務每月收到 1,000 萬個要求,每個要求的平均延遲時間為 200 毫秒。這項服務設定為每個執行個體 0.167 個 vCPU、256 MiB 記憶體和 1 個最大並行要求。

這項工作負載的每月預估費用為 $7.25 美元。如果沒有 vCPU/記憶體免付費方案,費用將為 $12.47 美元。

如要詳細瞭解這些計算方式,並調整設定和用量估算值,請使用 Pricing Calculator。

範例 5:批次工作處理 - 大規模排程資料轉換

假設您在 europe-west1 (比利時) 部署 Cloud Run 工作,以處理大規模的排程資料轉換作業 (例如:報表)。工作每小時啟動一次 (每月 730 次),每次執行時間為 1 分鐘。這項工作設定為每次執行使用 1 個 vCPU、512 MiB 記憶體和 1 個工作。

這項工作負載的每月預估費用為 $0.00 美元。如果沒有 vCPU/記憶體免費方案,費用會是 $0.45 美元。

如要詳細瞭解這些計算方式,並調整設定和用量估算值,請使用 Pricing Calculator。

範例 6:背景工作人員 - 非同步卸載密集作業

假設您在歐洲西部 1 區 (比利時) 部署了 Cloud Run worker 集區,將耗時較長或較繁重的工作 (例如大量電子郵件、影片處理) 交給該集區,以確保主要應用程式的反應速度。您的工作站集區設定為在整個月內執行單一執行個體。這個 worker 集區設定為 1 個 vCPU 和 512 MiB 記憶體。

這項工作負載的每月預估費用為 $11.61 美元。如果沒有 vCPU/記憶體免費方案,費用會是 $16.83 美元。

如要詳細瞭解這些計算方式,並調整設定和用量估算值,請使用 Pricing Calculator。

來源部署作業和函式

Cloud Run 從原始碼部署 和 functions 會以 Cloud Run 服務的形式運作,並根據上述條件計費。

從原始碼部署或建立函式時,Cloud Run 會使用 Cloud Build 將原始碼或函式轉換為可執行的映像檔。映像檔會在 Cloud Build 中建立,並儲存在 Artifact Registry。Artifact Registry 有自己的儲存空間免費方案。如果將原始碼或函式部署至 Artifact Registry,且用量超過 Artifact Registry 免費方案上限,即使 Cloud Run 用量在免費方案範圍內,仍須支付函式部署費用。

Cloud Run 定價不含 Cloud Build 和 Artifact Registry 的費用。如要查看這些服務的價格,請參閱 Cloud Build 定價 和 Artifact Registry 定價 頁面。

Cloud Run 使用 Eventarc 傳送事件。Eventarc 的定價不包含在上述 Cloud Run 定價中。請前往「Eventarc 定價」頁面查看定價。

Cloud Run functions (第 1 代) 的定價不包含在 Cloud Run 定價中。請參閱「Cloud Run functions (第 1 代) 定價」一文。

後續步驟

索取客製化報價

Google Cloud 提供「即付即用」計費模式,您只需要為所用服務付費。貴機構如需索取客製化的報價,請與我們的銷售團隊聯絡。
Google Cloud