prompthunt
/
cog-comfyui
- Public
- 59 runs
Run prompthunt/cog-comfyui with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
workflow_jsons |
string
|
|
Your ComfyUI workflow as JSON. You must use the API version of your workflow. Get it from ComfyUI using ‘Save (API format)’. Instructions here: https://github.com/fofr/cog-comfyui
|
input_file |
string
|
Input image, tar or zip file. Read guidance on workflows and input files here: https://github.com/fofr/cog-comfyui. Alternatively, you can replace inputs with URLs in your JSON workflow and the model will download them.
|
|
return_temp_files |
boolean
|
False
|
Return any temporary files, such as preprocessed controlnet images. Useful for debugging.
|
randomise_seeds |
boolean
|
True
|
Automatically randomise seeds (seed, noise_seed, rand_seed)
|
cf_account_id |
string
|
|
Cloudflare Account ID
|
cf_api_key |
string
|
|
Cloudflare API Key
|
{
"type": "object",
"title": "Input",
"properties": {
"cf_api_key": {
"type": "string",
"title": "Cf Api Key",
"default": "",
"x-order": 5,
"description": "Cloudflare API Key"
},
"input_file": {
"type": "string",
"title": "Input File",
"format": "uri",
"x-order": 1,
"description": "Input image, tar or zip file. Read guidance on workflows and input files here: https://github.com/fofr/cog-comfyui. Alternatively, you can replace inputs with URLs in your JSON workflow and the model will download them."
},
"cf_account_id": {
"type": "string",
"title": "Cf Account Id",
"default": "",
"x-order": 4,
"description": "Cloudflare Account ID"
},
"workflow_jsons": {
"type": "string",
"title": "Workflow Jsons",
"default": "",
"x-order": 0,
"description": "Your ComfyUI workflow as JSON. You must use the API version of your workflow. Get it from ComfyUI using \u2018Save (API format)\u2019. Instructions here: https://github.com/fofr/cog-comfyui"
},
"randomise_seeds": {
"type": "boolean",
"title": "Randomise Seeds",
"default": true,
"x-order": 3,
"description": "Automatically randomise seeds (seed, noise_seed, rand_seed)"
},
"return_temp_files": {
"type": "boolean",
"title": "Return Temp Files",
"default": false,
"x-order": 2,
"description": "Return any temporary files, such as preprocessed controlnet images. Useful for debugging."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string"
},
"title": "Output",
"x-cog-array-type": "iterator"
}