Soenneker.Groq.HttpClients 11.0.107

Prefix Reserved
dotnet add package Soenneker.Groq.HttpClients --version 11.0.107
                    
NuGet\Install-Package Soenneker.Groq.HttpClients -Version 11.0.107
                    
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.HttpClients" Version="11.0.107" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Groq.HttpClients" Version="11.0.107" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Groq.HttpClients" />
                    
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.HttpClients --version 11.0.107
                    
#r "nuget: Soenneker.Groq.HttpClients, 11.0.107"
                    
#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.HttpClients@11.0.107
                    
#: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.HttpClients&version=11.0.107
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Groq.HttpClients&version=11.0.107
                    
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.HttpClients

Provides a cached HttpClient configured for Groq's OpenAI-compatible API, including its base address and authentication header.

Installation

dotnet add package Soenneker.Groq.HttpClients

Configuration

{
  "Groq": {
    "ApiKey": "gsk_..."
  }
}

Requests use https://api.groq.com by default. These optional settings override the endpoint or authentication format:

{
  "Groq": {
    "ClientBaseUrl": "https://api.groq.com",
    "AuthHeaderName": "Authorization",
    "AuthHeaderValueTemplate": "Bearer {token}"
  }
}

{token} is replaced with Groq:ApiKey when the client is created.

Registration and usage

using Soenneker.Groq.HttpClients.Abstract;
using Soenneker.Groq.HttpClients.Registrars;

services.AddGroqOpenApiHttpClientAsSingleton();

IGroqOpenApiHttpClient provider =
    serviceProvider.GetRequiredService<IGroqOpenApiHttpClient>();

HttpClient client = await provider.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync("/openai/v1/models", cancellationToken);
response.EnsureSuccessStatusCode();

Get() reuses the same cached client for the provider's lifetime. Dispose the provider, not the returned client, when you own the provider.

AddGroqOpenApiHttpClientAsScoped() is available when each dependency-injection scope should own and release an independent cached client. Consumers such as a scoped API utility can instead use the singleton registration to keep the transport alive across utility scopes.

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.HttpClients:

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.107 147 11/19/2026
11.0.105 87 11/18/2026
11.0.103 89 11/18/2026
11.0.102 92 11/18/2026
11.0.101 216 11/15/2026
11.0.100 114 11/15/2026
11.0.98 652 11/11/2026
11.0.97 108 11/11/2026
11.0.96 172 11/11/2026
11.0.95 97 11/11/2026
11.0.94 16,051 11/3/2026
11.0.93 631 11/3/2026
11.0.92 104 11/3/2026
11.0.91 103 11/3/2026
11.0.90 7,077 10/27/2026
11.0.89 134 10/27/2026
11.0.88 129 10/26/2026
11.0.87 122 10/26/2026
4.0.85 251 10/15/2026
4.0.84 98 10/15/2026
Loading failed

Updated Multiple NuGet packages