Soenneker.ElevenLabs.OpenApiClientUtil
4.0.185
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.ElevenLabs.OpenApiClientUtil --version 4.0.185
NuGet\Install-Package Soenneker.ElevenLabs.OpenApiClientUtil -Version 4.0.185
<PackageReference Include="Soenneker.ElevenLabs.OpenApiClientUtil" Version="4.0.185" />
<PackageVersion Include="Soenneker.ElevenLabs.OpenApiClientUtil" Version="4.0.185" />
<PackageReference Include="Soenneker.ElevenLabs.OpenApiClientUtil" />
paket add Soenneker.ElevenLabs.OpenApiClientUtil --version 4.0.185
#r "nuget: Soenneker.ElevenLabs.OpenApiClientUtil, 4.0.185"
#:package Soenneker.ElevenLabs.OpenApiClientUtil@4.0.185
#addin nuget:?package=Soenneker.ElevenLabs.OpenApiClientUtil&version=4.0.185
#tool nuget:?package=Soenneker.ElevenLabs.OpenApiClientUtil&version=4.0.185
Soenneker.ElevenLabs.OpenApiClientUtil
Provides lazy, cached access to the generated ElevenLabs API client.
Installation
dotnet add package Soenneker.ElevenLabs.OpenApiClientUtil
Configure and register
{
"ElevenLabs": {
"ApiKey": "your-api-key"
}
}
using Soenneker.ElevenLabs.OpenApiClientUtil.Registrars;
services.AddElevenLabsOpenApiClientUtilAsScoped();
Use the client
using Soenneker.ElevenLabs.OpenApiClientUtil.Abstract;
public sealed class VoiceReader(IElevenLabsOpenApiClientUtil clients)
{
public async Task Read(CancellationToken cancellationToken)
{
var client = await clients.Get(cancellationToken);
var response = await client.V1.Voices.GetAsync(
cancellationToken: cancellationToken);
}
}
The first call to Get() creates the generated client; later calls on the same utility instance return it from the cache. The HTTP provider applies the xi-api-key header, so the generated client does not add a second authentication header.
Use AddElevenLabsOpenApiClientUtilAsSingleton() when the application should share one generated client. A scoped utility borrows the singleton HTTP provider; disposing the scope releases the utility without destroying the shared transport.
| Product | Versions 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. |
-
net10.0
- Soenneker.ElevenLabs.HttpClients (>= 4.0.104)
- Soenneker.ElevenLabs.OpenApiClient (>= 4.0.104)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.194 | 41 | 9/10/2026 |
| 4.0.193 | 37 | 9/9/2026 |
| 4.0.192 | 39 | 9/9/2026 |
| 4.0.191 | 42 | 9/8/2026 |
| 4.0.190 | 37 | 9/8/2026 |
| 4.0.189 | 51 | 9/8/2026 |
| 4.0.188 | 51 | 9/8/2026 |
| 4.0.187 | 68 | 9/7/2026 |
| 4.0.186 | 84 | 9/7/2026 |
| 4.0.185 | 94 | 9/7/2026 |
| 4.0.184 | 98 | 9/5/2026 |
| 4.0.183 | 100 | 9/4/2026 |
| 4.0.182 | 105 | 9/4/2026 |
| 4.0.181 | 90 | 9/4/2026 |
| 4.0.180 | 93 | 9/4/2026 |
| 4.0.179 | 94 | 9/4/2026 |
| 4.0.178 | 101 | 9/4/2026 |
| 4.0.177 | 96 | 9/4/2026 |
| 4.0.176 | 95 | 9/4/2026 |
| 4.0.175 | 94 | 9/3/2026 |