Example URL(s)
Actual Behavior
The Cloudflare AI Gateway documentation for HuggingFace providers appears to be outdated. The documentation does not reflect that HuggingFace has deprecated api-inference.huggingface.co in favor of router.huggingface.co. As a result, users attempting to use HuggingFace models through the AI Gateway encounter errors indicating the old endpoint is no longer supported, even though the gateway URL format (https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface/{model}) remains unchanged.
Expected Behavior
The documentation should be updated to:
- Clearly state that the AI Gateway now routes to HuggingFace's updated
router.huggingface.co endpoint internally.
- Remove any references to the deprecated
api-inference.huggingface.co endpoint.
- Include a note about the transition and potential temporary errors during the migration period.
- Provide updated examples or confirm that existing gateway URLs continue to work without user-side changes.
Additional information

Example URL(s)
{"error": "https://api-inference.huggingface.co is no longer supported. Please use https://router.huggingface.co instead."}Actual Behavior
The Cloudflare AI Gateway documentation for HuggingFace providers appears to be outdated. The documentation does not reflect that HuggingFace has deprecated
api-inference.huggingface.coin favor ofrouter.huggingface.co. As a result, users attempting to use HuggingFace models through the AI Gateway encounter errors indicating the old endpoint is no longer supported, even though the gateway URL format (https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface/{model}) remains unchanged.Expected Behavior
The documentation should be updated to:
router.huggingface.coendpoint internally.api-inference.huggingface.coendpoint.Additional information