curl --request POST \
--url https://cloud.comfy.org/api/prompt \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"prompt": {},
"number": 123,
"front": true,
"extra_data": {},
"partial_execution_targets": [
"<string>"
]
}
'{
"prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": 123,
"node_errors": {}
}Submit a workflow to be executed by the backend. The workflow is a JSON object describing the nodes and their connections.
curl --request POST \
--url https://cloud.comfy.org/api/prompt \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"prompt": {},
"number": 123,
"front": true,
"extra_data": {},
"partial_execution_targets": [
"<string>"
]
}
'{
"prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": 123,
"node_errors": {}
}API key authentication. Generate an API key from your account settings at https://comfy.org/account. Pass the key in the X-API-Key header.
The workflow graph to execute
Priority number for the queue (lower numbers have higher priority). Note: Accepted for ComfyUI API compatibility but ignored in cloud. Cloud uses its own queue management with per-user ordering and fair scheduling.
If true, adds the prompt to the front of the queue. Note: Accepted for ComfyUI API compatibility but ignored in cloud. Cloud manages queue ordering internally based on job submission time and fair scheduling.
Extra data to be associated with the prompt
List of node names to execute