> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/advanced-basic/agent-workspace/models-image.md).

# 模型分工与 Agent 绘画

一个 Agent 可以使用三种文本模型角色，并通过全局绘画模型调用【生成图片】工具。先用简单配置跑通任务，再按需要拆分模型角色。

## 三种模型角色

| 角色       | 主要职责             | 建议起点              |
| -------- | ---------------- | ----------------- |
| 主模型      | 理解目标、调用工具并生成主要结果 | 选择一个已验证能稳定使用工具的模型 |
| Plan 模型  | 拆解复杂任务与制定计划      | 先与主模型相同，确认确有需要再拆分 |
| Small 模型 | 简单判断、分类和格式化      | 先与主模型相同，避免过早增加变量  |

配置路径：左侧导航【工作】→ 打开 Agent 菜单→【编辑】→【基础】。

{% hint style="warning" %}
切换正在进行中的任务模型时，后续回复的连贯性可能变化。已经开始生成的回复不会因配置变化而中断，新模型从下一条消息开始使用。
{% endhint %}

## 让 Agent 直接生成图片

Agent 绘画使用的是 Cherry Studio 的全局绘画模型，不是 Agent 的主模型。

{% stepper %}
{% step %}

### 1. 配置绘画模型

打开【设置】→【默认模型】→【绘画模型】，选择已经在模型服务中可用的图片生成模型。
{% endstep %}

{% step %}

### 2. 检查 Agent 的图片工具

打开 Agent 编辑窗口→【内置工具】，确认【生成图片】处于启用状态。
{% endstep %}

{% step %}

### 3. 在【工作】中描述图片

告诉 Agent 图片用途、主体、风格、构图、比例和不希望出现的内容。例如：

```
为这份产品发布稿生成一张 16:9 的头图。画面是夜色中的桌面 AI 工作台，蓝紫色调，留出右侧标题空间，不要出现文字和品牌标志。
```

{% endstep %}

{% step %}

### 4. 检查工具调用与结果

图片生成可能需要工具批准，也可能产生服务商用量。确认调用的模型和参数后再允许执行；结果会直接显示在 Agent 任务中。
{% endstep %}
{% endstepper %}

<figure><img src="/files/7zZYxCzPMM8OEaMdS4WW" alt="默认模型设置中的绘画模型选择"><figcaption><p>在默认模型中选好绘画模型后，Agent 才能使用【生成图片】。</p></figcaption></figure>

## 常用写法

| 目标      | 提示词应包含        | 例子                    |
| ------- | ------------- | --------------------- |
| 文章配图    | 主题、留白、色调、比例   | “横版 16:9，左侧主体，右侧留标题区” |
| 产品草图    | 视角、材质、背景、限制   | “等距视角，白色背景，不出现文字”     |
| 社交媒体图   | 平台比例、焦点、文字要求  | “正方形，中心主体，不生成文字”      |
| 基于参考图修改 | 附件、要保留和要改变的部分 | “保留人物与构图，只替换背景和色调”    |

<figure><img src="/files/OL2MT7K7dBroOHMrmyYn" alt="Agent 对话中启用生成图片工具并选择绘画模型"><figcaption><p>绘画模型配置完成后，Agent 可以在任务里直接生成图片；需要模板化批量创作时再进入【绘画】。</p></figcaption></figure>

## 选择建议

| 需求          | 建议做法              | 适用场景       | 注意事项         |
| ----------- | ----------------- | ---------- | ------------ |
| 偶尔为文档配一张图   | 在 Agent 中启用【生成图片】 | 报告、提案、笔记配图 | 先确认尺寸、风格和用途  |
| 反复使用同一套画面参数 | 使用【绘画】模板          | 品牌图、系列封面   | 保存模板前先验证一次结果 |
| 编辑已有图片      | 在【绘画】中提供参考图和修改要求  | 改色、扩图、局部调整 | 保留原图，避免不可逆覆盖 |

## 用户案例：一份发布稿配三张图

内容运营把发布稿放进工作目录，让 Agent 先提炼三个视觉主题，再分别生成头图、功能示意图和社交媒体方图。每次只生成一张并确认方向，避免一次消耗多次调用却全部需要返工。

<details>

<summary>为什么【生成图片】不可用？</summary>

先检查【设置】→【默认模型】是否已选择绘画模型，再确认该模型对应的服务商已启用且连接正常。最后检查 Agent 的【生成图片】工具是否被关闭。

</details>

<details>

<summary>主模型本身会画图，还需要绘画模型吗？</summary>

Agent 的【生成图片】工具使用全局绘画模型。即使主模型支持多模态理解，也不能替代这里的绘画模型配置。

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/advanced-basic/agent-workspace/models-image.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
