---
title: 透過 RunAPI 在 WorkBuddy 中使用 Flux 2——MCP 影像指南 | RunAPI
description: 透過 RunAPI，使用 MCP 在 WorkBuddy 中以 Black Forest Labs 的 Flux 2 生成影像。可從 workbench 使用 text-to-image 與多來源 remix 工具。
url: https://runapi.ai/zh-TW/workbuddy-flux-2.md
canonical: https://runapi.ai/zh-TW/workbuddy-flux-2
locale: zh-TW
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/workbuddy-flux-2
  zh-CN: https://runapi.ai/zh-CN/workbuddy-flux-2
  es: https://runapi.ai/es/workbuddy-flux-2
  ja: https://runapi.ai/ja/workbuddy-flux-2
  de: https://runapi.ai/de/workbuddy-flux-2
  fr: https://runapi.ai/fr/workbuddy-flux-2
  pt-BR: https://runapi.ai/pt-BR/workbuddy-flux-2
  ko: https://runapi.ai/ko/workbuddy-flux-2
  it: https://runapi.ai/it/workbuddy-flux-2
  nl: https://runapi.ai/nl/workbuddy-flux-2
  pl: https://runapi.ai/pl/workbuddy-flux-2
  tr: https://runapi.ai/tr/workbuddy-flux-2
  zh-TW: https://runapi.ai/zh-TW/workbuddy-flux-2
  zh-HK: https://runapi.ai/zh-HK/workbuddy-flux-2
  ar: https://runapi.ai/ar/workbuddy-flux-2
  x-default: https://runapi.ai/workbuddy-flux-2
model: flux-2
---

> HTML version: https://runapi.ai/zh-TW/workbuddy-flux-2
> Site index for agents: https://runapi.ai/llms.txt


# 在 WorkBuddy 中使用 Flux 2。

Black Forest Labs 的 Flux 2 提供多種品質版本，涵蓋從較快速的生成到更高保真度的輸出。每個版本均支援 text-to-image 與多來源 remix，Flux 2 模型目錄列出每個版本支援的解析度及目前定價。WorkBuddy 可直接從 workbench 將它們作為 RunAPI MCP server 上的工具呼叫。

- [取得 API Key](https://runapi.ai/zh-TW/login)
- [閱讀說明文件](https://runapi.ai/zh-TW/docs/guides)

一個 API key · text to image + remix 工具 · 1k / 2k 解析度（Max 僅 1k）

### 提示詞

```text
Use the runapi MCP server to generate an image with Flux 2 Pro.

Requirements:
- Call the RunAPI text_to_image tool with model "flux-2-pro-text-to-image"
- Prompt: a ceramic vase with dried flowers on a linen tablecloth, natural window light, 35mm film grain
- Set aspect_ratio to "3:4" and output_resolution to "2k"
- Wait for the task to complete and show me the image URL

```

### MCP 設定

```bash
{
  "mcpServers": {
    "runapi": {
      "url": "https://runapi.ai/mcp",
      "transport": "streamable_http",
      "headers": {
        "Authorization": "Bearer ${RUNAPI_API_KEY}"
      }
    }
  }
}

```

### 回應

```json
{
  "task_id": "tsk_abc123",
  "status": "completed",
  "model": "flux-2-pro-text-to-image",
  "output": {
    "image_url": "https://media.runapi.ai/outputs/tsk_abc123.png"
  }
}

```

## 在 WorkBuddy 中使用 Flux 2 的三個步驟

1. **新增 RunAPI MCP server** - 在 WorkBuddy 中註冊名為 runapi 的 MCP server，透過 streamable HTTP 指向 https://runapi.ai/mcp，並讓 Authorization header 從 RUNAPI_API_KEY 讀取您的 key。若 RunAPI 已連線用於 chat，Flux 2 會在同一 server 上提供——無需額外設定。 `url: https://runapi.ai/mcp
auth: Bearer ${RUNAPI_API_KEY}
`
2. **提示工作台 agent** - 要求 WorkBuddy 呼叫 RunAPI text_to_image tool，並將 model 設為 flux-2-pro-text-to-image。加入 prompt，並可選擇性設定 aspect_ratio（1:1、4:3、16:9 等）和 output_resolution（1k 或 2k；Flux 2 Max 僅支援 1k）。若要進行多來源 remix，請要求 agent 改用搭配 source_image_urls 的 remix_image tool。 `tool: text_to_image · model: flux-2-pro-text-to-image`
3. **取得結果** - MCP server 會建立任務、追蹤至完成，並將完成的圖片 URL 傳回 WorkBuddy。agent 會在對話中顯示 URL — 您無需手動輪詢。 `task_id: tsk_abc123 → completed`

## Flux 2 tool 參數

| 參數 | 類型 | 說明 |
| --- | --- | --- |
| `model` | `string` | 必填。對應工具的 Flux 2 模型 ID，例如 flux-2-pro-text-to-image 或 flux-2-pro-remix-image。Flux 2 模型目錄列出所有可用版本。 |
| `prompt` | `string` | 要生成圖片的文字描述。 |
| `aspect_ratio` | `string` | 選填。輸出長寬比：1:1、4:3、3:4、16:9、9:16、3:2 或 2:3。remix tool 也接受 auto。 |
| `output_resolution` | `string` | 選填。預設為 1k。可用值依版本而異，請查看 Flux 2 模型目錄。Flex 與 Pro 的 2k 每張圖片費用高於 1k。 |
| `source_image_urls` | `array` | remix_image 必填。要混合或轉換的來源圖片 URL 陣列。 |
| `callback_url` | `string` | 選填。用於非同步完成通知的 webhook URL。 |

## WorkBuddy 上的 Flux 2 是什麼？

Black Forest Labs 的 Flux 2 是可用於製作的影像模型，使用者表示它「在擬真度上勝過 Midjourney」，對材質的呈現足以媲美真實攝影。它具備多參考圖條件控制與 4-megapixel 輸出，因此無需 fine-tuning 也能取得符合品牌一致性的結果。WorkBuddy 透過 RunAPI MCP server 將它作為工具存取，因此在 workbench 輸入的文字需求會轉換為完成影像 URL。

## Flux 2 使用情境

- **電商產品攝影** - 生成看似真實攝影棚拍攝的產品照與背景替換，以取代目錄頁面和商品刊登所需的人工攝影——全部透過 WorkBuddy prompt 提出請求。
- **跨市場廣告在地化** - 從相同的提示詞結構為 30 多個市場生成在地化廣告視覺素材，替換文字與文化參考，同時保持品牌一致性。
- **雜誌封面與編輯圖片** - 建立雜誌品質封面，含圖上文字渲染，字體排版需成為生成圖片的一部分，而非事後合成。

## Flux 2 + WorkBuddy 問題

### Flux 2 各版本有何差異？

各版本在生成速度、輸出保真度與價格上有所不同。每個版本都在同一個 RunAPI MCP server 上提供 text_to_image 和 remix_image tool。Flux 2 模型目錄中的版本表列出每個版本支援的參數及目前價格。

### Flux 2 影像生成需要另外的 MCP server 嗎？

不需要。您為 chat 新增的 runapi MCP server 已將 Flux 2 與所有其他 RunAPI 模型作為可呼叫工具提供。同一個 RUNAPI_API_KEY 可用於 LLM、影像、影片和音樂請求。

### Flux 2 輸出解析度會影響定價嗎？

視版本而定。Flux 2 Flex 與 Flux 2 Pro 按張計費，2k 比 1k 貴。Flux 2 Max 只輸出 1k，按單一價格按張計費。請至 Flux 2 模型目錄或 RunAPI 定價頁面查看目前費率。

### Flux 2 與 Flux Kontext 相比如何？

Flux Kontext 專精於以文字引導編輯及透過單一輸入影像維持角色一致性。Flux 2 則著重於 text-to-image 生成與多來源 remix，提供多種品質版本和可選輸出解析度。兩者皆由 Black Forest Labs 開發，並可作為同一個 RunAPI MCP server 上的工具使用。

### 在 WorkBuddy 中由誰處理非同步任務輪詢？

由 RunAPI MCP server 處理。Flux 2 task 為 async，但 server 會追蹤每個 task 至完成並將完成影像 URL 回傳給 WorkBuddy，因此您永遠不必從 workbench 手動輪詢。


- [WorkBuddy 設定指南 →](https://runapi.ai/zh-TW/workbuddy.md) - 尚未連線嗎？請先參閱 WorkBuddy 的 RunAPI MCP 設定指南。
- [Flux 2 模型 →](https://runapi.ai/zh-TW/models/flux-2.md) - 查看所有 Flux 2 版本、定價及 API 文件。

## 立即在 WorkBuddy 中試用 Flux 2。

取得免費 RunAPI key，將 MCP server 新增至 WorkBuddy，並開始使用 Flux 2 生成影像。

[瀏覽模型 →](https://runapi.ai/zh-TW/models.md)

---

## More from RunAPI

- [Home](https://runapi.ai/zh-TW/.md)
### 產品
- [模型目錄](https://runapi.ai/zh-TW/models.md)
- [價格](https://runapi.ai/zh-TW/pricing.md)
- [提供商](https://runapi.ai/zh-TW/models#all-models)
### 開發者
- [文件](https://runapi.ai/zh-TW/docs/guides)
- [SDK](https://runapi.ai/zh-TW/sdk.md)
- [CLI](https://runapi.ai/zh-TW/cli.md)
- [MCP Server](https://runapi.ai/zh-TW/mcp.md)
- [x402](https://runapi.ai/zh-TW/x402.md)
### 指南
- [Claude Code 與 Cursor](https://runapi.ai/zh-TW/claude-code-vs-cursor.md)
- [Cursor API 設定](https://runapi.ai/zh-TW/cursor-api-setup.md)
- [RunAPI 與 OpenRouter](https://runapi.ai/zh-TW/openrouter-alternative.md)
### 公司
- [企業版](https://runapi.ai/zh-TW/contact.md)
- [聯絡我們](https://runapi.ai/zh-TW/contact.md)
### 法律
- [服務條款](https://runapi.ai/zh-TW/terms.md)
- [隱私權](https://runapi.ai/zh-TW/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-TW",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-TW/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-TW",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-TWicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "SoftwareApplication",
    "name": "適用於 WorkBuddy 的 RunAPI Flux 2",
    "applicationCategory": "DeveloperApplication",
    "description": "透過 RunAPI，使用 MCP 在 WorkBuddy 中以 Black Forest Labs 的 Flux 2 生成影像。可從 workbench 使用 text-to-image 與多來源 remix 工具。",
    "url": "https://runapi.ai/zh-TW/workbuddy-flux-2"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "Flux 2 各版本有何差異？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "各版本在生成速度、輸出保真度與價格上有所不同。每個版本都在同一個 RunAPI MCP server 上提供 text_to_image 和 remix_image tool。Flux 2 模型目錄中的版本表列出每個版本支援的參數及目前價格。"
        }
      },
      {
        "@type": "Question",
        "name": "Flux 2 影像生成需要另外的 MCP server 嗎？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "不需要。您為 chat 新增的 runapi MCP server 已將 Flux 2 與所有其他 RunAPI 模型作為可呼叫工具提供。同一個 RUNAPI_API_KEY 可用於 LLM、影像、影片和音樂請求。"
        }
      },
      {
        "@type": "Question",
        "name": "Flux 2 輸出解析度會影響定價嗎？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "視版本而定。Flux 2 Flex 與 Flux 2 Pro 按張計費，2k 比 1k 貴。Flux 2 Max 只輸出 1k，按單一價格按張計費。請至 Flux 2 模型目錄或 RunAPI 定價頁面查看目前費率。"
        }
      },
      {
        "@type": "Question",
        "name": "Flux 2 與 Flux Kontext 相比如何？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Flux Kontext 專精於以文字引導編輯及透過單一輸入影像維持角色一致性。Flux 2 則著重於 text-to-image 生成與多來源 remix，提供多種品質版本和可選輸出解析度。兩者皆由 Black Forest Labs 開發，並可作為同一個 RunAPI MCP server 上的工具使用。"
        }
      },
      {
        "@type": "Question",
        "name": "在 WorkBuddy 中由誰處理非同步任務輪詢？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "由 RunAPI MCP server 處理。Flux 2 task 為 async，但 server 會追蹤每個 task 至完成並將完成影像 URL 回傳給 WorkBuddy，因此您永遠不必從 workbench 手動輪詢。"
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "HowTo",
    "name": "如何透過 RunAPI 在 WorkBuddy 中使用 Flux 2",
    "description": "在 WorkBuddy 中將 RunAPI 新增為 MCP server，提示 workbench agent 呼叫 Flux 2 text_to_image 或 remix_image tool，即可接收生成影像 URL。",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "新增 RunAPI MCP server",
        "text": "在 WorkBuddy 中註冊名為 runapi 的 MCP server，透過 streamable HTTP 指向 https://runapi.ai/mcp，並讓 Authorization header 從 RUNAPI_API_KEY 讀取您的 key。若 RunAPI 已連線用於 chat，Flux 2 會在同一 server 上提供——無需額外設定。",
        "url": "https://runapi.ai/zh-TW/workbuddy-flux-2#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "提示工作台 agent",
        "text": "要求 WorkBuddy 呼叫 RunAPI text_to_image tool，並將 model 設為 flux-2-pro-text-to-image。加入 prompt，並可選擇性設定 aspect_ratio（1:1、4:3、16:9 等）和 output_resolution（1k 或 2k；Flux 2 Max 僅支援 1k）。若要進行多來源 remix，請要求 agent 改用搭配 source_image_urls 的 remix_image tool。",
        "url": "https://runapi.ai/zh-TW/workbuddy-flux-2#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "取得結果",
        "text": "MCP server 會建立任務、追蹤至完成，並將完成的圖片 URL 傳回 WorkBuddy。agent 會在對話中顯示 URL — 您無需手動輪詢。",
        "url": "https://runapi.ai/zh-TW/workbuddy-flux-2#how-step-3"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "首頁",
        "item": "https://runapi.ai/zh-TW"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "適用於 WorkBuddy 的 RunAPI Flux 2",
        "item": "https://runapi.ai/zh-TW/workbuddy-flux-2"
      }
    ]
  }
]
```
