HuggingFace 0.4.1-dev.64
This is a prerelease version of HuggingFace.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package HuggingFace --version 0.4.1-dev.64
NuGet\Install-Package HuggingFace -Version 0.4.1-dev.64
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="HuggingFace" Version="0.4.1-dev.64" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HuggingFace" Version="0.4.1-dev.64" />
<PackageReference Include="HuggingFace" />
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 HuggingFace --version 0.4.1-dev.64
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HuggingFace, 0.4.1-dev.64"
#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 HuggingFace@0.4.1-dev.64
#: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=HuggingFace&version=0.4.1-dev.64&prerelease
#tool nuget:?package=HuggingFace&version=0.4.1-dev.64&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HuggingFace
Features 🔥
Fully generated C# SDK based on official HuggingFace OpenAPI specification using OpenApiGeneratorSame day update to support new featuresUpdated and supported automatically if there are no breaking changes- All modern .NET features - nullability, trimming, NativeAOT, etc.
- Support .Net Framework/.Net Standard 2.0
- Now supports only Serverless Inference API
Usage
using HuggingFace;
using var client = new HuggingFaceClient(apiKey, client);
var response = await client.GenerateTextAsync(
"gpt2",
new GenerateTextRequest
{
Inputs = "Hello",
Parameters = new GenerateTextRequestParameters
{
MaxNewTokens = 250,
},
});
Support
Priority place for bugs: https://github.com/tryAGI/HuggingFace/issues
Priority place for ideas and general questions: https://github.com/tryAGI/HuggingFace/discussions
Discord: https://discord.gg/Ca2xhfBf3v
OpenAPI specs
- Serverless Inference OpenAPI spec - (Can't find the link)
- Local Text Generation Inference OpenAPI spec
- Local Text Embeddings Inference OpenAPI spec
- Inference Endpoints (dedicated) OpenAPI spec
Acknowledgments
This project is supported by JetBrains through the Open Source Support Program.
This project is supported by CodeRabbit through the Open Source Support Program.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.3)
- Microsoft.Extensions.AI.Abstractions (>= 10.3.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on HuggingFace:
| Package | Downloads |
|---|---|
|
LangChain.Providers.HuggingFace
HuggingFace API LLM and Chat model provider. |
|
|
HPD-Agent.Providers.HuggingFace
HuggingFace Inference API provider for HPD-Agent |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.4.1-dev.65 | 0 | 3/11/2026 |
| 0.4.1-dev.64 | 0 | 3/11/2026 |
| 0.4.1-dev.60 | 39 | 3/9/2026 |
| 0.4.1-dev.58 | 38 | 3/3/2026 |
| 0.4.1-dev.23 | 3,153 | 5/16/2025 |
| 0.4.1-dev.21 | 555 | 4/9/2025 |
| 0.4.1-dev.18 | 139 | 3/29/2025 |
| 0.4.1-dev.15 | 232 | 3/11/2025 |
| 0.4.1-dev.13 | 184 | 2/17/2025 |
| 0.4.1-dev.7 | 201 | 1/16/2025 |
| 0.4.0 | 12,387 | 11/22/2024 |
| 0.3.1-dev.28 | 142 | 11/22/2024 |
| 0.3.1-dev.27 | 140 | 11/22/2024 |
| 0.3.1-dev.23 | 155 | 11/13/2024 |
| 0.3.1-dev.18 | 128 | 10/29/2024 |
| 0.3.1-dev.17 | 130 | 10/28/2024 |
| 0.3.1-dev.9 | 282 | 9/26/2024 |
| 0.3.1-dev.1 | 173 | 8/26/2024 |
| 0.3.0 | 1,695 | 8/26/2024 |
| 0.0.0-dev.30 | 145 | 8/26/2024 |
Loading failed