comfy-sdk

Installation
SKILL.md

comfy-sdk — build with Comfy Router

Steering only. Model names, schemas, prices and default timeouts change: discover them at run time (section 3) or read them off the installed SDK, and never paste one from memory.

1. Pick the right client

  • Router (partner models, https://api.comfy.org) is reached through the models namespace:
    • Python: Comfy().models (AsyncComfy().models for asyncio).
    • TypeScript: the module-level comfy.models, after comfy.config({ credentials }) or with COMFY_API_KEY set. new Comfy({ apiKey }) is the Comfy Cloud workflow client and has no .models.
  • Cloud (/api/v2/jobs, run a ComfyUI workflow) is the class client in both SDKs.
  • Both use the same COMFY_API_KEY. Hosts are separate: COMFY_ROUTER_BASE_URL redirects Router, COMFY_BASE_URL redirects Cloud. Leave both unset in production.
Installs
18
GitHub Stars
270
First Seen
Nov 11, 2026