---
title: "Rich text AI responses"
description: "Enable AI to automatically format generated content in your Tiptap editor with rich text, lists, and more. Learn how in our docs!"
canonical_url: "https://tiptap.dev/docs/content-ai/capabilities/generation/text-generation/format"
---

# Rich text AI responses

Enable AI to automatically format generated content in your Tiptap editor with rich text, lists, and more. Learn how in our docs!

- **1. Activate trial or subscribe**

  Start a [free trial](https://cloud.tiptap.dev/v2?trial=true) or [subscribe to the Start plan](https://cloud.tiptap.dev/v2/billing) in your account.
- **2. Integrate an AI provider**

  Configure OpenAI in your [AI settings](https://cloud.tiptap.dev/v2/cloud/ai) or review the [Custom LLM guides](https://tiptap.dev/docs/content-ai/capabilities/generation/custom-llms.md).
- **3. Install from private registry**

  To install the frontend extensions, authenticate to Tiptap’s private npm registry by following the [setup guide](https://tiptap.dev/docs/guides/pro-extensions.md).

> **Interactive demo:** [AiFormattedResponse](https://embed-pro.tiptap.dev/preview/Extensions/AiFormattedResponse)

With the `format: 'rich-text'` option, you can generate AI responses that apply formatting to the content. This is especially useful when you want to generate content that includes rich text formatting like bold, italic, links, and more.

```ts
// Steams the response as rich text into the editor
editor
  .chain()
  .aiTextPrompt({
    text: 'Write a list of popular programming languages',
    stream: true,
    format: 'rich-text',
  })
  .run()
```
