Overview
The ComfyControl API provides programmatic access to manage ComfyUI runners, execute workflows, and organize templates. Built on RESTful principles, the API uses JSON for request and response bodies (except for file uploads which use multipart/form-data).Base URL
All API requests should be made to:API Conventions
HTTP Methods
The API uses standard HTTP methods:GET- Retrieve resourcesPOST- Create new resources or trigger actionsPUT- Update existing resourcesDELETE- Remove resources
Response Format
All responses are returned in JSON format with appropriate HTTP status codes. Successful responses return the requested data, while errors return a standardized error object.Timestamps
All timestamps are returned in ISO 8601 format (UTC):UUIDs
Resource identifiers use UUID v4 format:Pagination
List endpoints support pagination through query parameters:page- Page number (default: 1, minimum: 1)per_page- Items per page (default: 10, minimum: 1, maximum: 100)
File Uploads
Endpoints that accept file uploads usemultipart/form-data encoding:
- Maximum file size: 50MB per request
- Supported for workflows and templates
- Files are temporarily stored and processed asynchronously
Tags
Many resources support tags for organization and filtering:- Tags are arrays of strings
- Used for runner selection in workflows
- Case-sensitive
- No special characters required
Getting Started
- Obtain an API token from your dashboard
- Include the token in your request headers
- Start making API calls to manage your resources
Need Help?
- Check the Authentication guide to get started
- Review Error Codes for troubleshooting
- Explore Concepts to understand core features
- Contact support at [email protected]