> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

#  Runway 合作伙伴节点 图像生成 ComfyUI 官方示例

> 本文将介绍如何在 ComfyUI 中使用 Runway 节点进行文生图和参考生图功能

Runway 是一家专注于生成式AI的科技公司，提供强大的图像生成功能。其模型支持风格迁移、图像扩展和细节控制等特性。目前 ComfyUI 已集成 Runway API，你可以直接在 ComfyUI 中使用相关节点进行图像生成。

本篇指南中，我们将引导你完成下面的工作流:

* 文生图
* 参考生图

<Tip>
  使用 API 节点需要保证你已经正常登录，并在受许可的网络环境下使用，请参考[API 节点总览](/zh/tutorials/partner-nodes/overview)部分文档来了解使用 API 节点的具体使用要求。
</Tip>

<Tip>
  <Tabs>
    <Tab title="便携版或手动安装用户">
      请确保你的 ComfyUI 已经更新。

      * [ComfyUI 下载](https://www.comfy.org/download)
      * [ComfyUI 更新教程](/zh/installation/update_comfyui)

      本指南里的工作流可以在 ComfyUI 的[工作流模板](/zh/interface/features/template)中找到。如果找不到，可能是 ComfyUI 没有更新。

      如果加载工作流时有节点缺失，可能原因有：

      1. 你用的不是最新开发版（nightly）。
      2. 你用的是稳定版或桌面版（没有包含最新的更新）。
      3. 启动时有些节点导入失败。
    </Tab>

    <Tab title="桌面版或云端用户">
      * 桌面版是基于 ComfyUI 稳定版本构建的，它会在有新的桌面稳定版本发布时自动更新。
      * [Cloud](https://cloud.comfy.org) 会在 ComfyUI 稳定版本发布后更新，我们会同步更新 Cloud。

      所以，如果你发现本教程中有任何核心节点缺失，那是因为对应的节点支持还在开发中没有发布正式的稳定版，请等待下一个稳定版本发布。
    </Tab>
  </Tabs>
</Tip>

## Runway Image 文生图 工作流

### 1. 工作流文件下载

下面的图片的`metadata`中已经包含工作流信息，请下载并拖入 ComfyUI 中加载对应工作流。

![ComfyUI Runway Image Text to Image](https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/api_nodes/runway/image/text_to_image.png)

### 2. 按步骤完成工作流的运行

<img src="https://mintcdn.com/dripart-docs-recommend-assets-api/6PZTulxPduBzJ-FN/images/tutorial/api_nodes/runway/runway_text_to_image_step_guide.jpg?fit=max&auto=format&n=6PZTulxPduBzJ-FN&q=85&s=ce291e0fc1984844eee6d978600a56b8" alt="ComfyUI Runway Image Text to Image Step Guide" width="2842" height="1260" data-path="images/tutorial/api_nodes/runway/runway_text_to_image_step_guide.jpg" />

你可参考图片中的序号来完成最基础的文生图工作流运行：

1. 在 `Runway Text to Image` 的 `prompt` 中输入提示词
2. (可选) 设置调整 `ratio` 来设置不同的输出比例
3. 点击 `Run` 按钮，或者使用快捷键 `Ctrl(cmd) + Enter(回车)` 来执行图像的生成。
4. 等待 API 返回结果后，你可在 `Save Image` 节点中查看生成的图像（右键可以保存），对应的图像也会被保存至 `ComfyUI/output/` 目录下。

## Runway Image 参考生图 工作流

### 1. 工作流及输入图像下载

下面的图片的`metadata`中已经包含工作流信息，请下载并拖入 ComfyUI 中加载对应工作流。

![ComfyUI Runway Image Reference to Image](https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/api_nodes/runway/image/reference_to_image/runway_reference_to_image.png)

下载下面的图像用于输入

![ComfyUI Runway Image Reference to Image Input](https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/api_nodes/runway/image/reference_to_image/input.png)

### 2. 按步骤完成工作流的运行

<img src="https://mintcdn.com/dripart-docs-recommend-assets-api/6PZTulxPduBzJ-FN/images/tutorial/api_nodes/runway/runway_reference_to_image_step_guide.jpg?fit=max&auto=format&n=6PZTulxPduBzJ-FN&q=85&s=897fd30580e871536ff50667ac65c207" alt="ComfyUI Runway Image Reference to Image Step Guide" width="2842" height="1260" data-path="images/tutorial/api_nodes/runway/runway_reference_to_image_step_guide.jpg" />

你可参考图片中的序号来完成最基础的参考生图工作流运行：

1. 在 `Load Image` 节点中加载提供的输入图像
2. 在 `Runway Text to Image` 的 `prompt` 中输入提示词及进行尺寸调整
3. 点击 `Run` 按钮，或者使用快捷键 `Ctrl(cmd) + Enter(回车)` 来执行图像的生成。
4. 等待 API 返回结果后，你可在 `Save Image` 节点中查看生成的图像（右键可以保存），对应的图像也会被保存至 `ComfyUI/output/` 目录下。
