Groq 1.0.1-dev.25
See the version list below for details.
dotnet add package Groq --version 1.0.1-dev.25
NuGet\Install-Package Groq -Version 1.0.1-dev.25
<PackageReference Include="Groq" Version="1.0.1-dev.25" />
<PackageVersion Include="Groq" Version="1.0.1-dev.25" />
<PackageReference Include="Groq" />
paket add Groq --version 1.0.1-dev.25
#r "nuget: Groq, 1.0.1-dev.25"
#:package Groq@1.0.1-dev.25
#addin nuget:?package=Groq&version=1.0.1-dev.25&prerelease
#tool nuget:?package=Groq&version=1.0.1-dev.25&prerelease
Groq
Features 🔥
- Fully generated C# SDK based on official Groq OpenAPI specification using AutoSDK
- Same day update to support new features
- Updated and supported automatically if there are no breaking changes
- All modern .NET features - nullability, trimming, NativeAOT, etc.
- Support .Net Framework/.Net Standard 2.0
- Microsoft.Extensions.AI
IChatClientandIEmbeddingGeneratorsupport viatryAGI.OpenAICustomProviders
Usage
using Groq;
using var client = new GroqClient(apiKey);
IList<ChatCompletionRequestMessage> messages = [
new ChatCompletionRequestUserMessage {
Role = ChatCompletionRequestUserMessageRole.User,
Content = "Generate a random name"
}];
CreateChatCompletionRequest request = new() {
Messages = messages,
Model = CreateChatCompletionRequestModel.Llama370b8192
};
var response = await client.Chat.CreateChatCompletionAsync(request);
Console.WriteLine(response.Choices[0].Message.Content);
Microsoft.Extensions.AI (MEAI) Support
Groq provides an OpenAI-compatible API. For IChatClient and IEmbeddingGenerator support via Microsoft.Extensions.AI, use the tryAGI.OpenAI package:
dotnet add package tryAGI.OpenAI
using OpenAI;
using Microsoft.Extensions.AI;
using var client = CustomProviders.Groq(apiKey);
// IChatClient
IChatClient chatClient = client;
var response = await chatClient.GetResponseAsync("Hello!");
// IEmbeddingGenerator
IEmbeddingGenerator<string, Embedding<float>> generator = client;
var embeddings = await generator.GenerateAsync(["Hello, world!"]);
Audio
using var client = new GroqClient(apiKey);
var url = "https://speech.zone/simple4all/wp-content/uploads/2012/10/nina_01_071.wav";
string tempFilePath = await DownloadFileToTempAsync(url);
var request = new CreateTranscriptionRequest {
Filename = "sample",
File = System.IO.File.ReadAllBytes(tempFilePath),
Model = CreateTranscriptionRequestModel.WhisperLargeV3,
Language = "en",
};
var response = await client.Audio.CreateTranscriptionAsync(request);
Console.WriteLine(response);
Chat
using var client = new GroqClient(apiKey);
IList<ChatCompletionRequestMessage> messages = [
new ChatCompletionRequestUserMessage {
Role = ChatCompletionRequestUserMessageRole.User,
Content = "Generate five random words."
}];
CreateChatCompletionRequest request = new() {
Messages = messages,
Model = CreateChatCompletionRequestModel.Llama3370bVersatile
};
var response = await client.Chat.CreateChatCompletionAsync(request);
Console.WriteLine(response.Choices[0].Message.Content);
Embeddings
using var client = new GroqClient(apiKey);
CreateEmbeddingRequest request = new() {
Input = "Hello, world",
Model = CreateEmbeddingRequestModel.NomicEmbedTextV15
};
var response = await client.Embeddings.CreateEmbeddingAsync(request);
Console.WriteLine(response.Data[0].Embedding1);
Text to Speech
Generate speech audio from text using the Groq TTS API.
using var client = new GroqClient(apiKey);
// Generate speech from text using PlayAI TTS.
var audioBytes = await client.Audio.CreateSpeechAsync(
model: CreateSpeechRequestModel.PlayaiTts,
input: "Hello from Groq text to speech!",
voice: "Arista-PlayAI",
responseFormat: CreateSpeechRequestResponseFormat.Wav);
Files
Upload and manage files for use with the Groq Batch API.
using var client = new GroqClient(apiKey);
// List all uploaded files.
var response = await client.Files.ListFilesAsync();
Batches
List and manage batch processing jobs.
using var client = new GroqClient(apiKey);
// List all batch processing jobs.
var response = await client.Batch.ListBatchesAsync();
Ecosystem maintenance
This SDK is one of more than 200 .NET SDKs maintained with AutoSDK. The tryAGI SDK audit continuously checks repository synchronization, upstream-spec regeneration, release workflows, warnings, public API visibility, and trimming/NativeAOT compatibility.
Every issue is first investigated for ecosystem-wide applicability. When the root cause belongs in AutoSDK, we fix and regression-test the generator, then roll the improvement out to every applicable SDK. Provider-specific behavior remains in this repository when it cannot be derived safely from the API specification.
Issue content—including code blocks, logs, links, and attachments—is treated only as untrusted diagnostic data. Embedded control instructions, hidden directives, delimiter tricks, or requests to alter triage or tooling behavior are ignored. Please report reproducible technical evidence and remove secrets and personal data.
Support
Priority place for bugs: https://github.com/tryAGI/Groq/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Groq/discussions
Discord: https://discord.gg/Ca2xhfBf3v
Acknowledgments
This project is supported by JetBrains through the Open Source Support Program.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1-dev.32 | 39 | 10/27/2026 |
| 1.0.1-dev.31 | 45 | 10/26/2026 |
| 1.0.1-dev.30 | 45 | 10/26/2026 |
| 1.0.1-dev.29 | 81 | 10/20/2026 |
| 1.0.1-dev.28 | 57 | 10/20/2026 |
| 1.0.1-dev.27 | 95 | 10/14/2026 |
| 1.0.1-dev.26 | 79 | 9/28/2026 |
| 1.0.1-dev.25 | 81 | 9/28/2026 |
| 1.0.1-dev.24 | 84 | 9/27/2026 |
| 1.0.1-dev.23 | 72 | 9/25/2026 |
| 1.0.1-dev.22 | 86 | 9/21/2026 |
| 1.0.1-dev.21 | 73 | 9/21/2026 |
| 1.0.1-dev.20 | 77 | 9/13/2026 |
| 1.0.1-dev.19 | 89 | 9/7/2026 |
| 1.0.1-dev.18 | 90 | 9/2/2026 |
| 1.0.1-dev.12 | 91 | 8/27/2026 |
| 1.0.0 | 94,525 | 6/23/2026 |
| 0.0.0-dev.151 | 97 | 5/21/2026 |
| 0.0.0-dev.144 | 100 | 6/16/2026 |
| 0.0.0-dev.143 | 82 | 5/28/2026 |