> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Hugging Face 接入 OpenRouter：一个令牌连通 80 多家服务商
- URL: https://globalfeed.ai/zh/hugging-face-jie-ru-openrouter-yi-ge-ling-pai-lian-tong-80-duo-jia-fu-wu-shang/
- Published: 2026-11-16T19:52:35.000Z
- Updated: 2026-11-16T19:52:35.000Z
- Description: Hugging Face 的语言模型请求改由 OpenRouter 路由，按实时价格、速度和可靠性为每个请求选择服务商。
- Author: GlobalFeed Editor
- Tags: 开源, Hugging Face, OpenRouter, 人工智能, x-huggingface, dil-zh, elle

Hugging Face 于 11 月 16 日宣布与 OpenRouter [合作](https://huggingface.co/blog/openrouter?ref=globalfeed.ai)：Inference Providers 中所有语言模型请求现在都经由 OpenRouter 的路由器转发。用户只需一个 Hugging Face 令牌和同一个 API，即可调用 Hub 上任何由服务商提供的开放模型，系统会根据实时的价格、速度和可靠性为每个请求选择最佳服务商，失败时在同一次调用中自动改用下一家。

OpenRouter 于 10 月 28 日[重建了路由算法](https://openrouter.ai/blog/announcements/how-we-rebuilt-provider-routing/?ref=globalfeed.ai)，据其测量，容量错误减少 46%，首个令牌时间改善 16.9%，吞吐量提升 16.3%，成本约增加 6%。用户可在模型名后加 :fastest、:cheapest 或服务商名来指定偏好，并可通过 X-HF-Session-Id 请求头让对话停留在持有提示缓存的服务商。Claude Code、Codex 等编程智能体已有配置指南。

根据 OpenRouter 数据，开放模型在其平台令牌中的占比从 2025 年 10 月的 26.8% 升至 2026 年 9 月底的 71.7%。开放模型平均价格约为闭源模型的四分之一，但在最难的基准上，最强闭源模型仍领先。价格不变，Hugging Face 不加价；语言模型不再支持使用自带的服务商密钥。

来源： [Hugging Face Blog](https://huggingface.co/blog/openrouter?ref=globalfeed.ai), [OpenRouter Blog](https://openrouter.ai/blog/announcements/how-we-rebuilt-provider-routing/?ref=globalfeed.ai)