In a recent development, we're thrilled to share that Groq is now a supported Inference Provider on the Hugging Face Hub! Groq 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.
Groq supports a wide variety of text and conversational models, including the latest open-source models such as Meta's Llama 4, Qwen's QWQ-32B, and many more. (Related: Supercharge your OCR Pipelines with Open Models...)
Sources indicate that at the heart of Groq's technology is the Language Processing Unit (LPU™), a upcoming type of end-to-end processing unit system that provides the fastest inference for computationally intensive applications with a sequential component, such as Large Language Models (LLMs). LPUs are designed to overcome the limitations of GPUs for inference, offering significantly lower latency and higher throughput. This makes them ideal for real-time AI applications. (Related: Industry News: Apriel-H1: The Surprising Key to Distill...)
Groq offers fast AI inference for openly-available models. They provide an API that allows developers to easily integrate these models into their applications. It offers an on-demand, pay-as-you-go model for accessing a wide range of openly-available LLMs.
Recent findings suggest that you can now use Groq's Inference API as an Inference Provider on Huggingface. We're quite excited to see what you'll build with this newly introduced provider.
Read more about how to use Groq as Inference Provider in its dedicated documentation page.
See the list of supported models here.
Recent findings suggest that the following example shows how to use Meta's Llama 4 using Groq as the inference provider. You can use a Hugging Face token for automatic routing through Hugging Face, or your own Groq API key if you have one.
It has been revealed that install huggingface_hub from source (see instructions). Official support will be released soon in version v0.33.0.
Recent findings suggest that 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 Groq API key you're billed on your Groq account.
Recent findings suggest that 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.).
Crucial Note ‼️ PRO owners 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 owners, but please upgrade to PRO if you can!
It has been revealed that we would love to get your feedback! Share your thoughts and/or comments here: https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49.
Groq’s integration as an Inference Provider on Hugging Face delivers ultra‑low latency and high‑throughput LPU‑powered inference for cutting‑edge open‑source LLMs — a game‑changer for real‑time AI deployments.
