# API呼び出し時にCloudflareによるアクセス制限（IPブロック）が発生するのはなぜですか？

**Q**: API呼び出し時にCloudflareによるアクセス制限（IPブロック）が発生するのはなぜですか？

**A**: システムの安定性確保および不正アクセス防止の観点から、AI Marketplaceでは自動レート制限プロトコルを導入しています。詳細は以下の通りです。

1\. 適用範囲 (Scope) 本仕様は、以下のエンドポイントにのみ適用されます：

* `https://mkp-api.fptcloud.com/chat/completions`
* `https://mkp-api.fptcloud.com/v1/responses`

2\. 検知条件 (Triggering Condition - Vietnam Region) 同一のIPアドレスから10分間に600件以上のリクエスト（平均10リクエスト/秒）が送信され、かつそれらが401 Unauthorizedエラーとなった場合、システムはこれを異常なトラフィックとして検知します。

3\. サービスへの影響 (Impact on Service) 上記の条件に該当した場合、該当IPアドレスからのAPIアクセスは一時的に停止されます。この制限措置は1時間継続し、期間終了後は手動での操作を必要とせず、自動的に通常通り復旧します。

> 注意: 401 Unauthorizedエラーは、通常、無効なAPIキーが使用されていることを示唆します。プロジェクトリーダーが削除したキーを、メンバーが誤って使用し続けているケースが一般的です。接続障害を防ぐため、APIキーの状態をご確認ください。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-docs.fptcloud.com/ai-factory-guideline-jp/fpt-ai-tui-lun/fpt-ai-tui-lun/yokuaru/apibishinicloudflareniyoruakusesuipburokkugasurunohanazedesuka.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
