> ## 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.

# RunwayTextToImageNode - ComfyUI Built-in Node Documentation

> Complete documentation for the RunwayTextToImageNode node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/RunwayTextToImageNode/zh.md)

Runway 文生图节点使用 Runway 的 Gen 4 模型，根据文本提示生成图像。您可以提供文本描述，并可选择包含参考图像来指导图像生成过程。该节点负责处理 API 通信并返回生成的图像。

## 输入参数

| 参数                | 数据类型   | 必填 | 取值范围                                                                                              | 描述               |
| ----------------- | ------ | -- | ------------------------------------------------------------------------------------------------- | ---------------- |
| `prompt`          | STRING | 是  | -                                                                                                 | 用于生成的文本提示（默认：""） |
| `ratio`           | COMBO  | 是  | "16:9"<br />"1:1"<br />"21:9"<br />"2:3"<br />"3:2"<br />"4:5"<br />"5:4"<br />"9:16"<br />"9:21" | 生成图像的宽高比         |
| `reference_image` | IMAGE  | 否  | -                                                                                                 | 可选的参考图像，用于指导生成过程 |

**注意：** 参考图像的尺寸不得超过 7999x7999 像素，宽高比需在 0.5 到 2.0 之间。当提供参考图像时，它会指导图像生成过程。

## 输出结果

| 输出名称     | 数据类型  | 描述                 |
| -------- | ----- | ------------------ |
| `output` | IMAGE | 基于文本提示和可选参考图像生成的图像 |
