> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-matt-router-pricing-pika-and-guard.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ComfyUI 开发者指南：SDK、服务器 API 与云端

> 使用官方 Python 和 TypeScript SDK 基于 ComfyUI 构建，将其作为服务器运行，调用 Cloud API，或通过 MCP 连接 AI 代理。

ComfyUI 是一个模块化的 GenAI 推理引擎，可以作为服务器运行、通过 API 访问、用自定义节点扩展，也能通过命令行管理。大多数 API 相关工作分为两步：先让 ComfyUI 在某处运行起来，然后从你的应用程序对它运行工作流。

## 使用场景

<CardGroup cols={2}>
  <Card title="获取 API Key" icon="key" href="/zh/development/api-development/getting-an-api-key">
    创建 Cloud API、合作伙伴节点和 MCP 使用的凭证。
  </Card>

  <Card title="运行模型" icon="rocket" href="/zh/development/comfy-router/quickstart">
    通过 Comfy Router 使用托管模型进行生成。
  </Card>

  <Card title="使用 SDK 运行工作流" icon="code" href="/zh/development/api-development/sdks">
    使用 Python 或 TypeScript SDK 调用部署。
  </Card>

  <Card title="部署 ComfyUI 工作流" icon="server" href="/zh/development/deploy/overview">
    在托管基础设施或自托管 ComfyUI 上运行你自己的工作流。
  </Card>

  <Card title="构建 AI 代理" icon="robot" href="/zh/agent-tools">
    通过 MCP 和代理工具将代理连接到 ComfyUI。
  </Card>

  <Card title="浏览模型" icon="search" href="http://comfy.org/models">
    浏览 Comfy.org 上可用的模型。
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.