> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-nav-cta-ab-test-try-cloud-free.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 概述

> 作为开发者使用 ComfyUI

ComfyUI 是一个模块化的 GenAI 推理引擎，可以部署为 API 服务器、通过接口调用、用自定义节点扩展，也能用命令行管理。根据你的需求选择下面的路径。

## 基于 ComfyUI 构建

从您自己的应用运行 ComfyUI 工作流，并获取返回结果。官方 SDK 基于版本化 HTTP API，同一套代码既可对接 Comfy Cloud，也可对接您自行托管的 ComfyUI 实例。

<Card title="Comfy SDK" icon="code" href="/zh/development/api-development/sdks">
  安装 Python 或 TypeScript SDK，提交工作流并下载输出。目前为测试版。
</Card>

另请参阅：[设计说明](/zh/development/api-development/sdks-design) · [Comfy API v2 参考](/zh/api-reference/v2/overview) · [API 概述](/zh/development/api-development/overview)

## 部署 ComfyUI 作为 API 服务

在自有环境中运行 ComfyUI 并将其暴露为 API 端点。了解 WebSocket 消息协议、可用路由和执行模式。

<Card title="ComfyUI Server API" icon="server" href="/zh/development/comfyui-server/comms_overview">
  在自有机器上将 ComfyUI 作为 API 服务运行。启动、配置、并通过 REST 和 WebSocket API 调用。
</Card>

另见：[API 示例](/zh/development/comfyui-server/api-examples) · [合作节点 API 集成](/zh/development/comfyui-server/api-key-integration)

## Cloud API

在 Comfy Cloud 上以编程方式运行工作流，无需管理硬件。使用 REST API、查看 OpenAPI 规范，并通过 API Key 集成 Partner Node。

<Card title="Cloud API 概览" icon="cloud" href="/zh/development/cloud/overview">
  了解如何认证、提交任务、查询状态以及从 Comfy Cloud 下载结果。
</Card>

另见：[API 参考](/zh/development/cloud/api-reference) · [OpenAPI 规范](/zh/development/cloud/openapi) · [获取 API Key](/zh/development/api-development/getting-an-api-key) · [API 概览](/zh/development/api-development/overview)

## Agent Tools / MCP

通过模型上下文协议（MCP）将 AI 代理连接到 ComfyUI。可从托管的 Cloud MCP 开始，或使用 Local MCP 与 Comfy CLI 完成其他场景。

<Card title="MCP 概览" icon="robot" href="/zh/agent-tools">
  比较 Cloud MCP、Local MCP 和 Comfy CLI，找到适合你 AI 代理集成的方式。
</Card>

另见：[Comfy MCP](/zh/agent-tools/mcp)：云端与本地连接

## Comfy CLI

通过命令行管理 ComfyUI 的安装、自定义节点和工作流。轻松完成安装、更新、配置和自动化。

<Card title="CLI 快速上手" icon="terminal" href="/zh/comfy-cli/getting-started">
  了解如何从终端安装、更新和管理 ComfyUI。
</Card>

另见：[CLI 参考](/zh/comfy-cli/reference) · [故障排除](/zh/comfy-cli/troubleshooting)

## 自定义节点

通过 Python 后端、JavaScript UI 扩展和集成来扩展 ComfyUI。从[自定义节点概述](/zh/custom-nodes/overview)开始。

## 注册表（Registry）

通过 Comfy 注册表打包和发布自定义节点。从[注册表概述](/zh/registry/overview)或[发布教程](/zh/registry/publishing)开始。
