enhance-replicate/cct
Run enhance-replicate/cct 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 |
---|---|---|---|
prompt |
string
|
a beautiful landscape with mountains and sunset
|
Text prompt for image generation
|
negative_prompt |
string
|
text, watermark, low quality, blurry, distorted, ugly, bad anatomy
|
Negative prompt to avoid certain elements in the image
|
width |
integer
|
1024
Min: 512 Max: 2048 |
Width of the generated image
|
height |
integer
|
1024
Min: 512 Max: 2048 |
Height of the generated image
|
steps |
integer
|
25
Min: 1 Max: 100 |
Number of denoising steps
|
cfg_scale |
number
|
8
Min: 1 Max: 20 |
CFG scale (how closely to follow the prompt)
|
workflow_json |
string
|
|
Advanced: Your ComfyUI workflow as JSON string or URL. Leave empty to use the simple prompt-based workflow.
|
input_file |
string
|
Advanced: Input image, video, tar or zip file
|
|
return_temp_files |
boolean
|
False
|
Advanced: Return any temporary files, such as preprocessed controlnet images. Useful for debugging.
|
output_format |
None
|
webp
|
Format of the output images
|
output_quality |
integer
|
95
Max: 100 |
Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.
|
randomise_seeds |
boolean
|
True
|
Advanced: Automatically randomise seeds (seed, noise_seed, rand_seed)
|
force_reset_cache |
boolean
|
False
|
Advanced: Force reset the ComfyUI cache before running the workflow. Useful for debugging.
|
{
"type": "object",
"title": "Input",
"properties": {
"steps": {
"type": "integer",
"title": "Steps",
"default": 25,
"maximum": 100,
"minimum": 1,
"x-order": 4,
"description": "Number of denoising steps"
},
"width": {
"type": "integer",
"title": "Width",
"default": 1024,
"maximum": 2048,
"minimum": 512,
"x-order": 2,
"description": "Width of the generated image"
},
"height": {
"type": "integer",
"title": "Height",
"default": 1024,
"maximum": 2048,
"minimum": 512,
"x-order": 3,
"description": "Height of the generated image"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "a beautiful landscape with mountains and sunset",
"x-order": 0,
"description": "Text prompt for image generation"
},
"cfg_scale": {
"type": "number",
"title": "Cfg Scale",
"default": 8,
"maximum": 20,
"minimum": 1,
"x-order": 5,
"description": "CFG scale (how closely to follow the prompt)"
},
"input_file": {
"type": "string",
"title": "Input File",
"format": "uri",
"x-order": 7,
"description": "Advanced: Input image, video, tar or zip file"
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Format of the output images",
"default": "webp",
"x-order": 9
},
"workflow_json": {
"type": "string",
"title": "Workflow Json",
"default": "",
"x-order": 6,
"description": "Advanced: Your ComfyUI workflow as JSON string or URL. Leave empty to use the simple prompt-based workflow."
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 95,
"maximum": 100,
"minimum": 0,
"x-order": 10,
"description": "Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality."
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "text, watermark, low quality, blurry, distorted, ugly, bad anatomy",
"x-order": 1,
"description": "Negative prompt to avoid certain elements in the image"
},
"randomise_seeds": {
"type": "boolean",
"title": "Randomise Seeds",
"default": true,
"x-order": 11,
"description": "Advanced: Automatically randomise seeds (seed, noise_seed, rand_seed)"
},
"force_reset_cache": {
"type": "boolean",
"title": "Force Reset Cache",
"default": false,
"x-order": 12,
"description": "Advanced: Force reset the ComfyUI cache before running the workflow. Useful for debugging."
},
"return_temp_files": {
"type": "boolean",
"title": "Return Temp Files",
"default": false,
"x-order": 8,
"description": "Advanced: 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.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}