Radzen Blazor Components

Blazor AIPrompt

The Blazor AIPrompt component is a prompt box for one-shot AI tasks: suggested prompts, a streaming output panel and commands that refine the result - summarize, rewrite, translate - optionally applied to a piece of text.

Text to work on

Console log

Usage Link to this section

Suggestions are prompts offered as buttons under the input. Commands appear under the output and send the current output with their Prompt to the model, replacing the output with the result. Set Context to the text the prompts should apply to, for example the content or the selection of an editor; without it the prompt is sent on its own. Bind Output or handle Generated to use the result in your application, and set ShowOutput="false" to render it elsewhere. The component streams through the IChatClient configured for IAIChatService; SystemPrompt, ModelId, Temperature and MaxTokens tune the request.

Frequently asked questions

What is the difference between AIPrompt and AIChat?

AIChat is a conversation with memory and tool calling. AIPrompt is a single prompt with an output panel and commands such as summarize, rewrite or translate, often applied to a piece of text.

Can AIPrompt work on the text of an editor?

Yes. Set Context to the editor content or selection and every prompt, suggestion and command runs against it.

Radzen Blazor Newsletter

Get an email when new components and releases ship.

We care about your data. Read our Privacy Policy.

All the tools in one place

Save Hours on Every Project

With Radzen Blazor subscription you get the full toolkit, including:

Dedicated support backed by proven expertise

Premium themes and theme editor

Ready-to-use UI blocks

Complete app templates

Visual design-time-experience

Radzen Blazor Studio

Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under MIT

On this page

Demos Configuration

Premium Themes

  • Material 3
  • Material 3 Dark
  • Material 3 Expressive
  • Material 3 Expressive Dark
  • Zen
  • Zen Dark
  • Fluent
  • Fluent Dark

Free Themes

  • Material
  • Material Dark
  • Standard
  • Standard Dark
  • Default
  • Dark
  • Humanistic
  • Humanistic Dark
  • Software
  • Software Dark
An error has occurred. This app may no longer respond until reloaded. Reload 🗙