---
title: 透過 RunAPI 在 WorkBuddy 中使用 Imagen 4——MCP 指南 | RunAPI
description: 透過 RunAPI 在 WorkBuddy 中使用 Google Imagen 4 生成圖像。一個 MCP server 提供 Fast、Standard 和 Ultra 三個層級，並自動處理非同步輪詢。
url: https://runapi.ai/zh-HK/workbuddy-imagen-4.md
canonical: https://runapi.ai/zh-HK/workbuddy-imagen-4
locale: zh-HK
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/workbuddy-imagen-4
  zh-CN: https://runapi.ai/zh-CN/workbuddy-imagen-4
  es: https://runapi.ai/es/workbuddy-imagen-4
  ja: https://runapi.ai/ja/workbuddy-imagen-4
  de: https://runapi.ai/de/workbuddy-imagen-4
  fr: https://runapi.ai/fr/workbuddy-imagen-4
  pt-BR: https://runapi.ai/pt-BR/workbuddy-imagen-4
  ko: https://runapi.ai/ko/workbuddy-imagen-4
  it: https://runapi.ai/it/workbuddy-imagen-4
  nl: https://runapi.ai/nl/workbuddy-imagen-4
  pl: https://runapi.ai/pl/workbuddy-imagen-4
  tr: https://runapi.ai/tr/workbuddy-imagen-4
  zh-TW: https://runapi.ai/zh-TW/workbuddy-imagen-4
  zh-HK: https://runapi.ai/zh-HK/workbuddy-imagen-4
  ar: https://runapi.ai/ar/workbuddy-imagen-4
  x-default: https://runapi.ai/workbuddy-imagen-4
model: imagen-4
---

> HTML version: https://runapi.ai/zh-HK/workbuddy-imagen-4
> Site index for agents: https://runapi.ai/llms.txt


# 在 WorkBuddy 中使用 Imagen 4。

Imagen 4 是 Google DeepMind 的圖像生成模型，具備準確的文字渲染和高提示詞保真度。WorkBuddy 透過 runapi MCP server 呼叫它——用於聊天的同一 server 和 RUNAPI_API_KEY 可在工作台中將全部三個層級作為可呼叫工具使用，無需額外的供應商帳戶。

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

一個 MCP server · 三個品質層級 · 非同步輪詢自動處理

### 提示詞

```text
Generate an image with Google Imagen 4 through the runapi MCP server.

Requirements:
- Call the image generation tool exposed by the runapi MCP server.
- Set the model to "imagen-4".
- Prompt: "A ceramic coffee mug on a wooden table with morning light, the text HELLO printed on the side in serif font, photorealistic."
- Add aspect_ratio or negative_prompt if needed.
- Wait for the task to complete and return the image URL.

```

### MCP 設定

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

```

### 回應

```json
{
  "task_id": "tsk_abc123",
  "status": "completed",
  "model": "imagen-4",
  "output": {
    "image_url": "https://media.runapi.ai/outputs/tsk_abc123.png"
  }
}

```

## 三步在 WorkBuddy 中使用 Imagen 4

1. **新增 RunAPI MCP 伺服器** - 在 WorkBuddy 中註冊一個名為 runapi 的 MCP server，透過 streamable HTTP 指向 https://runapi.ai/mcp，並在 Authorization 標頭中填入您的 RUNAPI_API_KEY。若 RunAPI 已在 WorkBuddy 中用於聊天，同一 server 即可使用 Imagen 4。 `url: https://runapi.ai/mcp`
2. **提示工作台代理** - 要求 WorkBuddy 使用 model imagen-4 和描述性提示詞生成圖像。可按需添加 aspect_ratio 或 negative_prompt。切換至 imagen-4-fast 進行低成本草稿輪次，或切換至 imagen-4-ultra 獲得最高細節。 `Generate a photorealistic image with Imagen 4`
3. **取得結果** - WorkBuddy 呼叫 RunAPI MCP 工具，以非同步任務執行生成並自動輪詢狀態。當狀態變為 completed 時，agent 會在工作台中回報生成的圖像 URL。 `task_id: tsk_abc123`

## Imagen 4 API 參數

| 參數 | 類型 | 說明 |
| --- | --- | --- |
| `model` | `string` | 必填。imagen-4、imagen-4-fast 或 imagen-4-ultra。 |
| `prompt` | `string` | 對所需圖片的文字描述。 |
| `aspect_ratio` | `string` | 選填。例如 1:1、16:9、9:16。 |
| `negative_prompt` | `string` | 選填。生成圖片中需要避免的內容。 |

## WorkBuddy 上的 Imagen 4 是什麼？

Imagen 4 是 Google DeepMind 的圖像模型，用戶稱其「秒出驚艷效果」，評測者認為其在 API 市場中「每像素性價比最高」。它提供三個層級——Fast 用於快速原型製作，Standard 用於生產工作，Ultra 用於最高細節——最便宜的層級每張圖像約 $0.02。WorkBuddy 透過 runapi MCP server 以單一 RUNAPI_API_KEY 存取全部三個層級。

## Imagen 4 使用場景

- **大規模快速原型設計** - 使用 Fast 方案以每張 $0.02 的價格快速探索概念，生成數十個變化版本後，再以 Standard 或 Ultra 方案確定最終方向。
- **具可讀文字的 UI 及標籤設計** - 生成介面原型圖、產品標籤及標牌設計，內嵌文字清晰呈現並精確遵從提示要求。
- **寫實材質與紋理** - 直接從 WorkBuddy 任務生成具有準確光線和表面細節的逼真材質紋理、復古旅遊明信片和新聞攝影場景。

## Imagen 4 + WorkBuddy 常見問題

### 如何在 WorkBuddy 中使用 Imagen 4？

將 RunAPI 作為名為 runapi 的 MCP server 指向 https://runapi.ai/mcp 並填入您的 RUNAPI_API_KEY，然後提示工作台 agent 使用 model imagen-4 生成圖像。agent 會呼叫 RunAPI MCP 工具並返回完成的圖像 URL——無需插件或 GCP 帳戶。

### 使用 Imagen 4 需要單獨的 API 金鑰嗎？

不需要。runapi MCP server 背後的同一個 RUNAPI_API_KEY 適用於聊天、圖像、影片和音樂的全部 250+ 個模型。一個金鑰，一個計費帳戶。

### Imagen 4 是否非同步？WorkBuddy 會處理等待嗎？

生成以非同步任務執行，返回狀態為 pending 的 task_id。RunAPI MCP server 處理狀態輪詢，WorkBuddy agent 只需在任務完成時回報圖像 URL。

### 何時應使用 Imagen 4 Fast、Standard 或 Ultra？

Fast 適合草稿迭代和概念探索，在速度和成本比細節更重要時使用——每張圖像約 $0.02。Standard 是生產工作的預設選項。Ultra 為主視覺或印刷品質素材提供最高細節輸出。三者使用相同的提示詞格式——只需更改 model slug。

### Imagen 4 的內容過濾器有多嚴格？

Imagen 4 的內容過濾器相對嚴格，有時可能標記無害的提示詞。若生成被拒絕，請更明確地說明預期的使用情境後重新表述。過濾器對人物和品牌圖像最為敏感。所有輸出均包含隱形 SynthID 浮水印。


- [WorkBuddy 設定指南 →](https://runapi.ai/zh-HK/workbuddy.md) - 尚未設定？從 WorkBuddy 的 RunAPI MCP 設定指南開始。
- [Imagen 4 模型 →](https://runapi.ai/zh-HK/models/imagen-4.md) - 查看所有 Imagen 4 版本、定價及 API 文件。

## 立即在 WorkBuddy 中試用 Imagen 4。

取得免費 RunAPI 金鑰，將 MCP server 加入 WorkBuddy，即可開始使用 Google Imagen 4 生成圖像。

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

---

## More from RunAPI

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

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-HK/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-HKicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "SoftwareApplication",
    "name": "適用於 WorkBuddy 的 RunAPI Imagen 4",
    "applicationCategory": "DeveloperApplication",
    "description": "透過 RunAPI 在 WorkBuddy 中使用 Google Imagen 4 生成圖像。一個 MCP server 提供 Fast、Standard 和 Ultra 三個層級，並自動處理非同步輪詢。",
    "url": "https://runapi.ai/zh-HK/workbuddy-imagen-4"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "如何在 WorkBuddy 中使用 Imagen 4？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "將 RunAPI 作為名為 runapi 的 MCP server 指向 https://runapi.ai/mcp 並填入您的 RUNAPI_API_KEY，然後提示工作台 agent 使用 model imagen-4 生成圖像。agent 會呼叫 RunAPI MCP 工具並返回完成的圖像 URL——無需插件或 GCP 帳戶。"
        }
      },
      {
        "@type": "Question",
        "name": "使用 Imagen 4 需要單獨的 API 金鑰嗎？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "不需要。runapi MCP server 背後的同一個 RUNAPI_API_KEY 適用於聊天、圖像、影片和音樂的全部 250+ 個模型。一個金鑰，一個計費帳戶。"
        }
      },
      {
        "@type": "Question",
        "name": "Imagen 4 是否非同步？WorkBuddy 會處理等待嗎？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "生成以非同步任務執行，返回狀態為 pending 的 task_id。RunAPI MCP server 處理狀態輪詢，WorkBuddy agent 只需在任務完成時回報圖像 URL。"
        }
      },
      {
        "@type": "Question",
        "name": "何時應使用 Imagen 4 Fast、Standard 或 Ultra？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Fast 適合草稿迭代和概念探索，在速度和成本比細節更重要時使用——每張圖像約 $0.02。Standard 是生產工作的預設選項。Ultra 為主視覺或印刷品質素材提供最高細節輸出。三者使用相同的提示詞格式——只需更改 model slug。"
        }
      },
      {
        "@type": "Question",
        "name": "Imagen 4 的內容過濾器有多嚴格？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Imagen 4 的內容過濾器相對嚴格，有時可能標記無害的提示詞。若生成被拒絕，請更明確地說明預期的使用情境後重新表述。過濾器對人物和品牌圖像最為敏感。所有輸出均包含隱形 SynthID 浮水印。"
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "HowTo",
    "name": "如何透過 RunAPI 在 WorkBuddy 中使用 Imagen 4",
    "description": "在 WorkBuddy 中將 RunAPI 加為 MCP server，並提示工作台 agent 使用 Google Imagen 4 生成圖像。",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "新增 RunAPI MCP 伺服器",
        "text": "在 WorkBuddy 中註冊一個名為 runapi 的 MCP server，透過 streamable HTTP 指向 https://runapi.ai/mcp，並在 Authorization 標頭中填入您的 RUNAPI_API_KEY。若 RunAPI 已在 WorkBuddy 中用於聊天，同一 server 即可使用 Imagen 4。",
        "url": "https://runapi.ai/zh-HK/workbuddy-imagen-4#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "提示工作台代理",
        "text": "要求 WorkBuddy 使用 model imagen-4 和描述性提示詞生成圖像。可按需添加 aspect_ratio 或 negative_prompt。切換至 imagen-4-fast 進行低成本草稿輪次，或切換至 imagen-4-ultra 獲得最高細節。",
        "url": "https://runapi.ai/zh-HK/workbuddy-imagen-4#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "取得結果",
        "text": "WorkBuddy 呼叫 RunAPI MCP 工具，以非同步任務執行生成並自動輪詢狀態。當狀態變為 completed 時，agent 會在工作台中回報生成的圖像 URL。",
        "url": "https://runapi.ai/zh-HK/workbuddy-imagen-4#how-step-3"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "主頁",
        "item": "https://runapi.ai/zh-HK"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "適用於 WorkBuddy 的 RunAPI Imagen 4",
        "item": "https://runapi.ai/zh-HK/workbuddy-imagen-4"
      }
    ]
  }
]
```
