---
url: 'https://dxpr.com/zh-hans/hc/documentation/learn-dxpr-builder/ai/setup'
title: '在 DXPR Builder 中开启 AI | DXPR'
author:
  name: Jurriaan
  url: 'https://dxpr.com/users/jurriaan'
date: '2026-10-24T00:42:54+00:00'
updated: '2026-10-24T06:24:44+00:00'
copyright: 'Copyright DXPR. All rights reserved.'
type: article
summary: '将 DXPR Builder 连接到 DXPR 的 AI 服务，选择编辑人员可用的 AI 工具。完成后，每个页面的构建器工具栏上都会出现 AI Agent 按钮。您需要 DXPR 账户，并安装 AI 模块。AI 按 DXPR 积分付费。该视频演示了连接密钥、开启工具，并打开页面展示按钮。'
tags:
  - 'Schrijven en ontwerpen met AI'
image: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
published: true
og:
  site_name: DXPR
  updated_time: '2026-10-24T06:24:44+0000'
  'image:alt': 'DXPR, powered by Drupal: AI-powered Drupal for marketers.'
schema:
  '@context': 'https://schema.org'
  '@graph':
    -
      mainEntity: {  }
    -
      '@type': TechArticle
      headline: '在 DXPR Builder 中开启 AI'
      description: '将 DXPR Builder 连接到 DXPR 的 AI 服务，选择编辑人员可用的 AI 工具。完成后，每个页面的构建器工具栏上都会出现 AI Agent 按钮。您需要 DXPR 账户，并安装 AI 模块。AI 按 DXPR 积分付费。该视频演示了连接密钥、开启工具，并打开页面展示按钮。'
      image:
        '@type': ImageObject
        url: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
        width: '1200'
        height: '630'
      datePublished: '2026-10-24T00:42:54+0000'
      dateModified: '2026-10-24T06:24:44+0000'
      author:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      mainEntityOfPage: 'https://dxpr.com/zh-hans/hc/documentation/learn-dxpr-builder/ai/setup'
      articleSection: 'Schrijven en ontwerpen met AI'
    -
      '@type': WebPage
      '@id': 'https://dxpr.com/zh-hans/hc/documentation/learn-dxpr-builder/ai/setup'
      description: '将 DXPR Builder 连接到 DXPR 的 AI 服务，选择编辑人员可用的 AI 工具。完成后，每个页面的构建器工具栏上都会出现 AI Agent 按钮。您需要 DXPR 账户，并安装 AI 模块。AI 按 DXPR 积分付费。该视频演示了连接密钥、开启工具，并打开页面展示按钮。'
      breadcrumb:
        '@type': BreadcrumbList
        itemListElement:
          -
            '@type': ListItem
            position: 1
            name: 首页
            item: 'https://dxpr.com/zh-hans'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
      inLanguage: zh-hans
---
[Help Center](/zh-hans/node/75)/[Documentation](/zh-hans/hc/documentation) /[Learn DXPR Builder](/hc/documentation/learn-dxpr-builder) /[Build pages](/hc/documentation/learn-dxpr-builder/build) /[Schrijven en ontwerpen met AI](/hc/documentation/learn-dxpr-builder/ai) # 在 DXPR Builder 中开启 AI.

 Learn DXPR BuilderBuild pagesSchrijven en ontwerpen met AI

   ## In this guide

 Related guides

- [用 AI 改写文本](/zh-hans/hc/documentation/learn-dxpr-builder/ai/text-commands)
- [用 AI 起草页面](/zh-hans/hc/documentation/learn-dxpr-builder/ai/page-creation)
- [AI 配置](/zh-hans/hc/documentation/learn-dxpr-builder/ai/configuration)

将 DXPR Builder 连接到 DXPR 的 AI 服务，选择编辑人员可用的 AI 工具。完成后，每个页面的构建器工具栏上都会出现 **AI Agent** 按钮。您需要 DXPR 账户，并安装 AI 模块。AI 按 DXPR 积分付费。该视频演示了连接密钥、开启工具，并打开页面展示按钮。

  ## 开始之前

- 安装 DXPR AI 提供方：运行 `composer require drupal/ai_provider_dxpr`，再运行 `drush en ai_provider_dxpr`。这会同时安装 **AI** 和 **Key** 模块。
- 从您的 DXPR 账户获取 API 密钥。在 dxpr.com 注册免费。
- 在 Drupal 中保存密钥。前往 **Configuration** &gt; **System** &gt; **Keys** (`/admin/config/system/keys`)，点击 **Add Key**。给它起一个带“DXPR”的标签，选择 **Authentication** 密钥类型并粘贴密钥。
- 您需要 **Administer LLM Providers** 和 **Administer DXPR Builder configuration** 权限。

## 设置

1. 前往 **Configuration** &gt; **AI** &gt; **AI Infrastructure** &gt; **AI Platform Providers** &gt; **DXPR AI Provider** (`/admin/config/ai/providers/dxpr`)。
2. 在 **DXPR API Key** 下选择您保存的密钥。
3. 选择 **Default model**。**DXAI Kavya M1** 适合大多数网站。
4. 点击 **Save configuration**。
5. 前往 **DXPR Studio** &gt; **DXPR Builder** &gt; **AI** (`/admin/dxpr_studio/dxpr_builder/ai_settings`)。
6. 查看 **Credits remaining**（**Usage and Credits** 下）。
7. 在 **AI Features** 下选择编辑人员可用的工具：**Enable text editing assistant**、**Enable page creation assistant** 和 **Enable image generation**。
8. 点击 **Save settings**。
9. 打开一个使用 DXPR Builder 的页面，指向内容右上方的工具栏。
10. 点击 **AI Agent**：输入第一个请求的提示框随即打开。

保存提供方表单后，DXPR 即成为您网站的默认 AI 提供方，除非之前选过其他提供方。DXPR Builder 始终使用 DXPR，以后选择什么默认都不影响。

## 您会看到的内容

构建器工具栏现在多了一个 **AI Agent** 按钮，就在 **Show history** 旁边。在空页面上，提示框位于 **Generate content** 上方。点击进入一段文本，文本工具栏以 **AI Agent** 和 **Tone of voice** 开头。每个元素的 **More** 菜单中有 **Edit with AI**。

本月已用积分显示在 **Credits remaining** 下方。点击 **your subscription page** 前往充值。

## 设置

| 设置 | 作用 | 默认值 |
|---|---|---|
| **Default model** | **DXAI Kavya M1** 效果最好。**DXAI Kavya M1 EU** 将文本留在法国的 MistralAI。**DXAI Kavya M1 Fast** 回答更快，但质量较低 | DXAI Kavya M1 |
| **Allowed models** | 编辑人员可切换的模型。只勾选一个模型时，编辑人员看不到模型选项 | 全部三个 |
| **Enable text editing assistant** | 文本工具栏中的 **AI Agent** 和 **Tone of voice** 按钮 | 开 |
| **Enable page creation assistant** | 空页面上的提示、工具栏上的 **AI Agent** 按钮和 **Edit with AI** | 开 |
| **Enable image generation** | **Edit with AI**（Image 元素上），以及背景图片的 **AI Image Generation** 按钮 | 开 |

[AI 配置](/zh-hans/hc/documentation/learn-dxpr-builder/ai/configuration)解释了 AI 页面上的其他所有设置。

## 如果您看不到 AI Agent 按钮

- **AI Agent 按钮灰色不可点，提示说没有配置 AI 提供方。** 提供方表单上没有选择密钥，或表单从未保存。请在 `/admin/config/ai/providers/dxpr` 选择密钥并点击 **Save configuration**。
- **完全没有 AI Agent 按钮。** **Enable page creation assistant** 为关闭状态。请在 `/admin/dxpr_studio/dxpr_builder/ai_settings` 勾选它并点击 **Save settings**。
- **DXPR API Key 下的密钥列表只显示“- Select a key -”。** 还没有任何密钥。请在 `/admin/config/system/keys` 添加一个。
- **保存提供方表单时显示“You are using the Free Tier of DXPR or have run out of quota.”。** 您的账户没有剩余积分。请在 dxpr.com/user/me/subscription/credits 充值。
- **Usage and Credits 显示“Unable to load usage data”。** DXPR Builder 无法用 **General Settings** 下的产品密钥连接到 dxpr.com。请检查产品密钥和服务器的网络连接，然后重新加载页面。

## 接下来做什么？

- [用 AI 改写文本](/zh-hans/hc/documentation/learn-dxpr-builder/ai/text-commands)：更改段落的语气或长度。
- [用 AI 起草页面](/zh-hans/hc/documentation/learn-dxpr-builder/ai/page-creation)：将简短提纲变成完整页面。
- [AI 配置](/zh-hans/hc/documentation/learn-dxpr-builder/ai/configuration)：语气、命令和输出过滤。