> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 公開コスト

> アプリのニーズに合わせてスケールする柔軟な公開コスト。透明なクレジットベースの請求で使用した分だけ支払います。

export const AiPrompt = ({children}) => {
  return <CodeBlock className="relative block max-w-full overflow-x-hidden font-sans !whitespace-pre-wrap !break-words" style={{
    overflowWrap: "anywhere",
    wordBreak: "break-word"
  }}>
      <div className="pr-7" style={{
    whiteSpace: "pre-wrap",
    overflowWrap: "anywhere",
    wordBreak: "break-word"
  }}>
        {children}
      </div>
    </CodeBlock>;
};

export const BackgroundTotalCost = '~$2.03';

export const BackgroundComputeCost = '~$0.03';

export const ApiTotalCost = '~$4.50';

export const ApiRequestsCost = '~$0.12';

export const ApiComputeCost = '~$2.38';

export const SmallBusinessTotalCost = '~$2.39';

export const SmallBusinessRequestsCost = '~$0.03';

export const SmallBusinessComputeCost = '~$0.36';

export const StaticDeploymentOutboundPerGiB = '$0.05';

export const DedicatedLargeVm = '$130.00';

export const DedicatedMediumVm = '$50.00';

export const DedicatedSmallVm = '$35.00';

export const SharedMediumVm = '$15.00';

export const ScheduledDeployment = '$2.00';

export const SchedulerPrice = '$0.00';

export const ScheduledComputeUnit = '$0.60';

export const AutoscaleDeployment = '$2.00';

export const AutoscaleRequests = '$0.40';

export const AutoscaleComputeUnit = '$0.60';

export const AutoscaleBaseFee = '$2';

Replitの公開コストはアプリのニーズに合わせてスケールするよう設計されています。アプリがリクエストを処理する時だけ課金される使用量ベース請求か、一定のワークロードのための予測可能な定額オプションから選択できます。

## 請求の仕組み

すべての公開コストは月次クレジットから差し引かれます。月次クレジットが完全に使用された後にのみ、使用量ベースの料金が発生します。

* **Starterプラン**: 1つの無料公開済みアプリを含む。デプロイメントは30日後に期限切れになりますが、再公開できます。詳細は[Starterプラン](/ja/billing/plans/starter-plan)をご覧ください。
* **[Coreプラン](/ja/billing/plans/replit-core)**: 月次クレジット込み；[料金](https://replit.com/pricing)をご覧ください
* **[Proプラン](/ja/billing/plans/replit-pro)**: 段階的月次クレジット；詳細は[Replit Pro](/ja/billing/plans/replit-pro)と[料金ページ](https://replit.com/pricing)をご覧ください

<Note>
  クレジットはすべての公開コストに自動的に適用されます。未使用のクレジットは翌月に繰り越されません。[使用量ベース請求](/ja/billing/about-usage-based-billing)について詳しく学ぶ。
</Note>

公開コストを実際に理解するには、[インタラクティブ料金計算機](https://deployment-pricing.replit.app/)をご利用ください。

<Frame>
  <img src="https://mintcdn.com/replit/jSmYU1wBTvl8UMyc/images/deployments/deployments-cost.png?fit=max&auto=format&n=jSmYU1wBTvl8UMyc&q=85&s=e91449a14d21dc9680cfb524702852c3" alt="Interactive publishing costs calculator showing cost breakdown by deployment type" width="2540" height="990" data-path="images/deployments/deployments-cost.png" />
</Frame>

## デプロイメントタイプ

アプリのトラフィックパターンとリソースニーズに最適なデプロイメントタイプを選択してください。

<AccordionGroup>
  <Accordion title="オートスケールデプロイメント" icon="arrows-up-down">
    変動するトラフィックのあるアプリに最適。アプリがリクエストを処理する時だけ支払い—アイドル時は無料。

    **最適な用途:** 予測不可能なトラフィックパターンを持つウェブアプリ、API、サービス

    [オートスケールデプロイメントについて詳しく学ぶ](/ja/features/publishing/deployment-types#autoscale)
  </Accordion>

  <Accordion title="予約VMデプロイメント" icon="server">
    **専用リソースによる予測可能な月次コスト**

    継続的に稼働する保証されたコンピュートリソース。パフォーマンスニーズに基づいて共有または専用VMを選択。

    **最適な用途:** 安定したトラフィックや保証されたリソース要件を持つ本番アプリ

    [予約VMデプロイメントについて詳しく学ぶ](/ja/features/publishing/deployment-types#reserved-vm)
  </Accordion>

  <Accordion title="スケジュール済みデプロイメント" icon="clock">
    **バックグラウンドタスクと自動化のためのコスト効率的なソリューション**

    永続的なインフラを維持せずにスケジュールに従ってコードを実行。

    **最適な用途:** バックグラウンドジョブ、データ処理、自動化タスク

    [スケジュール済みデプロイメントについて詳しく学ぶ](/ja/features/publishing/deployment-types#scheduled)
  </Accordion>

  <Accordion title="スタティックデプロイメント" icon="globe">
    **グローバル配信による静的コンテンツの最小コスト**

    CDN配信で静的サイトを公開し、データ転送のみ支払い。

    **最適な用途:** ドキュメントサイト、ポートフォリオ、シングルページアプリケーション

    [スタティックデプロイメントについて詳しく学ぶ](/ja/features/publishing/deployment-types#static)
  </Accordion>
</AccordionGroup>

## リクエストベース請求の理解

<Tip>
  オートスケールデプロイメントでは、アプリがアクティブに動作している時だけ支払います。
  誰もアプリを訪問しない場合は、支払いは0円です。
</Tip>

オートスケールデプロイメントはリクエストベース請求を使用します—アプリがトラフィックを処理する時だけ課金されます。仕組みは以下の通りです：

1. 最初のリクエストが到着すると（アイドル状態の場合）**アプリが起動**
2. コンピュートリソースを使用して**リクエストを処理**
3. 15分間の非アクティブ状態の後**アイドル状態に移行**

**請求時間:** 複雑なアプリでも、多くの場合リクエストごとわずか1〜2秒。

### リクエストベース請求のタイムライン

誰もアプリを訪問しない場合は、支払いは0円です。アプリがビジーな場合は、使用したコンピュートリソースに対して支払います。

誰かがアプリを訪問したときの動作のタイムラインを以下に示します：

<p className="text-center"> リクエストベース請求のタイムライン </p>

<div className="grid grid-cols-[80px_1fr] gap-4 items-center">
  <div className="text-right text-sm">
    インスタンス
  </div>

  <div className="h-8 bg-gray-100 dark:bg-gray-800 rounded-md relative">
    <div className="absolute top-0.5 h-7 rounded bg-gray-200 dark:bg-gray-700 flex items-center justify-center text-xs text-gray-600 dark:text-gray-400" style={{ left: '13%', width: '77%' }}>
      稼働中
    </div>
  </div>

  <div className="text-right text-sm">リクエスト</div>

  <div className="h-8 bg-gray-100 dark:bg-gray-800 rounded-md relative">
    <div className="absolute top-0.5 h-3 rounded bg-blue-600" style={{ left: "15%", width: "12%" }} />

    <div className="absolute top-0.5 h-3 rounded bg-blue-600" style={{ left: "40%", width: "12%" }} />

    <div className="absolute top-4 h-3 rounded bg-blue-600" style={{ left: "46%", width: "12%" }} />

    <div className="absolute top-0.5 h-3 rounded bg-blue-600" style={{ left: "70%", width: "12%" }} />

    <div className="absolute top-4 h-3 rounded bg-blue-600" style={{ left: "76%", width: "12%" }} />
  </div>

  <div className="text-right text-sm">
    課金対象
  </div>

  <div className="h-8 bg-gray-100 dark:bg-gray-800 rounded-md relative">
    <div className="absolute top-0.5 h-7 rounded bg-green-600" style={{ left: '15%', width: '12%' }} />

    <div className="absolute top-0.5 h-7 rounded bg-green-600" style={{ left: '40%', width: '18%' }} />

    <div className="absolute top-0.5 h-7 rounded bg-green-600" style={{ left: '70%', width: '18%' }} />
  </div>
</div>

<div className="grid grid-cols-[80px_1fr] gap-6 mt-2">
  <div />

  <div className="relative text-xs text-gray-500 dark:text-gray-400">
    <span className="absolute" style={{ left: "12%" }}>
      開始
    </span>

    <span className="absolute" style={{ left: "83%" }}>
      停止
    </span>
  </div>
</div>

まずサーバーが起動します。次にリクエストを処理します。最後にアイドル状態になります。リクエスト処理中のCPUとメモリにのみ料金が発生します。

<Note>
  複数のリクエストが同時に到着した場合（スタックされた青いバーのように）、同じコンピュートリソースを共有します。

  請求時間はすべての同時リクエストをカバーするように延長されますが、各リクエストに別々に支払うのではなく、サーバーが動作している合計時間のみ支払います。
</Note>

緑のバーの間のギャップは、アイドル時間中のコスト削減を表しています。セッションの終わりにサーバーがシャットダウンします。

### コンピュートユニットの説明

コンピュートユニットはアプリが実行する計算作業を測定します：

* **CPU時間**: 使用された処理能力（1 CPU秒 = 18コンピュートユニット）
* **メモリ時間**: 消費されたRAM（1 GB秒 = 2コンピュートユニット）
* **期間**: 各リクエストに対してアプリが作業する時間

## 料金の内訳

<AccordionGroup>
  <Accordion title="オートスケールデプロイメント" icon="arrows-up-down">
    アプリがリクエストを処理する時だけ支払い。需要に応じて自動的にスケール。

    | コンポーネント | 価格 |
    | :- | -: |
    | **基本料金**（月額） | {AutoscaleBaseFee} |
    | **コンピュートユニット**（100万ユニットあたり） | {AutoscaleComputeUnit} |
    | **リクエスト**（100万リクエストあたり） | {AutoscaleRequests} |
  </Accordion>

  <Accordion title="スケジュール済みデプロイメント" icon="clock">
    バックグラウンドタスクとスケジュール済みジョブを実行。

    | コンポーネント | 価格 |
    | :- | -: |
    | **基本料金**（月額） | {ScheduledDeployment} |
    | **コンピュートユニット**（100万ユニットあたり） | {ScheduledComputeUnit} |
    | **スケジューラー** | {SchedulerPrice} |
  </Accordion>

  <Accordion title="予約VMデプロイメント" icon="server">
    予測可能な月次コストによる専用コンピュートリソース。

    #### 共有VM

    | 構成 | 価格（月額） |
    | :- | -: |

    \| **0.5 vCPU / 2GB RAM** | {SharedMediumVm} |

    #### 専用VM

    | 構成 | 価格（月額） |
    | :- | -: |
    | **1 vCPU / 4GB RAM** | {DedicatedSmallVm} |
    | **2 vCPU / 8GB RAM** | {DedicatedMediumVm} |
    | **4 vCPU / 16GB RAM** | {DedicatedLargeVm} |
  </Accordion>

  <Accordion title="スタティックデプロイメント" icon="globe">
    グローバルCDN配信で静的サイトをホスト。

    | コンポーネント | 価格 |
    | :- | -: |
    | **ホスティング** | 無料 |
    | **データ転送**（GBあたり） | {StaticDeploymentOutboundPerGiB} |
  </Accordion>
</AccordionGroup>

## アプリタイプ別のコスト例

以下の例は、さまざまなタイプのアプリケーションの現実的なコストを示しています。

<AccordionGroup>
  <Accordion title="個人ブログ" icon="browser">
    **トラフィック:** 1日50人の訪問者、各3ページビュー = 月4,500リクエスト

    | コンポーネント | 使用量 | コスト |
    | :- | :- | -: |
    | **基本料金** | 月額 | {AutoscaleBaseFee} |
    | **コンピュートユニット** | 13,500ユニット | {BlogComputeCost} |
    | **リクエスト** | 4,500 | {BlogRequestsCost} |
    | **合計** | | **{BlogTotalCost}** |
  </Accordion>

  <Accordion title="中小企業のウェブサイト" icon="browser">
    **トラフィック:** 1日500人の訪問者、各5ページビュー = 月75,000リクエスト

    | コンポーネント | 使用量 | コスト |
    | :- | :- | -: |
    | **基本料金** | 月額 | {AutoscaleBaseFee} |
    | **コンピュートユニット** | 600,000ユニット | {SmallBusinessComputeCost} |
    | **リクエスト** | 75,000 | {SmallBusinessRequestsCost} |
    | **合計** | | **{SmallBusinessTotalCost}** |
  </Accordion>

  <Accordion title="APIサービス" icon="gear">
    **トラフィック:** 1日10,000 API呼び出し = 月300,000リクエスト

    | コンポーネント | 使用量 | コスト |
    | :- | :- | -: |
    | **基本料金** | 月額 | {AutoscaleBaseFee} |
    | **コンピュートユニット** | 3.96Mユニット | {ApiComputeCost} |
    | **リクエスト** | 300,000 | {ApiRequestsCost} |
    | **合計** | | **{ApiTotalCost}** |
  </Accordion>

  <Accordion title="バックグラウンド処理ジョブ" icon="clock">
    **使用量:** スケジュール済みデプロイメントによる日次データ処理

    | コンポーネント | 使用量 | コスト |
    | :- | :- | -: |
    | **スケジュール済みデプロイメント** | 基本料金 | {ScheduledDeployment} |
    | **コンピュートユニット** | 50,000ユニット | {BackgroundComputeCost} |
    | **合計** | | **{BackgroundTotalCost}** |
  </Accordion>
</AccordionGroup>

## コストの監視と管理

<CardGroup cols={2}>
  <Card title="支出制限の設定" icon="shield" href="/ja/billing/managing-spend">
    予期しない料金を防ぐために支出制限と予算を設定する。
  </Card>

  <Card title="使用量の監視" icon="chart-bar" href="https://replit.com/usage">
    使用量ダッシュボードでリアルタイムの消費量とコストを追跡する。
  </Card>

  <Card title="AI請求について学ぶ" icon="brain" href="/ja/billing/ai-billing">
    [Agent](/ja/features/agent/overview)が請求にどう影響するかを理解する。
  </Card>

  <Card title="公開済みアプリを監視する" icon="chart-line" href="/ja/features/publishing/monitoring-a-deployment">
    ログを表示し、パフォーマンスを追跡し、公開済みアプリの状態を監視する。
  </Card>
</CardGroup>
