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
                    
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="Soenneker.Groq.OpenApiClient" Version="11.0.32" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Groq.OpenApiClient" Version="11.0.32" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Groq.OpenApiClient" />
                    
Project file
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 Soenneker.Groq.OpenApiClient --version 11.0.32
                    
#r "nuget: Soenneker.Groq.OpenApiClient, 11.0.32"
                    
#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 Soenneker.Groq.OpenApiClient@11.0.32
                    
#: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=Soenneker.Groq.OpenApiClient&version=11.0.32
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Groq.OpenApiClient&version=11.0.32
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Migrate to .NET 11 and version 11