> 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/docs/zhong-wen-fan-ti/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/9558d1511c28f4bbf93eaada7794cdc32d14c052" alt="默认模型设置中的绘画模型选择"><figcaption><p>喺預設模型入面揀好繪畫模型之後，Agent 先可以用【生成圖片】。</p></figcaption></figure>

## 常用寫法

| 目標      | 提示詞應包含        | 例子                    |
| ------- | ------------- | --------------------- |
| 文章配圖    | 主題、留白、色調、比例   | 「橫版 16:9，左側主體，右側留標題區」 |
| 產品草圖    | 視角、材質、背景、限制   | 「等距視角，白色背景，唔出現文字」     |
| 社交媒體圖   | 平台比例、焦點、文字要求  | 「正方形，中心主體，唔生成文字」      |
| 基於參考圖修改 | 附件、要保留同要改變嘅部分 | 「保留人物同構圖，只替換背景同色調」    |

<figure><img src="/files/0355cfa8cfb7287a0ab617601c278da66033ed14" 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/docs/zhong-wen-fan-ti/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.
