DeepInfra 0.11.1-dev.112
See the version list below for details.
dotnet add package DeepInfra --version 0.11.1-dev.112
NuGet\Install-Package DeepInfra -Version 0.11.1-dev.112
<PackageReference Include="DeepInfra" Version="0.11.1-dev.112" />
<PackageVersion Include="DeepInfra" Version="0.11.1-dev.112" />
<PackageReference Include="DeepInfra" />
paket add DeepInfra --version 0.11.1-dev.112
#r "nuget: DeepInfra, 0.11.1-dev.112"
#:package DeepInfra@0.11.1-dev.112
#addin nuget:?package=DeepInfra&version=0.11.1-dev.112&prerelease
#tool nuget:?package=DeepInfra&version=0.11.1-dev.112&prerelease
DeepInfra
Features 🔥
- Fully generated C# SDK based on official DeepInfra OpenAPI specification using AutoSDK
- Same day update to support new features
- Updated and supported automatically if there are no breaking changes
- All modern .NET features - nullability, trimming, NativeAOT, etc.
- Support .Net Framework/.Net Standard 2.0
- Support all DeepInfra API endpoints including Object Detection, Token Classification, Image Classification, Fill Mask and more.
- Microsoft.Extensions.AI
IChatClientandIEmbeddingGeneratorsupport viatryAGI.OpenAICustomProviders
Usage
To interact with the OpenAI like API, you need to use tryAGI.OpenAI library:
<PackageReference Include="tryAGI.OpenAI" Version="3.7.0" />
using OpenAI;
using var client = CustomProviders.DeepInfra(apiKey);
var enumerable = api.Chat.CreateChatCompletionAsStreamAsync(
model: "meta-llama/Meta-Llama-3-8B-Instruct",
messages: ["What is the capital of the United States?"]);
await foreach (var response in enumerable)
{
Console.Write(response.Choices[0].Delta.Content);
}
Microsoft.Extensions.AI (MEAI) Support
DeepInfra provides an OpenAI-compatible API. For IChatClient and IEmbeddingGenerator support via Microsoft.Extensions.AI, use the tryAGI.OpenAI package:
dotnet add package tryAGI.OpenAI
using OpenAI;
using Microsoft.Extensions.AI;
using var client = CustomProviders.DeepInfra(apiKey);
// IChatClient
IChatClient chatClient = client;
var response = await chatClient.GetResponseAsync(
"Hello!",
new ChatOptions { ModelId = "Qwen/Qwen2.5-72B-Instruct" });
// IEmbeddingGenerator
IEmbeddingGenerator<string, Embedding<float>> generator = client;
var embeddings = await generator.GenerateAsync(
["Hello, world!"],
new EmbeddingGenerationOptions { ModelId = "BAAI/bge-en-icl" });
Support
Priority place for bugs: https://github.com/tryAGI/DeepInfra/issues
Priority place for ideas and general questions: https://github.com/tryAGI/DeepInfra/discussions
Discord: https://discord.gg/Ca2xhfBf3v
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. |
-
net10.0
- No dependencies.
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 |
|---|---|---|
| 1.0.1 | 85 | 4/30/2026 |
| 0.11.1-dev.157 | 49 | 4/1/2026 |
| 0.11.1-dev.153 | 49 | 3/29/2026 |
| 0.11.1-dev.147 | 136 | 3/28/2026 |
| 0.11.1-dev.145 | 48 | 3/28/2026 |
| 0.11.1-dev.143 | 47 | 3/28/2026 |
| 0.11.1-dev.142 | 48 | 3/28/2026 |
| 0.11.1-dev.139 | 52 | 3/27/2026 |
| 0.11.1-dev.130 | 49 | 3/20/2026 |
| 0.11.1-dev.127 | 50 | 3/20/2026 |
| 0.11.1-dev.126 | 52 | 3/19/2026 |
| 0.11.1-dev.124 | 57 | 3/19/2026 |
| 0.11.1-dev.120 | 49 | 3/19/2026 |
| 0.11.1-dev.118 | 47 | 3/19/2026 |
| 0.11.1-dev.116 | 43 | 3/19/2026 |
| 0.11.1-dev.115 | 47 | 3/19/2026 |
| 0.11.1-dev.114 | 48 | 3/19/2026 |
| 0.11.1-dev.113 | 51 | 3/19/2026 |
| 0.11.1-dev.112 | 52 | 3/19/2026 |
| 0.11.1-dev.111 | 46 | 3/18/2026 |