元编程参考文档

ComfyUI 接口

6 个节点

本页内容 6

高级图像生成

函数

此节点没有文档说明。

签名
高级图像生成 -> Pixel Image
    正向提示词: 文本
    反向提示词: 文本
    模型: 文本
    配置: ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration
PixelImage AdvancedGenerateImage(
    string posive,
    string negative,
    string model = "sd3.5_large_fp8_scaled.safetensors",
    ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration configuration)

参数

名称类型默认值说明
正向提示词文本—
反向提示词文本—
模型文本sd3.5_large_fp8_scaled.safetensors
配置ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
ComfyUI 接口
所属包
生成式 AI

配置 ComfyUI 服务

函数

此节点没有文档说明。

签名
配置 ComfyUI 服务 -> ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration
    自定义服务器: 文本
    访问令牌: 文本
ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration ConfigureComfyUIService(
    string customServer = "http://127.0.0.1:8188",
    string accessToken)

参数

名称类型默认值说明
自定义服务器文本http://127.0.0.1:8188
访问令牌文本—

返回

结果ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
ComfyUI 接口
所属包
生成式 AI

由工作流生成

函数

此节点没有文档说明。

签名
由工作流生成 -> Pixel Image 数组
    工作流 JSON: 文本
    配置: ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration
PixelImage[] GenerateFromWorkflow(
    string workflowJson,
    ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration configuration)

参数

名称类型默认值说明
工作流 JSON文本—
配置ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration—

返回

结果Pixel Image 数组
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
ComfyUI 接口
所属包
生成式 AI

由工作流文件生成

函数

此节点没有文档说明。

签名
由工作流文件生成 -> Pixel Image 数组
    工作流 API JSON 文件: 文本
    配置: ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration
PixelImage[] GenerateFromWorkflowFile(
    string workflowPromptAPIJsonFile,
    ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration configuration)

参数

名称类型默认值说明
工作流 API JSON 文件文本—
配置ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration—

返回

结果Pixel Image 数组
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
ComfyUI 接口
所属包
生成式 AI

简单图像生成

函数

此节点没有文档说明。

签名
简单图像生成 -> Pixel Image
    正向提示词: 文本
    反向提示词: 文本
    模型: 文本
    配置: ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration
PixelImage SimpleGenerateImage(
    string posive,
    string negative,
    string model = "v1-5-pruned-emaonly-fp16.safetensors",
    ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration configuration)

参数

名称类型默认值说明
正向提示词文本—
反向提示词文本—
模型文本v1-5-pruned-emaonly-fp16.safetensors
配置ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
ComfyUI 接口
所属包
生成式 AI

简单图像修改

函数

此节点没有文档说明。

签名
简单图像修改 -> Pixel Image
    原图: Pixel Image
    正向提示词: 文本
    反向提示词: 文本
    模型: 文本
    配置: ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration
PixelImage SimpleModifyImage(
    PixelImage original,
    string posive,
    string negative,
    string model = "v1-5-pruned-emaonly-fp16.safetensors",
    ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration configuration)

参数

名称类型默认值说明
原图Pixel Image—
正向提示词文本—
反向提示词文本—
模型文本v1-5-pruned-emaonly-fp16.safetensors
配置ComfyUIAPIHelper.ComfyUIAPIServiceConfiguration—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
ComfyUI 接口
所属包
生成式 AI