Install
Contact our team to purchase the paid AI Toolkit add-on. After gaining access, configure your package manager by following the private registry guide.
Then, install the package:
npm install @tiptap-pro/ai-toolkitAdd the extension to your editor and access its methods:
import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'
import { AiToolkit, getAiToolkit } from '@tiptap-pro/ai-toolkit'
const editor = new Editor({
extensions: [StarterKit, AiToolkit],
})
// Get the AI Toolkit instance
const toolkit = getAiToolkit(editor)
// Call the AI Toolkit methods
toolkit.insertText('AI-generated content')