> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# RecraftV4TextToVectorNode - ComfyUI Built-in Node Documentation

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

Recraft V4 文本转矢量节点可根据文本描述生成可缩放矢量图形（SVG）插图。该节点连接外部 API，使用 Recraft V4 或 Recraft V4 Pro 模型进行图像生成。节点根据您的提示词输出一个或多个 SVG 图像。

## 输入

| 参数                 | 描述                                                                                              | 数据类型   | 是否必填 | 范围                                                                                                                                                                                                                                                                                         |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------ | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `prompt`           | 图像生成的提示词。最多 10,000 个字符。                                                                         | STRING | 是    | 无                                                                                                                                                                                                                                                                                          |
| `negative_prompt`  | 可选文本描述，用于指定图像中不希望出现的元素。                                                                         | STRING | 否    | 无                                                                                                                                                                                                                                                                                          |
| `model`            | 用于生成的模型。选择模型会改变可用的 `size` 选项。                                                                   | COMBO  | 是    | `"recraftv4"`<br />`"recraftv4_pro"`                                                                                                                                                                                                                                                       |
| `size`             | 生成图像的大小。可用选项取决于所选的 `model`。`recraftv4` 的默认值为 `"1024x1024"`，`recraftv4_pro` 的默认值为 `"2048x2048"`。 | COMBO  | 是    | 对于 `recraftv4`：`"1024x1024"`、`"1152x896"`、`"896x1152"`、`"1216x832"`、`"832x1216"`、`"1344x768"`、`"768x1344"`、`"1536x640"`、`"640x1536"`<br />对于 `recraftv4_pro`：`"2048x2048"`、`"2304x1792"`、`"1792x2304"`、`"2432x1664"`、`"1664x2432"`、`"2688x1536"`、`"1536x2688"`、`"3072x1280"`、`"1280x3072"` |
| `n`                | 要生成的图像数量（默认值：1）。                                                                                | INT    | 是    | 1 到 6                                                                                                                                                                                                                                                                                      |
| `seed`             | 用于确定节点是否应重新运行的种子；实际结果与种子无关，具有非确定性。                                                              | INT    | 是    | 0 到 18446744073709551615                                                                                                                                                                                                                                                                   |
| `recraft_controls` | 通过 Recraft Controls 节点对生成过程进行可选附加控制。                                                            | CUSTOM | 否    | 无                                                                                                                                                                                                                                                                                          |

**注意：** `size` 参数是一个动态输入，其可用选项会根据所选的 `model` 而变化。`seed` 值无法保证从外部 API 获得可重复的结果。

## 输出

| 输出名称     | 描述                 | 数据类型 |
| -------- | ------------------ | ---- |
| `output` | 生成的可缩放矢量图形（SVG）图像。 | SVG  |

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

***

**Source fingerprint (SHA-256):** `ffab67555923cea29b50ae71e3ffaad13340aead4d01973a70244468fae4420d`
