Soenneker.Groq.OpenApiClient
11.0.32
Prefix Reserved
dotnet add package Soenneker.Groq.OpenApiClient --version 11.0.32
NuGet\Install-Package Soenneker.Groq.OpenApiClient -Version 11.0.32
<PackageReference Include="Soenneker.Groq.OpenApiClient" Version="11.0.32" />
<PackageVersion Include="Soenneker.Groq.OpenApiClient" Version="11.0.32" />
<PackageReference Include="Soenneker.Groq.OpenApiClient" />
paket add Soenneker.Groq.OpenApiClient --version 11.0.32
#r "nuget: Soenneker.Groq.OpenApiClient, 11.0.32"
#:package Soenneker.Groq.OpenApiClient@11.0.32
#addin nuget:?package=Soenneker.Groq.OpenApiClient&version=11.0.32
#tool nuget:?package=Soenneker.Groq.OpenApiClient&version=11.0.32
Soenneker.Groq.OpenApiClient
A strongly typed, Kiota-generated .NET client for Groq's OpenAI-compatible API. It exposes request builders and models for chat completions, responses, audio, embeddings, files, batches, reranking, models, and fine-tuning operations.
Installation
dotnet add package Soenneker.Groq.OpenApiClient
Create the client directly
using System.Net.Http.Headers;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Groq.OpenApiClient;
using var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", apiKey);
var authentication = new AnonymousAuthenticationProvider();
using var adapter = new HttpClientRequestAdapter(authentication, httpClient: httpClient);
var client = new GroqOpenApiClient(adapter);
The generated client defaults to https://api.groq.com. Set adapter.BaseUrl before constructing GroqOpenApiClient when using a proxy or alternate endpoint.
List available models
var result = await client.Openai.V1.Models.GetAsync(
cancellationToken: cancellationToken);
foreach (var model in result?.Data ?? [])
{
Console.WriteLine(model.Id);
}
Endpoints follow Kiota's request-builder hierarchy. For example, chat completions are available at client.Openai.V1.Chat.Completions, while fine-tuning operations are under client.V1.Fine_tunings.
For application registration and managed HTTP-client reuse, use Soenneker.Groq.OpenApiClientUtil, which composes this generated client with Soenneker.Groq.HttpClients.
This repository contains generated source. Add application-specific behavior in separate partial-class files or wrapper services because regeneration can replace generated files.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.1.2)
- Microsoft.Kiota.Serialization.Form (>= 2.1.2)
- Microsoft.Kiota.Serialization.Json (>= 2.1.2)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.2)
- Microsoft.Kiota.Serialization.Text (>= 2.1.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Groq.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.Groq.OpenApiClientUtil
Provides a cached Groq OpenAPI client backed by an authenticated HTTP provider |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.32 | 73 | 10/26/2026 |
| 4.0.31 | 103 | 10/24/2026 |
| 4.0.30 | 150 | 10/14/2026 |
| 4.0.29 | 132 | 10/14/2026 |
| 4.0.24 | 104 | 10/13/2026 |
| 4.0.23 | 104 | 10/13/2026 |
| 4.0.22 | 99 | 10/12/2026 |
| 4.0.21 | 148 | 10/11/2026 |
| 4.0.20 | 98 | 10/10/2026 |
| 4.0.19 | 93,619 | 9/24/2026 |
| 4.0.18 | 135 | 9/21/2026 |
| 4.0.17 | 159 | 9/15/2026 |
| 4.0.16 | 228 | 9/12/2026 |
| 4.0.15 | 192 | 9/8/2026 |
| 4.0.14 | 227 | 9/4/2026 |
| 4.0.13 | 141 | 9/4/2026 |
| 4.0.12 | 172 | 9/3/2026 |
| 4.0.11 | 130 | 9/3/2026 |
| 4.0.10 | 118 | 9/3/2026 |
Migrate to .NET 11 and version 11