Releases: SaladTechnologies/comfyui-api
Releases · SaladTechnologies/comfyui-api
1.17.1 security fixes
1.17.0 download improvements
1.16.1 bug fixes
- Incorporates several bug fixes, along with test coverage
- Improves debugging for custom workflows. fixes #120
- Upgrades default ComfyUI to 0.7.0
1.16.0 - add per-request authentication for download endpoint
Summary
Extends the download endpoint to accept optional per-request authentication for downloading gated or protected models. This enables downloading from sources that require authentication without needing server-wide environment variable configuration.
Auth Types Supported
- Bearer: Token-based authentication (e.g., Hugging Face)
- Basic: Username/password authentication
- Header: Custom HTTP header (e.g.,
X-Api-Key) - Query: Query parameter authentication (e.g., Azure SAS tokens)
- S3: Per-request AWS credentials with optional custom endpoint/region
Changes
- Added
DownloadAuthdiscriminated union schema for type-safe auth handling - Added
DownloadOptionsschema with optional auth field - Updated
StorageProviderinterface to accept download options HTTPStorageProvider: Supports bearer, basic, header, and query authS3StorageProvider: Supports per-request AWS credentialsRemoteStorageManager: Bypasses cache for authenticated requests- Download endpoint accepts optional
authfield in request body
Security Considerations
- Auth credentials are never logged - only auth type and presence are logged
- Per-request S3 clients are not cached to ensure credential isolation
- Cache is bypassed for authenticated requests to prevent serving cached files to different credentials
Example Usage
{
"url": "https://huggingface.co/gated-model/model.safetensors",
"model_type": "checkpoints",
"auth": {
"type": "bearer",
"token": "hf_xxx"
}
}Backward Compatibility
The auth field is optional, so existing requests continue to work unchanged.
1.15.0 - Download model endpoint
1.14.0 - Add support for /interrupt endpoint
- Forwards requests to ComfyUI's /interrupt endpoint, mapping between api ids and comfy ids.
- Updates default ComfyUI to 0.3.75
1.13.5 - Add `progress_state` event
1.13.4: Add proxy support with EnvHttpProxyAgent
- When
HTTP_PROXY/HTTPS_PROXYare set, outbound HTTP/HTTPS requests will go through the proxy unless the target matchesNO_PROXY. NO_PROXYentries such aslocalhost,.svc,.svc.cluster.local, and169.254.169.254will bypass the proxy to avoid breaking internal access.- If both lowercase and uppercase proxy environment variables are set, lowercase take precedence and uppercase are ignored. To avoid ambiguity, set only one set of variables.
1.13.3 - More Webhook Fixes
1.13.2 - Fix Critical Bug in Webhooks
- includes @jendruschR's bug fix to the new webhooks