curl --request POST \
--url https://your-deployment-api-url.pod.flowscale.ai/api/v1/runs \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-KEY: <api-key>' \
--form custom_field_1=your_value_here \
--form custom_field_2=7.5 \
--form custom_field_3=20 \
--form custom_file_upload='@example-file' \
--form additionalProperties.4='@example-file'{
"status": "<string>",
"data": [
{
"run_id": "<string>",
"workflow_id": "<string>"
}
],
"errors": "<string>",
"meta": {}
}Executes a specified workflow by processing dynamic form data with field names and types determined by the deployed ComfyUI workflow. Each workflow defines its own unique input parameters based on the nodes it contains.
Important: The exact parameter names and types vary for each workflow_id and deployment URL. To discover the required parameters for your workflow:
The workflow is executed on an available ComfyUI instance within the cluster based on queue size limits.
curl --request POST \
--url https://your-deployment-api-url.pod.flowscale.ai/api/v1/runs \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-KEY: <api-key>' \
--form custom_field_1=your_value_here \
--form custom_field_2=7.5 \
--form custom_field_3=20 \
--form custom_file_upload='@example-file' \
--form additionalProperties.4='@example-file'{
"status": "<string>",
"data": [
{
"run_id": "<string>",
"workflow_id": "<string>"
}
],
"errors": "<string>",
"meta": {}
}⚠️ IMPORTANT: The field names shown below are placeholders. You must replace them with the actual parameter names required by your specific workflow.
To find your workflow's parameter names:
Note: Different workflows have completely different parameter names and types.
Replace 'custom_field_1' with your actual parameter name. Example: 'prompt', 'style', 'model_name'
"your_value_here"
Replace 'custom_field_2' with your numeric parameter name. Example: 'strength', 'cfg_scale', 'temperature'
7.5
Replace 'custom_field_3' with your integer parameter name. Example: 'steps', 'seed', 'width', 'height'
20
Replace 'custom_file_upload' with your file parameter name. Example: 'input_image', 'reference_image', 'mask'