Soenneker.Groq.HttpClients 11.0.90

Prefix Reserved
dotnet add package Soenneker.Groq.HttpClients --version 11.0.90
                    
NuGet\Install-Package Soenneker.Groq.HttpClients -Version 11.0.90
                    
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.90" />
                    
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.90" />
                    
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.90
                    
#r "nuget: Soenneker.Groq.HttpClients, 11.0.90"
                    
#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.90
                    
#: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.90
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Groq.HttpClients&version=11.0.90
                    
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.90 144 10/27/2026
11.0.89 99 10/27/2026
11.0.88 113 10/26/2026
11.0.87 105 10/26/2026
4.0.85 236 10/15/2026
4.0.84 86 10/15/2026
4.0.82 111 10/14/2026
4.0.80 104 10/14/2026
4.0.79 96 10/14/2026
4.0.78 80 10/14/2026
4.0.71 115 10/13/2026
4.0.68 126 10/12/2026
4.0.67 139 10/11/2026
4.0.66 85 10/11/2026
4.0.65 766 10/9/2026
4.0.64 62,159 10/1/2026
4.0.63 14,943 9/29/2026
4.0.62 5,996 9/29/2026
4.0.61 10,210 9/26/2026
4.0.60 105 9/25/2026
Loading failed

Remove redundant framework conditions