
Baseten on Hugging Face Inference Providers 🔥
Quick Answer
Baseten is now an official Inference Provider on Hugging Face, enabling seamless integration of various AI models like Kimi K3 and DeepSeek V4 Flash.
Quick Take
Developers can utilize serverless AI capabilities with minimal setup and enjoy direct billing options through their Hugging Face accounts or Baseten API keys. PRO users receive $2 in inference credits monthly, enhancing accessibility for AI application development.
Key Points
- Baseten supports a wide range of models, including and text-to-speech.
- Developers can set custom API keys or use Hugging Face for routing requests.
- PRO users receive $2 in inference credits monthly for enhanced usage.
- Integration with popular tools like Pi and OpenCode simplifies model deployment.
- Free inference is available for signed-in users with a limited quota.
DeepSignal Analysis
What happened
Baseten has been integrated as an official Inference Provider on the Hugging Face Hub, allowing developers to access various AI models with minimal setup. This integration supports models like Kimi K3 and DeepSeek V4 Flash, enhancing serverless AI capabilities. PRO users receive monthly inference credits to facilitate development.
Key evidence
- Baseten provides serverless AI capabilities and supports a variety of model types, including LLMs and text-to-speech.
- Developers can use their own API keys or route requests through Hugging Face, with billing applied accordingly.
- PRO users receive $2 in inference credits each month, while free users have access to a limited quota of free inference.
Why it matters
The integration of Baseten into the Hugging Face ecosystem expands the options available for developers working with AI models. This move simplifies the process of accessing advanced AI capabilities, potentially accelerating the development of AI applications. The provision of monthly credits for PRO users further incentivizes experimentation and usage of these models.
What to watch
📖 Reader Mode
~4 min readWe're thrilled to share that Baseten is 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.
Baseten is 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 for conversational and text-generation tasks on Hugging Face, enabling access to popular open-weight LLMs such as Kimi K3, latest DeepSeek V4 Flash, GLM-5.2, and many more. Support for additional tasks will roll out soon!
See the full list of models supported by Baseten here.
Follow Baseten on Hugging Face: https://huggingface.co/baseten.
How it works
In the website UI
- 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.

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

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

From the client SDKs
Baseten is available through the Hugging Face SDKs - huggingface_hub (>= 1.26.1) for Python and @huggingface/inference for JavaScript.
The following examples show how to use the latest DeepSeek V4 Flash through Baseten. Use a Hugging Face token to authenticate - the request will be routed to Baseten automatically.
From 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 integrations here.
from 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)
from 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);
Billing
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. 🔥
We also provide free inference with a small quota for our signed-in free users, but please upgrade to PRO if you can!
Feedback 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
— Originally published at huggingface.co
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Hugging Face
See more →
From Hugging Face to Amazon SageMaker Studio in one click
Hugging Face has launched a deep-link integration with Amazon SageMaker Studio, allowing developers to seamlessly transition from model discovery to deployment with a single click. This integration streamlines the process by pre-configuring permissions and providing GPU quota visibility, significantly reducing the time from model selection to experimentation.

