{
  "@context": "https://schema.org",
  "@id": "https://aggr.aymericbeaumet.com/items/huggingface-co/2025-11-24-ovhcloud-on-hugging-face-inference-providers-fire/#webpage",
  "@type": [
    "WebPage",
    "ArchiveComponent"
  ],
  "articleBody": "[![welcome-ovhcloud](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/PwyOJcHxLrJFwEvyS-clw.jpeg)](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/PwyOJcHxLrJFwEvyS-clw.jpeg)\n\nWe're thrilled to share that **OVHcloud** is now a supported Inference Provider on the Hugging Face Hub! OVHcloud joins our growing ecosystem, enhancing the breadth and capabilities of serverless inference directly on the Hub's model pages. Inference Providers are also seamlessly integrated into our client SDKs (for both JS and Python), making it super easy to use a wide variety of models with your preferred providers.\n\nThis launch makes it easier than ever to access popular open-weight models like gpt-oss, Qwen3, DeepSeek R1, and Llama — right from Hugging Face. You can browse OVHcloud's org on the Hub at [https://huggingface.co/ovhcloud](https://huggingface.co/ovhcloud) and try trending supported models at [https://huggingface.co/models?inference_provider=ovhcloud&sort=trending](https://huggingface.co/models?inference_provider=ovhcloud&sort=trending).\n\nOVHcloud AI Endpoints are a fully managed, serverless service that provides access to frontier AI models from leading research labs via simple API calls. The service offers competitive pay-per-token pricing starting at €0.04 per million tokens.\n\nThe service runs on secure infrastructure located in European data centers, ensuring data sovereignty and low latency for European users. The platform supports advanced features including structured outputs, function calling, and multimodal capabilities for both text and image processing.\n\nBuilt for production use, OVHcloud's inference infrastructure delivers sub-200ms response times for first tokens, making it ideal for interactive applications and agentic workflows. The service supports both text generation and embedding models. You can learn more about OVHcloud's platform and infrastructure at [https://www.ovhcloud.com/en/public-cloud/ai-endpoints/catalog/](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/catalog/).\n\nRead more about how to use OVHcloud as an Inference Provider in its dedicated documentation page.\n\nSee the list of supported models here.\n\n## How it works\n\n### In the website UI\n\nIn your user account settings, you are able to:\n\n- Set your own API keys for the providers you've signed up with. If no custom key is set, your requests will be routed through HF.\n- Order providers by preference. This applies to the widget and code snippets in the model pages.\n\n[![provider_HF](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/ptWLP8cqPh5zNikiz-c5H.jpeg)](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/ptWLP8cqPh5zNikiz-c5H.jpeg)\n\nAs mentioned, there are two modes when calling Inference Providers:\n\n- **Custom key** (calls go directly to the inference provider, using your own API key of the corresponding inference provider)\n- **Routed by HF** (in that case, you don't need a token from the provider, and the charges are applied directly to your HF account rather than the provider's account)\n\n[![Inference Providers](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/inference-providers/explainer.png)](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/inference-providers/explainer.png)\n\nModel pages showcase third-party inference providers (the ones that are compatible with the current model, sorted by user preference)\n\n[![playground](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/D1r8U_vAMD9KAC2TJn8je.png)](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/D1r8U_vAMD9KAC2TJn8je.png)\n\n## From the client SDKs\n\n### From Python, using huggingface\\_hub\n\nThe following example shows how to use OpenAI's gpt-oss-120b using OVHcloud as the inference provider. You can use a Hugging Face token for automatic routing through Hugging Face, or your own OVHcloud AI Endpoints API key if you have one.\n\n**Note:** this requires using a recent version of huggingface\\_hub (>= 1.1.5).\n\n```python\nimport os\nfrom huggingface_hub import InferenceClient\n\nclient = InferenceClient(\n    api_key=os.environ[\"HF_TOKEN\"],\n)\n\ncompletion = client.chat.completions.create(\n    model=\"openai/gpt-oss-120b:ovhcloud\",\n    messages=[\n        {\n            \"role\": \"user\",\n            \"content\": \"What is the capital of France?\"\n        }\n    ],\n)\n\nprint(completion.choices[0].message)\n```\n\n### From JS using @huggingface/inference\n\n```javascript\nimport { InferenceClient } from \"@huggingface/inference\";\n\nconst client = new InferenceClient(process.env.HF_TOKEN);\n\nconst chatCompletion = await client.chatCompletion({\n    model: \"openai/gpt-oss-120b:ovhcloud\",\n    messages: [\n        {\n            role: \"user\",\n            content: \"What is the capital of France?\",\n        },\n    ],\n});\n\nconsole.log(chatCompletion.choices[0].message);\n```\n\n## Billing\n\nHere is how billing works:\n\n- For **direct requests**, i.e. when you use the key from an inference provider, you are billed by the corresponding provider. For instance, if you use an OVHcloud API key you're billed on your OVHcloud account.\n\n- For **routed requests**, i.e. when you authenticate via the Hugging Face Hub, you'll only pay the standard provider API rates. There's no additional markup from us; we just pass through the provider costs directly. (In the future, we may establish revenue-sharing agreements with our provider partners.)\n\n**Important Note ‼️** PRO users get $2 worth of Inference credits every month. You can use them across providers. 🔥\n\nSubscribe to the [Hugging Face PRO plan](https://huggingface.co/pricing) to get access to Inference credits, ZeroGPU, Spaces Dev Mode, 20x higher limits, and more.\n\nWe also provide free inference with a small quota for our signed-in free users, but please upgrade to PRO if you can!\n\n## Feedback and next steps\n\nWe would love to get your feedback! Share your thoughts and/or comments here: [https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49](https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49)\n",
  "authors": [],
  "captured_at": "2026-10-04T12:50:30.804479567+00:00",
  "category": "ai",
  "content_html": "<p><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/PwyOJcHxLrJFwEvyS-clw.jpeg\"><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/PwyOJcHxLrJFwEvyS-clw.jpeg\" alt=\"welcome-ovhcloud\" loading=\"eager\" decoding=\"async\" fetchpriority=\"high\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></a></p>\n<p>We're thrilled to share that <strong>OVHcloud</strong> is now a supported Inference Provider on the Hugging Face Hub! OVHcloud joins our growing ecosystem, enhancing the breadth and capabilities of serverless inference directly on the Hub's model pages. Inference Providers are also seamlessly integrated into our client SDKs (for both JS and Python), making it super easy to use a wide variety of models with your preferred providers.</p>\n<p>This launch makes it easier than ever to access popular open-weight models like gpt-oss, Qwen3, DeepSeek R1, and Llama — right from Hugging Face. You can browse OVHcloud's org on the Hub at <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://huggingface.co/ovhcloud\">https://huggingface.co/ovhcloud</a> and try trending supported models at <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://huggingface.co/models?inference_provider=ovhcloud&amp;sort=trending\">https://huggingface.co/models?inference_provider=ovhcloud&amp;sort=trending</a>.</p>\n<p>OVHcloud AI Endpoints are a fully managed, serverless service that provides access to frontier AI models from leading research labs via simple API calls. The service offers competitive pay-per-token pricing starting at €0.04 per million tokens.</p>\n<p>The service runs on secure infrastructure located in European data centers, ensuring data sovereignty and low latency for European users. The platform supports advanced features including structured outputs, function calling, and multimodal capabilities for both text and image processing.</p>\n<p>Built for production use, OVHcloud's inference infrastructure delivers sub-200ms response times for first tokens, making it ideal for interactive applications and agentic workflows. The service supports both text generation and embedding models. You can learn more about OVHcloud's platform and infrastructure at <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://www.ovhcloud.com/en/public-cloud/ai-endpoints/catalog/\">https://www.ovhcloud.com/en/public-cloud/ai-endpoints/catalog/</a>.</p>\n<p>Read more about how to use OVHcloud as an Inference Provider in its dedicated documentation page.</p>\n<p>See the list of supported models here.</p>\n<h2>How it works</h2>\n<h3>In the website UI</h3>\n<p>In your user account settings, you are able to:</p>\n<ul>\n<li>Set your own API keys for the providers you've signed up with. If no custom key is set, your requests will be routed through HF.</li>\n<li>Order providers by preference. This applies to the widget and code snippets in the model pages.</li>\n</ul>\n<p><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/ptWLP8cqPh5zNikiz-c5H.jpeg\"><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/ptWLP8cqPh5zNikiz-c5H.jpeg\" alt=\"provider_HF\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></a></p>\n<p>As mentioned, there are two modes when calling Inference Providers:</p>\n<ul>\n<li><strong>Custom key</strong> (calls go directly to the inference provider, using your own API key of the corresponding inference provider)</li>\n<li><strong>Routed by HF</strong> (in that case, you don't need a token from the provider, and the charges are applied directly to your HF account rather than the provider's account)</li>\n</ul>\n<p><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/inference-providers/explainer.png\"><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/inference-providers/explainer.png\" alt=\"Inference Providers\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></a></p>\n<p>Model pages showcase third-party inference providers (the ones that are compatible with the current model, sorted by user preference)</p>\n<p><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/D1r8U_vAMD9KAC2TJn8je.png\"><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/D1r8U_vAMD9KAC2TJn8je.png\" alt=\"playground\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></a></p>\n<h2>From the client SDKs</h2>\n<h3>From Python, using huggingface_hub</h3>\n<p>The following example shows how to use OpenAI's gpt-oss-120b using OVHcloud as the inference provider. You can use a Hugging Face token for automatic routing through Hugging Face, or your own OVHcloud AI Endpoints API key if you have one.</p>\n<p><strong>Note:</strong> this requires using a recent version of huggingface_hub (&gt;= 1.1.5).</p>\n<pre><code class=\"language-python\"><span class=\"code-snippet\" data-language=\"Python\"><span class=\"syntax-source syntax-python\"><span class=\"syntax-meta syntax-statement syntax-import syntax-python\"><span class=\"syntax-keyword syntax-control syntax-import syntax-python\">import</span> <span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">os</span></span></span>\n<span class=\"syntax-meta syntax-statement syntax-import syntax-python\"><span class=\"syntax-keyword syntax-control syntax-import syntax-from syntax-python\">from</span></span><span class=\"syntax-meta syntax-statement syntax-import syntax-python\"><span class=\"syntax-meta syntax-import-source syntax-python\"> <span class=\"syntax-meta syntax-import-path syntax-python\"><span class=\"syntax-meta syntax-import-name syntax-python\">huggingface_hub</span></span> <span class=\"syntax-meta syntax-statement syntax-import syntax-python\"><span class=\"syntax-keyword syntax-control syntax-import syntax-python\">import</span></span></span></span><span class=\"syntax-meta syntax-statement syntax-import syntax-python\"></span><span class=\"syntax-meta syntax-statement syntax-import syntax-python\"> <span class=\"syntax-meta syntax-generic-name syntax-python\">InferenceClient</span></span>\n\n<span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">client</span></span> <span class=\"syntax-keyword syntax-operator syntax-assignment syntax-python\">=</span> <span class=\"syntax-meta syntax-function-call syntax-python\"><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-variable syntax-function syntax-python\">InferenceClient</span></span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-begin syntax-python\">(</span><span class=\"syntax-meta syntax-function-call syntax-arguments syntax-python\">\n    <span class=\"syntax-variable syntax-parameter syntax-python\">api_key</span><span class=\"syntax-keyword syntax-operator syntax-assignment syntax-python\">=</span><span class=\"syntax-meta syntax-item-access syntax-python\"><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">os</span><span class=\"syntax-punctuation syntax-accessor syntax-dot syntax-python\">.</span><span class=\"syntax-meta syntax-generic-name syntax-python\">environ</span></span></span><span class=\"syntax-meta syntax-item-access syntax-python\"><span class=\"syntax-punctuation syntax-section syntax-brackets syntax-begin syntax-python\">[</span></span><span class=\"syntax-meta syntax-item-access syntax-arguments syntax-python\"><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">HF_TOKEN<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span></span><span class=\"syntax-meta syntax-item-access syntax-python\"><span class=\"syntax-punctuation syntax-section syntax-brackets syntax-end syntax-python\">]</span></span><span class=\"syntax-punctuation syntax-separator syntax-arguments syntax-python\">,</span>\n</span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-end syntax-python\">)</span></span>\n\n<span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">completion</span></span> <span class=\"syntax-keyword syntax-operator syntax-assignment syntax-python\">=</span> <span class=\"syntax-meta syntax-function-call syntax-python\"><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">client</span><span class=\"syntax-punctuation syntax-accessor syntax-dot syntax-python\">.</span><span class=\"syntax-meta syntax-generic-name syntax-python\">chat</span><span class=\"syntax-punctuation syntax-accessor syntax-dot syntax-python\">.</span><span class=\"syntax-meta syntax-generic-name syntax-python\">completions</span><span class=\"syntax-punctuation syntax-accessor syntax-dot syntax-python\">.</span></span><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-variable syntax-function syntax-python\">create</span></span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-begin syntax-python\">(</span><span class=\"syntax-meta syntax-function-call syntax-arguments syntax-python\">\n    <span class=\"syntax-variable syntax-parameter syntax-python\">model</span><span class=\"syntax-keyword syntax-operator syntax-assignment syntax-python\">=</span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">openai/gpt-oss-120b:ovhcloud<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span><span class=\"syntax-punctuation syntax-separator syntax-arguments syntax-python\">,</span>\n    <span class=\"syntax-variable syntax-parameter syntax-python\">messages</span><span class=\"syntax-keyword syntax-operator syntax-assignment syntax-python\">=</span><span class=\"syntax-meta syntax-structure syntax-list syntax-python\"><span class=\"syntax-punctuation syntax-section syntax-list syntax-begin syntax-python\">[</span>\n        <span class=\"syntax-meta syntax-structure syntax-dictionary-or-set syntax-python\"><span class=\"syntax-punctuation syntax-section syntax-dictionary-or-set syntax-begin syntax-python\">{</span>\n            <span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">role<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-python\">:</span> <span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">user<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span><span class=\"syntax-punctuation syntax-separator syntax-dictionary-or-set syntax-python\">,</span>\n            <span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">content<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-python\">:</span> <span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">What is the capital of France?<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span>\n        <span class=\"syntax-punctuation syntax-section syntax-dictionary-or-set syntax-end syntax-python\">}</span></span>\n    <span class=\"syntax-punctuation syntax-section syntax-list syntax-end syntax-python\">]</span></span><span class=\"syntax-punctuation syntax-separator syntax-arguments syntax-python\">,</span>\n</span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-end syntax-python\">)</span></span>\n\n<span class=\"syntax-meta syntax-function-call syntax-python\"><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-support syntax-function syntax-builtin syntax-python\">print</span></span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-begin syntax-python\">(</span><span class=\"syntax-meta syntax-function-call syntax-arguments syntax-python\"><span class=\"syntax-meta syntax-item-access syntax-python\"><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">completion</span><span class=\"syntax-punctuation syntax-accessor syntax-dot syntax-python\">.</span><span class=\"syntax-meta syntax-generic-name syntax-python\">choices</span></span></span><span class=\"syntax-meta syntax-item-access syntax-python\"><span class=\"syntax-punctuation syntax-section syntax-brackets syntax-begin syntax-python\">[</span></span><span class=\"syntax-meta syntax-item-access syntax-arguments syntax-python\"><span class=\"syntax-constant syntax-numeric syntax-integer syntax-decimal syntax-python\">0</span></span><span class=\"syntax-meta syntax-item-access syntax-python\"><span class=\"syntax-punctuation syntax-section syntax-brackets syntax-end syntax-python\">]</span></span><span class=\"syntax-punctuation syntax-accessor syntax-dot syntax-python\">.</span><span class=\"syntax-meta syntax-generic-name syntax-python\">message</span></span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-end syntax-python\">)</span></span>\n</span></span></code></pre>\n<h3>From JS using @huggingface/inference</h3>\n<pre><code class=\"language-javascript\"><span class=\"code-snippet\" data-language=\"JavaScript\"><span class=\"syntax-source syntax-js\"><span class=\"syntax-meta syntax-import syntax-js\"><span class=\"syntax-keyword syntax-control syntax-import-export syntax-js\">import</span> <span class=\"syntax-meta syntax-block syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-block syntax-js\">{</span> <span class=\"syntax-variable syntax-other syntax-readwrite syntax-js\">InferenceClient</span> <span class=\"syntax-punctuation syntax-section syntax-block syntax-js\">}</span></span> <span class=\"syntax-keyword syntax-control syntax-import-export syntax-js\">from</span> <span class=\"syntax-string syntax-quoted syntax-double syntax-js\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-js\">&quot;</span>@huggingface/inference<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-js\">&quot;</span></span></span><span class=\"syntax-punctuation syntax-terminator syntax-statement syntax-js\">;</span>\n\n<span class=\"syntax-storage syntax-type syntax-js\">const</span> <span class=\"syntax-variable syntax-other syntax-readwrite syntax-js\">client</span> <span class=\"syntax-keyword syntax-operator syntax-assignment syntax-js\">=</span> <span class=\"syntax-meta syntax-instance syntax-constructor syntax-js\"><span class=\"syntax-keyword syntax-operator syntax-word syntax-new syntax-js\">new</span><span class=\"syntax-meta syntax-function-call syntax-constructor syntax-js\"> <span class=\"syntax-variable syntax-type syntax-js\">InferenceClient</span><span class=\"syntax-meta syntax-group syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-group syntax-js\">(</span><span class=\"syntax-support syntax-type syntax-object syntax-process syntax-js\">process</span><span class=\"syntax-punctuation syntax-accessor syntax-js\">.</span><span class=\"syntax-support syntax-type syntax-object syntax-process syntax-js\">env</span><span class=\"syntax-punctuation syntax-accessor syntax-js\">.</span><span class=\"syntax-meta syntax-property syntax-object syntax-js\">HF_TOKEN</span></span><span class=\"syntax-meta syntax-group syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-group syntax-js\">)</span></span></span></span><span class=\"syntax-punctuation syntax-terminator syntax-statement syntax-js\">;</span>\n\n<span class=\"syntax-storage syntax-type syntax-js\">const</span> <span class=\"syntax-variable syntax-other syntax-readwrite syntax-js\">chatCompletion</span> <span class=\"syntax-keyword syntax-operator syntax-assignment syntax-js\">=</span> <span class=\"syntax-variable syntax-other syntax-readwrite syntax-js\">await</span> <span class=\"syntax-variable syntax-other syntax-object syntax-js\">client</span><span class=\"syntax-punctuation syntax-accessor syntax-js\">.</span><span class=\"syntax-meta syntax-function-call syntax-method syntax-js\"><span class=\"syntax-variable syntax-function syntax-js\">chatCompletion</span><span class=\"syntax-meta syntax-group syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-group syntax-js\">(</span><span class=\"syntax-meta syntax-object-literal syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-block syntax-js\">{</span>\n    <span class=\"syntax-meta syntax-object-literal syntax-key syntax-js\">model</span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-js\">:</span> <span class=\"syntax-string syntax-quoted syntax-double syntax-js\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-js\">&quot;</span>openai/gpt-oss-120b:ovhcloud<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-js\">&quot;</span></span><span class=\"syntax-punctuation syntax-separator syntax-comma syntax-js\">,</span>\n    <span class=\"syntax-meta syntax-object-literal syntax-key syntax-js\">messages</span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-js\">:</span> <span class=\"syntax-meta syntax-sequence syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-brackets syntax-js\">[</span>\n        <span class=\"syntax-meta syntax-object-literal syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-block syntax-js\">{</span>\n            <span class=\"syntax-meta syntax-object-literal syntax-key syntax-js\">role</span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-js\">:</span> <span class=\"syntax-string syntax-quoted syntax-double syntax-js\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-js\">&quot;</span>user<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-js\">&quot;</span></span><span class=\"syntax-punctuation syntax-separator syntax-comma syntax-js\">,</span>\n            <span class=\"syntax-meta syntax-object-literal syntax-key syntax-js\">content</span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-js\">:</span> <span class=\"syntax-string syntax-quoted syntax-double syntax-js\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-js\">&quot;</span>What is the capital of France?<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-js\">&quot;</span></span><span class=\"syntax-punctuation syntax-separator syntax-comma syntax-js\">,</span>\n        <span class=\"syntax-punctuation syntax-section syntax-block syntax-js\">}</span></span><span class=\"syntax-punctuation syntax-separator syntax-comma syntax-js\">,</span>\n    <span class=\"syntax-punctuation syntax-section syntax-brackets syntax-js\">]</span></span><span class=\"syntax-punctuation syntax-separator syntax-comma syntax-js\">,</span>\n<span class=\"syntax-punctuation syntax-section syntax-block syntax-js\">}</span></span></span><span class=\"syntax-meta syntax-group syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-group syntax-js\">)</span></span></span><span class=\"syntax-punctuation syntax-terminator syntax-statement syntax-js\">;</span>\n\n<span class=\"syntax-meta syntax-function-call syntax-method syntax-js\"><span class=\"syntax-support syntax-type syntax-object syntax-console syntax-js\">console</span><span class=\"syntax-punctuation syntax-accessor syntax-js\">.</span><span class=\"syntax-support syntax-function syntax-console syntax-js\">log</span><span class=\"syntax-meta syntax-group syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-group syntax-js\">(</span><span class=\"syntax-variable syntax-other syntax-object syntax-js\">chatCompletion</span><span class=\"syntax-punctuation syntax-accessor syntax-js\">.</span><span class=\"syntax-meta syntax-property syntax-object syntax-js\">choices</span><span class=\"syntax-meta syntax-brackets syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-brackets syntax-js\">[</span><span class=\"syntax-constant syntax-numeric syntax-js\">0</span><span class=\"syntax-punctuation syntax-section syntax-brackets syntax-js\">]</span></span><span class=\"syntax-punctuation syntax-accessor syntax-js\">.</span><span class=\"syntax-meta syntax-property syntax-object syntax-js\">message</span></span><span class=\"syntax-meta syntax-group syntax-js\"><span class=\"syntax-punctuation syntax-section syntax-group syntax-js\">)</span></span></span><span class=\"syntax-punctuation syntax-terminator syntax-statement syntax-js\">;</span>\n</span></span></code></pre>\n<h2>Billing</h2>\n<p>Here is how billing works:</p>\n<ul>\n<li>\n<p>For <strong>direct requests</strong>, i.e. when you use the key from an inference provider, you are billed by the corresponding provider. For instance, if you use an OVHcloud API key you're billed on your OVHcloud account.</p>\n</li>\n<li>\n<p>For <strong>routed requests</strong>, i.e. when you authenticate via the Hugging Face Hub, you'll only pay the standard provider API rates. There's no additional markup from us; we just pass through the provider costs directly. (In the future, we may establish revenue-sharing agreements with our provider partners.)</p>\n</li>\n</ul>\n<p><strong>Important Note ‼️</strong> PRO users get $2 worth of Inference credits every month. You can use them across providers. 🔥</p>\n<p>Subscribe to the <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://huggingface.co/pricing\">Hugging Face PRO plan</a> to get access to Inference credits, ZeroGPU, Spaces Dev Mode, 20x higher limits, and more.</p>\n<p>We also provide free inference with a small quota for our signed-in free users, but please upgrade to PRO if you can!</p>\n<h2>Feedback and next steps</h2>\n<p>We would love to get your feedback! Share your thoughts and/or comments here: <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49\">https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49</a></p>\n",
  "content_markdown": "[![welcome-ovhcloud](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/PwyOJcHxLrJFwEvyS-clw.jpeg)](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/PwyOJcHxLrJFwEvyS-clw.jpeg)\n\nWe're thrilled to share that **OVHcloud** is now a supported Inference Provider on the Hugging Face Hub! OVHcloud joins our growing ecosystem, enhancing the breadth and capabilities of serverless inference directly on the Hub's model pages. Inference Providers are also seamlessly integrated into our client SDKs (for both JS and Python), making it super easy to use a wide variety of models with your preferred providers.\n\nThis launch makes it easier than ever to access popular open-weight models like gpt-oss, Qwen3, DeepSeek R1, and Llama — right from Hugging Face. You can browse OVHcloud's org on the Hub at [https://huggingface.co/ovhcloud](https://huggingface.co/ovhcloud) and try trending supported models at [https://huggingface.co/models?inference_provider=ovhcloud&sort=trending](https://huggingface.co/models?inference_provider=ovhcloud&sort=trending).\n\nOVHcloud AI Endpoints are a fully managed, serverless service that provides access to frontier AI models from leading research labs via simple API calls. The service offers competitive pay-per-token pricing starting at €0.04 per million tokens.\n\nThe service runs on secure infrastructure located in European data centers, ensuring data sovereignty and low latency for European users. The platform supports advanced features including structured outputs, function calling, and multimodal capabilities for both text and image processing.\n\nBuilt for production use, OVHcloud's inference infrastructure delivers sub-200ms response times for first tokens, making it ideal for interactive applications and agentic workflows. The service supports both text generation and embedding models. You can learn more about OVHcloud's platform and infrastructure at [https://www.ovhcloud.com/en/public-cloud/ai-endpoints/catalog/](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/catalog/).\n\nRead more about how to use OVHcloud as an Inference Provider in its dedicated documentation page.\n\nSee the list of supported models here.\n\n## How it works\n\n### In the website UI\n\nIn your user account settings, you are able to:\n\n- Set your own API keys for the providers you've signed up with. If no custom key is set, your requests will be routed through HF.\n- Order providers by preference. This applies to the widget and code snippets in the model pages.\n\n[![provider_HF](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/ptWLP8cqPh5zNikiz-c5H.jpeg)](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/ptWLP8cqPh5zNikiz-c5H.jpeg)\n\nAs mentioned, there are two modes when calling Inference Providers:\n\n- **Custom key** (calls go directly to the inference provider, using your own API key of the corresponding inference provider)\n- **Routed by HF** (in that case, you don't need a token from the provider, and the charges are applied directly to your HF account rather than the provider's account)\n\n[![Inference Providers](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/inference-providers/explainer.png)](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/inference-providers/explainer.png)\n\nModel pages showcase third-party inference providers (the ones that are compatible with the current model, sorted by user preference)\n\n[![playground](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/D1r8U_vAMD9KAC2TJn8je.png)](https://cdn-uploads.huggingface.co/production/uploads/691ca54ee1e4ac5a319e443c/D1r8U_vAMD9KAC2TJn8je.png)\n\n## From the client SDKs\n\n### From Python, using huggingface\\_hub\n\nThe following example shows how to use OpenAI's gpt-oss-120b using OVHcloud as the inference provider. You can use a Hugging Face token for automatic routing through Hugging Face, or your own OVHcloud AI Endpoints API key if you have one.\n\n**Note:** this requires using a recent version of huggingface\\_hub (>= 1.1.5).\n\n```python\nimport os\nfrom huggingface_hub import InferenceClient\n\nclient = InferenceClient(\n    api_key=os.environ[\"HF_TOKEN\"],\n)\n\ncompletion = client.chat.completions.create(\n    model=\"openai/gpt-oss-120b:ovhcloud\",\n    messages=[\n        {\n            \"role\": \"user\",\n            \"content\": \"What is the capital of France?\"\n        }\n    ],\n)\n\nprint(completion.choices[0].message)\n```\n\n### From JS using @huggingface/inference\n\n```javascript\nimport { InferenceClient } from \"@huggingface/inference\";\n\nconst client = new InferenceClient(process.env.HF_TOKEN);\n\nconst chatCompletion = await client.chatCompletion({\n    model: \"openai/gpt-oss-120b:ovhcloud\",\n    messages: [\n        {\n            role: \"user\",\n            content: \"What is the capital of France?\",\n        },\n    ],\n});\n\nconsole.log(chatCompletion.choices[0].message);\n```\n\n## Billing\n\nHere is how billing works:\n\n- For **direct requests**, i.e. when you use the key from an inference provider, you are billed by the corresponding provider. For instance, if you use an OVHcloud API key you're billed on your OVHcloud account.\n\n- For **routed requests**, i.e. when you authenticate via the Hugging Face Hub, you'll only pay the standard provider API rates. There's no additional markup from us; we just pass through the provider costs directly. (In the future, we may establish revenue-sharing agreements with our provider partners.)\n\n**Important Note ‼️** PRO users get $2 worth of Inference credits every month. You can use them across providers. 🔥\n\nSubscribe to the [Hugging Face PRO plan](https://huggingface.co/pricing) to get access to Inference credits, ZeroGPU, Spaces Dev Mode, 20x higher limits, and more.\n\nWe also provide free inference with a small quota for our signed-in free users, but please upgrade to PRO if you can!\n\n## Feedback and next steps\n\nWe would love to get your feedback! Share your thoughts and/or comments here: [https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49](https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49)\n",
  "dateCreated": "2026-10-04T12:50:30.804479567+00:00",
  "date_created": "2025-11-24T16:08:47+00:00",
  "date_modified": "2025-11-24T16:08:47+00:00",
  "date_published": "2025-11-24T16:08:47+00:00",
  "description": "We're thrilled to share that OVHcloud is now a supported Inference Provider on the Hugging Face Hub! OVHcloud joins our growing ecosystem, enhancing the breadth and capabilities of serverless inference directly on the Hub's model pages.…",
  "external_url": "https://huggingface.co/blog/OVHcloud/inference-providers-ovhcloud",
  "git": {
    "commit": "ebb0941c5c06a2ab2377342d607535262a3e969e",
    "path": "items/huggingface-co/2025/11/2025-11-24-ovhcloud-on-hugging-face-inference-providers-fire.md",
    "permalink": "https://github.com/aymericbeaumet/aggr-instance/blob/ebb0941c5c06a2ab2377342d607535262a3e969e/items/huggingface-co/2025/11/2025-11-24-ovhcloud-on-hugging-face-inference-providers-fire.md"
  },
  "id": "urn:aggr:item:53db3796373979d78e63e19a89eb7038838c8d0f",
  "isBasedOn": {
    "@id": "https://huggingface.co/blog/OVHcloud/inference-providers-ovhcloud"
  },
  "mainEntity": {
    "@id": "https://huggingface.co/blog/OVHcloud/inference-providers-ovhcloud",
    "@type": "CreativeWork",
    "archivedAt": {
      "@id": "https://aggr.aymericbeaumet.com/items/huggingface-co/2025-11-24-ovhcloud-on-hugging-face-inference-providers-fire/#webpage"
    },
    "dateModified": "2025-11-24T16:08:47+00:00",
    "datePublished": "2025-11-24T16:08:47+00:00",
    "headline": "OVHcloud on Hugging Face Inference Providers",
    "timeRequired": "PT4M",
    "url": "https://huggingface.co/blog/OVHcloud/inference-providers-ovhcloud",
    "wordCount": 708
  },
  "name": "Archived snapshot: OVHcloud on Hugging Face Inference Providers",
  "preview": null,
  "reading_minutes": 4,
  "replicated_at": null,
  "source": "huggingface-co",
  "source_name": "Hugging Face - Blog",
  "summary": null,
  "tags": [],
  "temporalCoverage": "2026-10-04T12:50:30.804479567+00:00",
  "title": "OVHcloud on Hugging Face Inference Providers",
  "url": "https://aggr.aymericbeaumet.com/items/huggingface-co/2025-11-24-ovhcloud-on-hugging-face-inference-providers-fire/",
  "word_count": 708
}