Soenneker.Groq.OpenApiClient
11.0.69
Prefix Reserved
dotnet add package Soenneker.Groq.OpenApiClient --version 11.0.69
NuGet\Install-Package Soenneker.Groq.OpenApiClient -Version 11.0.69
<PackageReference Include="Soenneker.Groq.OpenApiClient" Version="11.0.69" />
<PackageVersion Include="Soenneker.Groq.OpenApiClient" Version="11.0.69" />
<PackageReference Include="Soenneker.Groq.OpenApiClient" />
paket add Soenneker.Groq.OpenApiClient --version 11.0.69
#r "nuget: Soenneker.Groq.OpenApiClient, 11.0.69"
#:package Soenneker.Groq.OpenApiClient@11.0.69
#addin nuget:?package=Soenneker.Groq.OpenApiClient&version=11.0.69
#tool nuget:?package=Soenneker.Groq.OpenApiClient&version=11.0.69
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.2.0)
- Microsoft.Kiota.Serialization.Form (>= 2.2.0)
- Microsoft.Kiota.Serialization.Json (>= 2.2.0)
- Microsoft.Kiota.Serialization.Multipart (>= 2.2.0)
- Microsoft.Kiota.Serialization.Text (>= 2.2.0)
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.69 | 0 | 11/24/2026 |
| 11.0.68 | 57 | 11/22/2026 |
| 11.0.67 | 74 | 11/21/2026 |
| 11.0.66 | 72 | 11/20/2026 |
| 11.0.65 | 88 | 11/19/2026 |
| 11.0.64 | 120 | 11/18/2026 |
| 11.0.63 | 85 | 11/18/2026 |
| 11.0.62 | 126 | 11/18/2026 |
| 11.0.61 | 117 | 11/17/2026 |
| 11.0.60 | 105 | 11/17/2026 |
| 11.0.59 | 114 | 11/17/2026 |
| 11.0.58 | 145 | 11/15/2026 |
| 11.0.57 | 150 | 11/14/2026 |
| 11.0.56 | 160 | 11/13/2026 |
| 11.0.55 | 482 | 11/12/2026 |
| 11.0.54 | 165 | 11/11/2026 |
| 11.0.53 | 187 | 11/11/2026 |
| 11.0.52 | 137 | 11/10/2026 |
| 11.0.51 | 3,265 | 11/10/2026 |
| 11.0.50 | 431 | 11/8/2026 |
Update Soenneker.Groq.OpenApiClient