Groq 0.0.0-dev.105
This is a prerelease version of Groq.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Groq --version 0.0.0-dev.105
NuGet\Install-Package Groq -Version 0.0.0-dev.105
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Groq" Version="0.0.0-dev.105" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Groq" Version="0.0.0-dev.105" />
<PackageReference Include="Groq" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Groq --version 0.0.0-dev.105
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Groq, 0.0.0-dev.105"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Groq@0.0.0-dev.105
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Groq&version=0.0.0-dev.105&prerelease
#tool nuget:?package=Groq&version=0.0.0-dev.105&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 = 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.Llama370b8192
};
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);
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
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 |
|---|---|---|
| 0.0.0-dev.126 | 53 | 4/1/2026 |
| 0.0.0-dev.124 | 52 | 3/29/2026 |
| 0.0.0-dev.121 | 53 | 3/28/2026 |
| 0.0.0-dev.118 | 134 | 3/28/2026 |
| 0.0.0-dev.116 | 55 | 3/28/2026 |
| 0.0.0-dev.114 | 50 | 3/27/2026 |
| 0.0.0-dev.109 | 50 | 3/20/2026 |
| 0.0.0-dev.107 | 43 | 3/20/2026 |
| 0.0.0-dev.106 | 41 | 3/20/2026 |
| 0.0.0-dev.105 | 45 | 3/20/2026 |
| 0.0.0-dev.104 | 42 | 3/20/2026 |
| 0.0.0-dev.103 | 48 | 3/20/2026 |
| 0.0.0-dev.102 | 42 | 3/19/2026 |
| 0.0.0-dev.101 | 43 | 3/19/2026 |
| 0.0.0-dev.100 | 41 | 3/19/2026 |
| 0.0.0-dev.99 | 48 | 3/19/2026 |
| 0.0.0-dev.98 | 41 | 3/19/2026 |
| 0.0.0-dev.97 | 41 | 3/19/2026 |
| 0.0.0-dev.96 | 42 | 3/19/2026 |
| 0.0.0-dev.95 | 46 | 3/19/2026 |
Loading failed