-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Open
Labels
product:ai-gatewayAI Gateway: https://developers.cloudflare.com/ai-gateway/AI Gateway: https://developers.cloudflare.com/ai-gateway/
Description
Example URL(s)
- https://developers.cloudflare.com/ai-gateway/usage/providers/huggingface/
- Error logs from Cloudflare AI Gateway dashboard showing:
{"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.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.coendpoint internally. - Remove any references to the deprecated
api-inference.huggingface.coendpoint. - 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

Metadata
Metadata
Assignees
Labels
product:ai-gatewayAI Gateway: https://developers.cloudflare.com/ai-gateway/AI Gateway: https://developers.cloudflare.com/ai-gateway/