Soenneker.Together.HttpClients 11.0.180

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

Provides a cached HttpClient configured for Together AI's bearer-authenticated API.

Installation

dotnet add package Soenneker.Together.HttpClients

Configuration

{
  "Together": {
    "ApiKey": "your-api-key"
  }
}

The default base URL is https://api.together.ai/v1/. Set Together:ClientBaseUrl to override it.

Requests use Authorization: Bearer {token} by default. For a different scheme, set Together:AuthHeaderName and Together:AuthHeaderValueTemplate; {token} is replaced with Together:ApiKey.

Registration

using Soenneker.Together.HttpClients.Registrars;

services.AddTogetherOpenApiHttpClientAsSingleton();

Use AddTogetherOpenApiHttpClientAsScoped() when the wrapper should follow the current scope. Each wrapper owns its cached client entry and removes that client when disposed.

Usage

using Soenneker.Together.HttpClients.Abstract;

HttpClient client = await togetherHttpClient.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync("models", cancellationToken);
response.EnsureSuccessStatusCode();

Reuse the returned client. Do not dispose it directly; the wrapper owns its cached client entry.

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

Package Downloads
Soenneker.Together.OpenApiClientUtil

Provides lazily initialized, cached access to Together AI's generated OpenAPI client.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.180 99 11/19/2026
11.0.179 82 11/19/2026
11.0.178 82 11/19/2026
11.0.177 92 11/18/2026
11.0.176 85 11/18/2026
11.0.173 138 11/15/2026
11.0.172 101 11/15/2026
11.0.170 137 11/11/2026
11.0.169 102 11/11/2026
11.0.168 104 11/11/2026
11.0.167 88 11/11/2026
11.0.166 92 11/11/2026
11.0.165 182 11/3/2026
11.0.164 102 11/3/2026
11.0.163 103 11/3/2026
11.0.162 95 11/3/2026
11.0.161 114 11/3/2026
11.0.159 224 10/27/2026
11.0.158 113 10/26/2026
11.0.157 98 10/26/2026
Loading failed

Updated Multiple NuGet packages