Syncfusion.Blazor.AI
33.2.12
Prefix Reserved
dotnet add package Syncfusion.Blazor.AI --version 33.2.12
NuGet\Install-Package Syncfusion.Blazor.AI -Version 33.2.12
<PackageReference Include="Syncfusion.Blazor.AI" Version="33.2.12" />
<PackageVersion Include="Syncfusion.Blazor.AI" Version="33.2.12" />
<PackageReference Include="Syncfusion.Blazor.AI" />
paket add Syncfusion.Blazor.AI --version 33.2.12
#r "nuget: Syncfusion.Blazor.AI, 33.2.12"
#:package Syncfusion.Blazor.AI@33.2.12
#addin nuget:?package=Syncfusion.Blazor.AI&version=33.2.12
#tool nuget:?package=Syncfusion.Blazor.AI&version=33.2.12
Syncfusion® Blazor AI
This package provides seamless AI integration capabilities for Blazor applications, supporting various AI services including OpenAI, Azure OpenAI, Ollama, and custom AI providers. It serves as the foundation for Syncfusion's AI-powered components like Smart TextArea and Smart Paste Button.
System Requirements
Key Features
- Multi-provider support (OpenAI, Azure OpenAI, Ollama)
- Easy-to-use extensibility for custom AI services
- Built-in security with antiforgery support
- Foundation for Smart UI components
- Async/await support for all operations
Quick Start Guide
Configuration Guide
To integrate AI capabilities in your Blazor application, configure the services in your Program.cs:
// Example for OpenAI configuration
builder.Services.AddSingleton(new AIServiceCredentials
{
ApiKey = "your-openai-key",
DeploymentName = "gpt-4", // Model name (e.g., "gpt-4", "gpt-3.5-turbo")
Endpoint = null // Must be null for OpenAI
});
// Example for Azure OpenAI configuration
builder.Services.AddSingleton(new AIServiceCredentials
{
ApiKey = "your-azure-openai-key",
DeploymentName = "your-deployment-name",
Endpoint = new Uri("https://your-openai.azure.com/")
});
// Example for Ollama (local models) configuration
builder.Services.AddSingleton(new AIServiceCredentials
{
DeploymentName = "llama2", // Model name (e.g., "llama2", "mistral", "codellama")
Endpoint = new Uri("http://localhost:11434/"),
SelfHosted = true // Required for Ollama
});
// Register inference backend
builder.Services.AddSingleton<IChatInferenceService, SyncfusionAIService>();
Usage Examples
Here's how to use the AI service in your Blazor components:
@inject IChatInferenceService AIService
@code {
private async Task GetAIResponse()
{
var response = await AIService.GenerateResponseAsync(new ChatParameters
{
Messages = new List<ChatMessage>
{
new ChatMessage(ChatRole.System, "You are a helpful assistant."),
new ChatMessage(ChatRole.User, "Hello!")
},
Temperature = 0.7f,
MaxTokens = 100
});
// Handle the response
}
}
Support and Feedback
- For queries, reach our Syncfusion® support team or post the queries through the community forums.
- Request new feature through Syncfusion® feedback portal.
License
This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a license here or start a free 30-day trial here.
About Syncfusion®
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion® has more than 29,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
Today, we provide 1800+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI, Flutter and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.
sales@syncfusion.com | www.syncfusion.com | Toll Free: 1-888-9 DOTNET
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- Microsoft.Extensions.AI.Abstractions (>= 9.8.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
-
net8.0
- Microsoft.Extensions.AI.Abstractions (>= 9.8.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
-
net9.0
- Microsoft.Extensions.AI.Abstractions (>= 9.8.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Syncfusion.Blazor.AI:
| Package | Downloads |
|---|---|
|
Syncfusion.Blazor.SmartComponents
Syncfusion® Provides AI-powered Blazor components that use intelligent APIs to automate common UI tasks. Enables smart data handling, predictive input, and context-aware features for building more efficient user interfaces with minimal configuration. |
|
|
Syncfusion.Blazor.SfSmartPdfViewer
Syncfusion® delivers AI‑powered Blazor Smart PDF Viewer components that automate PDF workflows such as data redaction, form filling, and AI‑driven summarization and Q&A. |
|
|
Syncfusion.Blazor.SmartRichTextEditor
This package provides the functionality to utilize the features of Syncfusion® Blazor SmartRichTextEditor component, an enhanced Rich Text Editor with integrated AI assistance for content generation, editing, and analysis using Syncfusion AI AssistView. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 33.2.12 | 220 | 6/9/2026 |
| 33.2.10 | 230 | 6/2/2026 |
| 33.2.8 | 246 | 5/26/2026 |
| 33.2.7 | 470 | 5/19/2026 |
| 33.2.6 | 243 | 5/12/2026 |
| 33.2.5 | 242 | 5/4/2026 |
| 33.2.4 | 379 | 4/27/2026 |
| 33.2.3 | 495 | 4/21/2026 |
| 33.1.49 | 758 | 4/13/2026 |
| 33.1.47 | 701 | 4/6/2026 |
| 33.1.46 | 328 | 3/30/2026 |
| 33.1.45 | 283 | 3/23/2026 |
| 33.1.44 | 1,243 | 3/16/2026 |
| 32.2.9 | 457 | 3/9/2026 |
| 32.2.8 | 253 | 3/2/2026 |
| 32.2.7 | 270 | 2/23/2026 |
| 32.2.5 | 234 | 2/16/2026 |
| 32.2.4 | 198 | 2/10/2026 |
| 32.2.3 | 984 | 2/5/2026 |
| 32.1.25 | 242 | 1/26/2026 |