Groq
GroqProvider in the Vercel.AI.Groq namespace creates the Groq models that this port implements. The API reference lists every option: GroqProvider.
Browse the upstream catalog of Groq models and their pricing on the Vercel AI Gateway models page.
Models
Section titled “Models”| Kind | Factory method | Model ids in this port’s tests and docs |
|---|---|---|
| Language | LanguageModel or Chat |
gemma2-9b-it, llama-3.3-70b-versatile, qwen/qwen3-32b |
| Transcription | TranscriptionModel |
whisper-large-v3-turbo, whisper-large-v3 |
A model id in the table is one that the tests or docs use. It is not the complete list of ids the provider accepts. Pass any id that the provider documents.
Chat returns a GroqChatLanguageModel. LanguageModel returns the same model as an ILanguageModel. The model catalog knows the documented Groq language models. It uses it to warn about a topK setting, to choose the default structured-output settings, to drop the browser search tool on a model that does not support it, and to map the reasoning setting. A model id the catalog does not list keeps working with unknown support.
Example
Section titled “Example”Language model:
var model = GroqProvider.Create().LanguageModel("gemma2-9b-it");var result = await Ai.GenerateTextAsync( new GenerateTextOptions { Model = model, Prompt = "Invent a new holiday and describe its traditions.", });
Console.WriteLine(result.Text);See the Providers guide for authentication and provider options.
Model capabilities
Section titled “Model capabilities”Use GroqModelCapabilitiesLookup.Get(modelId) from Vercel.AI.Groq to look up a model’s declared capabilities and provider options, grouped by endpoint. It makes no API request and needs no configuration. It returns null for a model id the catalog does not list.
using Vercel.AI.Groq;
var model = GroqModelCapabilitiesLookup.Get("openai/gpt-oss-20b");foreach (var (endpoint, metadata) in model?.Endpoints ?? []){ Console.WriteLine($"{endpoint}: {metadata.Operation}");}Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product