---
title: データレジデンシー
url: https://platform.claude.com/docs/ja/manage-claude/data-residency
description: 地理的な制御により、モデル推論が実行される場所とデータが保存される場所を管理します。
---

「data residency」（データレジデンシー）制御により、データが処理および保存される場所を管理できます。これは2つの独立した設定によって管理されます。

* **Inference geo（推論ジオ）:** モデル推論が実行される場所をリクエストごとに制御します。`inference_geo` APIパラメータを通じて、またはワークスペースのデフォルトとして設定します。
* **Workspace geo（ワークスペースジオ）:** 保存データが格納される場所と、エンドポイント処理（画像のトランスコードやコード実行など）が行われる場所を制御します。[Claude Console](https://platform.claude.com)でワークスペースレベルで設定します。

<Note>
  [Claude Managed Agents](https://platform.claude.com/docs/ja/managed-agents/overview)は、エージェントレベルでの地理的な固定をサポートしています。[エージェントのモデル設定](https://platform.claude.com/docs/ja/managed-agents/agent-setup#pin-the-inference-geo)の`inference_geo`は、そのエージェントを実行するセッションのモデルリクエストを処理する地域を固定し、セッション作成時に[セッションごとのオーバーライド](https://platform.claude.com/docs/ja/managed-agents/sessions#pin-the-inference-geo-for-a-session)も可能です。固定されていないエージェントは、各リクエストでワークスペースのデフォルトの推論ジオに従います。Managed AgentsはConsoleで設定されたワークスペースジオも尊重し、[セルフホスト型サンドボックス](https://platform.claude.com/docs/ja/managed-agents/self-hosted-sandboxes)を使用すると、ツールの実行とサンドボックスのファイルシステムはお客様が管理するインフラストラクチャ上に留まります。アタッチされた[メモリストア](https://platform.claude.com/docs/ja/managed-agents/self-hosted-sandboxes-memory)の内容は引き続きAnthropicによって保存され、セッションのためにサンドボックスにコピーされます。
</Note>

## 推論ジオ

<Note>
  「zero data retention」（ゼロデータ保持）、すなわちZDRがこの機能にどのように適用されるかについては、[APIとデータ保持](https://platform.claude.com/docs/ja/manage-claude/api-and-data-retention)を参照してください。
</Note>

`inference_geo`パラメータは、特定のAPIリクエストに対してモデル推論が実行される場所を制御します。任意の`POST /v1/messages`呼び出しに追加できます。

| 値          | 説明                                                   |
| ---------- | ---------------------------------------------------- |
| `"global"` | デフォルト。最適なパフォーマンスと可用性のために、推論は利用可能な任意の地域で実行される場合があります。 |
| `"us"`     | 推論は米国ベースのインフラストラクチャでのみ実行されます。                        |

### APIの使用方法

<CodeGroup>
  ```bash cURL
  curl https://api.anthropic.com/v1/messages \
    -H "x-api-key: $ANTHROPIC_API_KEY" \
    -H "anthropic-version: 2023-06-01" \
    -H "content-type: application/json" \
    -d '{
      "model": "claude-opus-5-5",
      "max_tokens": 1024,
      "inference_geo": "us",
      "messages": [{
        "role": "user",
        "content": "Summarize the key points of this document."
      }]
    }'
  ```

  ```bash CLI
  ant messages create \
    --model claude-opus-5-5 \
    --max-tokens 1024 \
    --inference-geo us \
    --message '{role: user, content: "Summarize the key points of this document."}' \
    --transform '{content.#(type=="text").text,usage.inference_geo}' --format yaml
  ```

  ```python Python
  client = anthropic.Anthropic()

  response = client.messages.create(
      model="claude-opus-5-5",
      max_tokens=1024,
      inference_geo="us",
      messages=[
          {"role": "user", "content": "Summarize the key points of this document."}
      ],
  )

  for block in response.content:
      if block.type == "text":
          print(block.text)
  # 推論が実際にどこで実行されたかを確認します
  print(f"Inference geo: {response.usage.inference_geo}")
  ```

  ```typescript TypeScript
  const client = new Anthropic();

  const response = await client.messages.create({
    model: "claude-opus-5-5",
    max_tokens: 1024,
    inference_geo: "us",
    messages: [
      {
        role: "user",
        content: "Summarize the key points of this document."
      }
    ]
  });

  const textBlock = response.content.find(
    (block): block is Anthropic.TextBlock => block.type === "text"
  );
  console.log(textBlock?.text);
  // 推論が実際にどこで実行されたかを確認します
  console.log(`Inference geo: ${response.usage.inference_geo}`);
  ```

  ```csharp C#
  var client = new AnthropicClient();

  var response = await client.Messages.Create(
      new MessageCreateParams
      {
          Model = Model.ClaudeOpus5_5,
          MaxTokens = 1024,
          InferenceGeo = "us",
          Messages =
          [
              new() { Role = Role.User, Content = "Summarize the key points of this document." },
          ],
      }
  );

  foreach (var block in response.Content)
  {
      if (block.TryPickText(out var textBlock))
      {
          Console.WriteLine(textBlock.Text);
      }
  }

  // 推論が実際にどこで実行されたかを確認します
  Console.WriteLine($"Inference geo: {response.Usage.InferenceGeo}");
  ```

  ```go Go
  client := anthropic.NewClient()

  message, err := client.Messages.New(context.Background(), anthropic.MessageNewParams{
  	Model:        anthropic.ModelClaudeOpus5_5,
  	MaxTokens:    1024,
  	InferenceGeo: anthropic.String("us"),
  	Messages: []anthropic.MessageParam{
  		anthropic.NewUserMessage(anthropic.NewTextBlock("Summarize the key points of this document.")),
  	},
  })
  if err != nil {
  	log.Fatal(err)
  }

  for _, block := range message.Content {
  	if textBlock, ok := block.AsAny().(anthropic.TextBlock); ok {
  		fmt.Println(textBlock.Text)
  	}
  }
  // 推論が実際にどこで実行されたかを確認します
  fmt.Printf("Inference geo: %s\n", message.Usage.InferenceGeo)
  ```

  ```java Java
  AnthropicClient client = AnthropicOkHttpClient.fromEnv();

  Message response = client.messages().create(
          MessageCreateParams.builder()
                  .model(Model.CLAUDE_OPUS_5_5)
                  .maxTokens(1024L)
                  .inferenceGeo("us")
                  .addUserMessage("Summarize the key points of this document.")
                  .build());

  response.content().stream()
          .flatMap(block -> block.text().stream())
          .forEach(textBlock -> IO.println(textBlock.text()));
  // 推論が実際にどこで実行されたかを確認します
  IO.println("Inference geo: " + response.usage().inferenceGeo().get());
  ```

  ```php PHP
  $client = new Client();

  $response = $client->messages->create(
      model: 'claude-opus-5-5',
      maxTokens: 1024,
      inferenceGeo: 'us',
      messages: [
          ['role' => 'user', 'content' => 'Summarize the key points of this document.'],
      ],
  );

  foreach ($response->content as $block) {
      if ($block->type === 'text') {
          echo $block->text, PHP_EOL;
      }
  }
  // 推論が実際にどこで実行されたかを確認します
  echo "Inference geo: {$response->usage->inferenceGeo}\n";
  ```

  ```ruby Ruby
  client = Anthropic::Client.new

  response = client.messages.create(
    model: "claude-opus-5-5",
    max_tokens: 1024,
    inference_geo: "us",
    messages: [
      {role: "user", content: "Summarize the key points of this document."}
    ]
  )

  response.content.each do |block|
    puts block.text if block.type == :text
  end
  # 推論が実際にどこで実行されたかを確認します
  puts "Inference geo: #{response.usage.inference_geo}"
  ```
</CodeGroup>

### レスポンス

レスポンスの`usage`オブジェクトには、推論が実行された場所を示す`inference_geo`フィールドが含まれます。

```json Output
{
  "usage": {
    "input_tokens": 25,
    "output_tokens": 150,
    "inference_geo": "us"
  }
}
```

### モデルの対応状況

`inference_geo`パラメータは、Claude 4.6以降のモデルでサポートされています。Claude Opus 4.5、Claude Sonnet 4.5（非推奨）、Claude Haiku 4.5、またはそれ以前のモデルで`inference_geo`を指定したリクエストは、400エラーを返します。

<Note>
  `inference_geo`パラメータはClaude API（ファーストパーティ）および[Claude Platform on AWS](https://platform.claude.com/docs/ja/build-with-claude/claude-platform-on-aws)で利用できます。Amazon BedrockおよびGoogle Cloudでは、推論リージョンはエンドポイントURLまたは推論プロファイルによって決定されるため、`inference_geo`は適用されません。[Claude in Microsoft Foundry](https://platform.claude.com/docs/ja/build-with-claude/claude-in-microsoft-foundry)でも同様に`inference_geo`は適用されません。Azureでホストされるデプロイメントでは、代わりに推論を米国内に留めるUS Data Zone Standardデプロイメントタイプを使用できます。`inference_geo`パラメータは[OpenAI SDK互換エンドポイント](https://platform.claude.com/docs/ja/cli-sdks-libraries/libraries/openai-sdk)経由でも利用できません。
</Note>

### ワークスペースレベルの制限

ワークスペース設定では、利用可能な推論ジオを制限することもサポートしています。

* **`allowed_inference_geos`:** ワークスペースが使用できるジオを制限します。リクエストがこのリストにない`inference_geo`を指定した場合、APIはエラーを返します。
* **`default_inference_geo`:** リクエストで`inference_geo`が省略された場合のフォールバックジオを設定します。個々のリクエストは`inference_geo`を明示的に設定することでこれをオーバーライドできます。

これらの設定は、Consoleまたは[Admin API](https://platform.claude.com/docs/ja/manage-claude/admin-api)の`data_residency`フィールドで設定できます。

## ワークスペースジオ

ワークスペースジオはワークスペースの作成時に設定され、後から変更することはできません。現在、利用可能なワークスペースジオは`"us"`のみです。

ワークスペースジオを設定するには、[Console](https://platform.claude.com)で新しいワークスペースを作成します。

1. Consoleで[Workspaces](https://platform.claude.com/settings/workspaces)ページ（`platform.claude.com/settings/workspaces`）に移動します。
2. **Create workspace**をクリックして、Consoleの[Create workspace](https://platform.claude.com/settings/workspaces/new)ページ（`platform.claude.com/settings/workspaces/new`）を開きます。
3. 名前を入力し、**Workspace geo**フィールドの値を確認して、**Create workspace**をクリックします。

<Note>
  **Claude Platform on AWS:** ワークスペースジオは設定できません。このプラットフォーム上のClaude Managed Agentsセッションは、実質的なワークスペースジオ`"us"`で実行されます。これは現在利用可能な唯一のワークスペースジオです。このプラットフォーム固有のデータレジデンシーに関する考慮事項については、[Claude Platform on AWS](https://platform.claude.com/docs/ja/build-with-claude/claude-platform-on-aws)を参照してください。
</Note>

## 料金

データレジデンシーの料金はモデルの世代によって異なります。

* **Claude 4.6以降のモデル：** 米国限定の推論（`inference_geo: "us"`）は、すべてのトークン料金カテゴリ（入力トークン、出力トークン、キャッシュ書き込み、キャッシュ読み取り）で標準料金の1.1倍の料金となります。Claude Haiku 5.5では、この乗数は100,000トークンを超えるプロンプトに対するより高い料金にも適用されます（[ロングコンテキストの料金](https://platform.claude.com/docs/ja/about-claude/pricing#long-context-pricing)を参照）。
* **グローバルルーティング**（`inference_geo: "global"`）: 標準料金が適用されます。
* **旧モデル:** `inference_geo`をサポートしていません（[モデルの対応状況](https://platform.claude.com/docs/ja/manage-claude/data-residency#model-availability)を参照）。標準料金が適用されます。このパラメータを含むリクエストは400エラーを返します。

この料金はClaude API（ファーストパーティ）およびClaude Platform on AWSに適用されます。Claude in Microsoft Foundryでは、US Data Zone Standardデプロイメントタイプを使用するAzureでホストされるデプロイメントに同じ1.1倍の乗数が適用されます。パートナーが運営するプラットフォーム（BedrockおよびGoogle Cloud）には独自のリージョン別料金があります。詳細については[データレジデンシーの料金](https://platform.claude.com/docs/ja/about-claude/pricing#data-residency-pricing)を参照してください。

同じ乗数が[Claude Managed Agents](https://platform.claude.com/docs/ja/managed-agents/overview)にも適用されます。エージェントの[モデル設定](https://platform.claude.com/docs/ja/managed-agents/agent-setup)で`inference_geo`を`"us"`に固定している場合、そのエージェントを実行するセッションのモデルリクエストは標準料金の1.1倍で課金されます。

<Note>
  [Priority Tier](https://platform.claude.com/docs/ja/api/service-tiers)のコミットメントがある場合、米国限定の推論に対する1.1倍の乗数は、Priority Tierの容量に対するトークンのカウント方法にも影響します。`inference_geo: "us"`で消費された各トークンは、コミット済みTPMから1.1トークンを消費します。これは、他の料金乗数（プロンプトキャッシングなど）がバーンダウン率に影響する方法と一貫しています。
</Note>

## Batch APIのサポート

`inference_geo`パラメータは[Batch API](https://platform.claude.com/docs/ja/build-with-claude/batch-processing)でサポートされています。バッチ内の各リクエストは独自の`inference_geo`値を指定できます。

## レガシーオプトアウトからの移行

組織が以前に推論を米国内に留めるためにグローバルルーティングをオプトアウトしていた場合、ワークスペースは自動的に`allowed_inference_geos: ["us"]`および`default_inference_geo: "us"`で設定されています。コードの変更は必要ありません。既存のデータレジデンシー要件は、新しいジオ制御を通じて引き続き適用されます。

### 変更点

レガシーオプトアウトは、すべてのリクエストを米国ベースのインフラストラクチャに制限する組織レベルの設定でした。新しいデータレジデンシー制御は、これを2つのメカニズムに置き換えます。

* **リクエストごとの制御:** `inference_geo`パラメータにより、各API呼び出しで`"us"`または`"global"`を指定でき、リクエストレベルの柔軟性が得られます。
* **ワークスペース制御:** Consoleの`default_inference_geo`および`allowed_inference_geos`設定により、ワークスペース内のすべてのキーにジオポリシーを適用できます。

### ワークスペースに起きたこと

ワークスペースは自動的に移行されました。

| レガシー設定                   | 新しい同等設定                                                        |
| ------------------------ | -------------------------------------------------------------- |
| グローバルルーティングのオプトアウト（米国のみ） | `allowed_inference_geos: ["us"]`、`default_inference_geo: "us"` |

ワークスペースのキーを使用するすべてのAPIリクエストは、引き続き米国ベースのインフラストラクチャで実行されます。現在の動作を維持するために必要な操作はありません。

### グローバルルーティングを使用したい場合

データレジデンシー要件が変わり、パフォーマンスと可用性の向上のためにグローバルルーティングを活用したい場合は、ワークスペースの推論ジオ設定を更新して、許可されたジオに`"global"`を含め、`default_inference_geo`を`"global"`に設定してください。詳細については[ワークスペースレベルの制限](https://platform.claude.com/docs/ja/manage-claude/data-residency#workspace-level-restrictions)を参照してください。

### 料金への影響

レガシーモデルはこの移行の影響を受けません。新しいモデルの現在の料金については、[料金](https://platform.claude.com/docs/ja/manage-claude/data-residency#pricing)を参照してください。

## 現在の制限事項

* **共有レート制限:** レート制限はすべてのジオで共有されます。
* **推論ジオ:** `"us"`と`"global"`のみが利用可能です。
* **ワークスペースジオ:** 現在は`"us"`のみが利用可能です。ワークスペースジオはワークスペース作成後に変更できません。

## 次のステップ

<CardGroup>
  <Card title="料金" icon="dollar-sign" href="https://platform.claude.com/docs/ja/about-claude/pricing#data-residency-pricing">
    データレジデンシーの料金の詳細を確認します。
  </Card>

  <Card title="ワークスペース" icon="building" href="https://platform.claude.com/docs/ja/manage-claude/workspaces">
    ワークスペースの設定について学びます。
  </Card>

  <Card title="Usage and Cost API" icon="chart" href="https://platform.claude.com/docs/ja/manage-claude/usage-cost-api">
    データレジデンシー別に使用量とコストを追跡します。
  </Card>
</CardGroup>
