Soenneker.ElevenLabs.HttpClients 4.0.151

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

Soenneker.ElevenLabs.HttpClients

Provides a cached HttpClient configured for ElevenLabs authentication and API requests.

Installation

dotnet add package Soenneker.ElevenLabs.HttpClients

Configuration

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

Requests use the xi-api-key header and https://api.elevenlabs.io/ by default. ElevenLabs:AuthHeaderName, ElevenLabs:AuthHeaderValueTemplate, and ElevenLabs:ClientBaseUrl can override those values when needed.

Registration and usage

using Soenneker.ElevenLabs.HttpClients.Abstract;
using Soenneker.ElevenLabs.HttpClients.Registrars;

services.AddElevenLabsOpenApiHttpClientAsSingleton();

public sealed class ElevenLabsRequestSender(IElevenLabsOpenApiHttpClient clients)
{
    public async Task<HttpResponseMessage> GetVoices(CancellationToken cancellationToken)
    {
        HttpClient client = await clients.Get(cancellationToken);
        return await client.GetAsync("v1/voices", cancellationToken);
    }
}

Use the scoped registration only when each scope must own a separate client. Each provider instance owns its cache entry and removes that client when disposed.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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.ElevenLabs.HttpClients:

Package Downloads
Soenneker.ElevenLabs.OpenApiClientUtil

Provides lazy, cached access to the generated ElevenLabs API client.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.158 58 10/15/2026
4.0.157 47 10/15/2026
4.0.156 55 10/14/2026
4.0.153 68 10/14/2026
4.0.152 64 10/14/2026
4.0.151 52 10/14/2026
4.0.144 86 10/13/2026
4.0.143 65 10/13/2026
4.0.141 82 10/12/2026
4.0.140 95 10/12/2026
4.0.139 71 10/12/2026
4.0.138 74 10/11/2026
4.0.137 73 10/11/2026
4.0.136 66 10/11/2026
4.0.135 124 10/9/2026
4.0.134 122 10/1/2026
4.0.133 111 9/29/2026
4.0.132 105 9/29/2026
4.0.131 115 9/26/2026
4.0.130 114 9/26/2026
Loading failed

Use NuGet API token for publishing