Subscription required: API access requires a paid Comfy Cloud subscription; the Free tier does not include it. See the pricing plans.
Base URL
Authentication
All v1 requests require an API key passed in theX-API-Key header:
401. A key on an inactive subscription returns 429.
The same key is used for Partner Nodes. Over HTTP you pass it again in extra_data.api_key_comfy_org; see Using Partner Nodes for examples.
What the SDKs Don’t Cover Yet
The SDKs cover running a workflow, getting the results back, and canceling a job. The rest of the Cloud surface is reachable over HTTP only, so call these endpoints directly even if you use an SDK for execution.
Canceling a job is covered by both: the SDKs cancel a job you hold a handle to, and
POST /api/queue cancels by ID.
Available Endpoints
Error Handling
REST endpoints return standard HTTP status codes:
The SDKs raise these as typed exceptions instead, including
Unauthorized, InvalidWorkflow, InsufficientCredits, QueueFull, and JobFailed, all extending ComfyError.
Execution failures are separate from HTTP errors. See Error Handling for the exception_type values delivered during execution.
Next Steps
Comfy Cloud
Quickstart, credits, and concurrency limits.
Cloud API Reference
Complete endpoint documentation with curl, Python, and TypeScript examples.
Comfy API v2 Reference
The versioned HTTP API underneath both SDKs. Use it from any language.
OpenAPI Specification
Machine-readable API spec for code generation.