# Comfyui (*comfyui*) ### Available Operations * [get_auth_response_request_id_](#get_auth_response_request_id_) - Get an API Key with code * [post_workflow](#post_workflow) - Upload workflow from ComfyUI * [get_workflow_version_version_id_](#get_workflow_version_version_id_) - Get comfyui workflow * [get_workflow_id_](#get_workflow_id_) - Get comfyui workflow * [get_deployment_id_inputs](#get_deployment_id_inputs) - Get comfyui workflow inputs definition * [get_deployment](#get_deployment) - Get all deployed workflows ## get_auth_response_request_id_ This endpoints is specifically built for ComfyUI workflow upload. ### Example Usage ```python import comfydeploy s = comfydeploy.ComfyDeploy( bearer_auth="", ) res = s.comfyui.get_auth_response_request_id_(request_id='') if res.two_hundred_application_json_object is not None: # handle response pass ``` ### Parameters | Parameter | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `request_id` | *str* | :heavy_check_mark: | N/A | ### Response **[operations.GetAuthResponseRequestIDResponse](../../models/operations/getauthresponserequestidresponse.md)** ### Errors | Error Object | Status Code | Content Type | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | | errors.GetAuthResponseRequestIDResponseBody | 500 | application/json | | errors.SDKError | 4xx-5xx | */* | ## post_workflow This endpoints is specifically built for ComfyUI workflow upload. ### Example Usage ```python import comfydeploy from comfydeploy.models import operations s = comfydeploy.ComfyDeploy( bearer_auth="", ) res = s.comfyui.post_workflow(request=operations.PostWorkflowRequestBody( workflow_api={ 'key': operations.WorkflowAPI( inputs={ 'key': '', }, ), }, snapshot=operations.Snapshot( comfyui='', git_custom_nodes={ 'key': operations.GitCustomNodes( hash='', disabled=False, ), }, file_custom_nodes=[ '', ], ), )) if res.object is not None: # handle response pass ``` ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | `request` | [operations.PostWorkflowRequestBody](../../models/operations/postworkflowrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | ### Response **[operations.PostWorkflowResponse](../../models/operations/postworkflowresponse.md)** ### Errors | Error Object | Status Code | Content Type | | ------------------------------- | ------------------------------- | ------------------------------- | | errors.PostWorkflowResponseBody | 500 | application/json | | errors.SDKError | 4xx-5xx | */* | ## get_workflow_version_version_id_ Use this to retrieve comfyui workflow by id ### Example Usage ```python import comfydeploy s = comfydeploy.ComfyDeploy( bearer_auth="", ) res = s.comfyui.get_workflow_version_version_id_(version_id='') if res.object is not None: # handle response pass ``` ### Parameters | Parameter | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `version_id` | *str* | :heavy_check_mark: | N/A | ### Response **[operations.GetWorkflowVersionVersionIDResponse](../../models/operations/getworkflowversionversionidresponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | | errors.GetWorkflowVersionVersionIDResponseBody | 500 | application/json | | errors.SDKError | 4xx-5xx | */* | ## get_workflow_id_ Use this to retrieve comfyui workflow by id ### Example Usage ```python import comfydeploy s = comfydeploy.ComfyDeploy( bearer_auth="", ) res = s.comfyui.get_workflow_id_(id='') if res.object is not None: # handle response pass ``` ### Parameters | Parameter | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `id` | *str* | :heavy_check_mark: | N/A | ### Response **[operations.GetWorkflowIDResponse](../../models/operations/getworkflowidresponse.md)** ### Errors | Error Object | Status Code | Content Type | | -------------------------------- | -------------------------------- | -------------------------------- | | errors.GetWorkflowIDResponseBody | 500 | application/json | | errors.SDKError | 4xx-5xx | */* | ## get_deployment_id_inputs Use this to retrieve comfyui workflow inputs definition by id ### Example Usage ```python import comfydeploy s = comfydeploy.ComfyDeploy( bearer_auth="", ) res = s.comfyui.get_deployment_id_inputs(id='') if res.response_bodies is not None: # handle response pass ``` ### Parameters | Parameter | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `id` | *str* | :heavy_check_mark: | N/A | ### Response **[operations.GetDeploymentIDInputsResponse](../../models/operations/getdeploymentidinputsresponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | errors.GetDeploymentIDInputsResponseBody | 500 | application/json | | errors.SDKError | 4xx-5xx | */* | ## get_deployment Get all deployed workflows ### Example Usage ```python import comfydeploy from comfydeploy.models import operations s = comfydeploy.ComfyDeploy( bearer_auth="", ) res = s.comfyui.get_deployment(environment=operations.Environment.STAGING) if res.response_bodies is not None: # handle response pass ``` ### Parameters | Parameter | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | `environment` | [Optional[operations.Environment]](../../models/operations/environment.md) | :heavy_minus_sign: | N/A | ### Response **[operations.GetDeploymentResponse](../../models/operations/getdeploymentresponse.md)** ### Errors | Error Object | Status Code | Content Type | | -------------------------------- | -------------------------------- | -------------------------------- | | errors.GetDeploymentResponseBody | 500 | application/json | | errors.SDKError | 4xx-5xx | */* |