ComfyUI API Liberation - Use your own API keys directly with vendors. Features: - Direct API routing for 20+ providers (Google, OpenAI, Stability, etc.) - No ComfyUI account required - Local asset vault - images/videos stored locally - API key management UI in ComfyUI settings - Environment variable and config file support - Auto-detection of unmapped proxy endpoints - Graceful fallback when keys not configured
26 lines
1.0 KiB
Python
26 lines
1.0 KiB
Python
"""BytePlus (ByteDance) endpoint mappings."""
|
|
|
|
MAPPINGS = {
|
|
r'^/proxy/byteplus/api/v3/images/generations$': {
|
|
'provider': 'byteplus',
|
|
'url_template': 'https://api.byteplus.com/api/v3/images/generations',
|
|
'auth_fn': lambda key: {'Authorization': f'Bearer {key}'},
|
|
'request_transform': None,
|
|
'response_transform': None,
|
|
},
|
|
r'^/proxy/byteplus/api/v3/contents/generations/tasks$': {
|
|
'provider': 'byteplus',
|
|
'url_template': 'https://api.byteplus.com/api/v3/contents/generations/tasks',
|
|
'auth_fn': lambda key: {'Authorization': f'Bearer {key}'},
|
|
'request_transform': None,
|
|
'response_transform': None,
|
|
},
|
|
r'^/proxy/byteplus/api/v3/contents/generations/tasks/([^/]+)$': {
|
|
'provider': 'byteplus',
|
|
'url_template': 'https://api.byteplus.com/api/v3/contents/generations/tasks/{0}',
|
|
'auth_fn': lambda key: {'Authorization': f'Bearer {key}'},
|
|
'request_transform': None,
|
|
'response_transform': None,
|
|
},
|
|
}
|