Baseten on Hugging Face Inference Providers 🔥

Hugging Face Blog Products

Summary

Hugging Face announces Baseten as a supported Inference Provider, enabling serverless access to popular open-weight LLMs like Kimi K3, DeepSeek V4 Flash, and GLM-5.2 directly from model pages and SDKs.

No content available
Original Article
View Cached Full Text

Cached at: 08/06/26, 07:46 PM

Baseten on Hugging Face Inference Providers 🔥

Source: https://huggingface.co/blog/baseten Back to Articles

banner image

We’re thrilled to share thatBasetenis now a supported Inference Provider on the Hugging Face Hub!

Baseten 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.

Basetenis an AI infrastructure platform that covers serverless AI, training and more. With a catalog of many frontier models, Baseten makes it easy for developers to integrate a wide range of AI capabilities into their applications with minimal setup.

Baseten supports a broad spectrum of model types - from LLMs to text-to-speech and more. As part of this initial integration, Baseten is launching support forconversational and text-generation taskson Hugging Face, enabling access to popular open-weight LLMs such asKimi K3, latestDeepSeek V4 Flash,GLM-5.2, and many more.Support for additional taskswill roll out soon!

See the full list of models supported by Basetenhere.

Follow Baseten on Hugging Face:https://huggingface.co/baseten.

https://huggingface.co/blog/baseten#how-it-worksHow it works

https://huggingface.co/blog/baseten#in-the-website-uiIn the website UI

  1. In your user account settings, you are able to:
  • 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.
  • Order providers by preference. This applies to the widget and code snippets in the model pages.

Inference Providers

  1. As mentioned, there are two modes when calling Inference Providers:
  • Custom key (calls go directly to the inference provider, using your own API key of the corresponding inference provider)
  • 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)

Inference Providers

  1. Model pages showcase third-party inference providers (the ones that are compatible with the current model, sorted by user preference)

Inference Providers

https://huggingface.co/blog/baseten#from-the-client-sdksFrom the client SDKs

Baseten is available through the Hugging Face SDKs -huggingface\_hub(>= 1.26.1) for Python and@huggingface/inferencefor JavaScript.

The following examples show how to use the latestDeepSeek V4 Flashthrough Baseten. Use aHugging Face tokento authenticate - the request will be routed to Baseten automatically.

https://huggingface.co/blog/baseten#from-your-favorite-agent-harnessFrom your favorite Agent Harness

Hugging Face Inference Providers are integrated in most Agent Harnesses - including Pi, OpenCode, Hermes Agents, OpenClaw, and more. This means you can plug baseten-hosted models straight into your favorite tools without any extra glue code. Browse the full list of integrationshere.

https://huggingface.co/blog/baseten#from-pythonfrom Python

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://router.huggingface.co/v1",
    api_key=os.environ["HF_TOKEN"],
)

completion = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4-Flash-0731:baseten",
    messages=[
        {
            "role": "user",
            "content": "Write a Python function that returns the nth Fibonacci number using memoization."
        }
    ],
)

print(completion.choices[0].message)

https://huggingface.co/blog/baseten#from-jsfrom JS

import { OpenAI } from "openai";

const client = new OpenAI({
    baseURL: "https://router.huggingface.co/v1",
    apiKey: process.env.HF_TOKEN,
});

const chatCompletion = await client.chat.completions.create({
    model: "deepseek-ai/DeepSeek-V4-Flash-0731:baseten",
    messages: [
        {
            role: "user",
            content: "Write a Python function that returns the nth Fibonacci number using memoization.",
        },
    ],
});

console.log(chatCompletion.choices[0].message);

https://huggingface.co/blog/baseten#billingBilling

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 a baseten API key you’re billed on your baseten account.

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.)

Important Note‼️ PRO users get $2 worth of Inference credits every month. You can use them across providers. 🔥

Subscribe to theHugging Face PRO planto get access to Inference credits, ZeroGPU, Spaces Dev Mode, 20x higher limits, and more.

We also provide free inference with a small quota for our signed-in free users, but please upgrade to PRO if you can!

https://huggingface.co/blog/baseten#feedback-and-next-stepsFeedback and next steps

We would love to get your feedback! Share your thoughts and/or comments here:https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49

Similar Articles

DeepInfra on Hugging Face Inference Providers 🔥

Hugging Face Blog

DeepInfra has been added as an official Inference Provider on the Hugging Face Hub, allowing users to run serverless inference for models like DeepSeek V4 and Kimi-K2.6 directly through the HF UI and SDKs.

GLM 5.2 with vision on Hugging Face

Reddit r/LocalLLaMA

Baseten released GLM 5.2 Vision on Hugging Face, integrating a vision encoder from Kimi k2.6 into the GLM 5.2 model, addressing the lack of vision capabilities.

Kimi K3 on HF Viewer!

Reddit r/LocalLLaMA

Kimi K3, a new AI model, is now available on the Hugging Face Viewer for easy access and exploration.