prompthunt
/
kohya
- Public
- 51 runs
Run prompthunt/kohya 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 TOK man in preppy style, old money aesthetic, posh style, elite school stlye, luxurious style, gossip girl neo-prep style, ralph lauren style, country club style, ivy league style
|
Input prompt
|
negative_prompt |
string
|
plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry
|
Input Negative Prompt
|
num_inference_steps |
integer
|
25
Min: 1 Max: 500 |
Number of denoising steps
|
guidance_scale |
number
|
9
Min: 1 Max: 50 |
Scale for classifier-free guidance
|
inpaint_prompt |
string
|
closeup of TOK man, natural skin, skin moles, 37 y o caucasian
|
Input inpaint prompt
|
inpaint_negative_prompt |
string
|
plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry
|
Input inpaint negative prompt
|
inpaint_num_inference_steps |
integer
|
25
Min: 1 Max: 500 |
Number of denoising steps for inpainting
|
inpaint_guidance_scale |
number
|
9
Min: 1 Max: 50 |
Scale for classifier-free guidance for inpainting
|
inpaint_strength |
number
|
0.35
Max: 1 |
Prompt strength when using inpaint. 1.0 corresponds to full destruction of information in image
|
upscale_by |
number
|
1.5
Min: 1 Max: 4 |
Upscale by factor
|
upscale_prompt |
string
|
closeup of TOK man, natural skin, skin moles, 37 y o caucasian
|
Input inpaint prompt
|
upscale_negative_prompt |
string
|
plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry
|
Input inpaint negative prompt
|
upscale_num_inference_steps |
integer
|
25
Min: 1 Max: 500 |
Number of denoising steps for inpainting
|
upscale_guidance_scale |
number
|
9
Min: 1 Max: 50 |
Scale for classifier-free guidance for inpainting
|
upscale_strength |
number
|
0.35
Max: 1 |
Prompt strength when using inpaint. 1.0 corresponds to full destruction of information in image
|
width |
integer
|
768
|
Width of output image
|
height |
integer
|
1024
|
Height of output image
|
num_outputs |
integer
|
1
Min: 1 Max: 4 |
Number of images to output.
|
scheduler |
string
(enum)
|
K_EULER
Options: DDIM, DPMSolverMultistep, HeunDiscrete, KarrasDPM, K_EULER_ANCESTRAL, K_EULER, PNDM |
scheduler
|
prompt_strength |
number
|
0.8
Max: 1 |
Prompt strength when using img2img / inpaint. 1.0 corresponds to full destruction of information in image
|
mask_blur_amount |
number
|
8
|
Amount to blur the inpaint mask by
|
seed |
integer
|
1234
|
Random seed. Leave blank to randomize the seed
|
lora_scale |
number
|
0.4
Max: 1 |
LoRA additive scale. Only applicable on trained models.
|
pose_image |
string
|
pose_image
|
|
controlnet_conditioning_scale |
number
|
0.6
Max: 1 |
controlnet_conditioning_scale
|
weights |
string
|
https://replicate.delivery/pbxt/cv7B5U7T4G4kFN8eXIg7F8FRfbC54hIWyeizfNuH9lcBevtOC/trained_model.tar
|
Replicate LoRA weights to use. Leave blank to use the default weights.
|
{
"type": "object",
"title": "Input",
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": 1234,
"x-order": 21,
"description": "Random seed. Leave blank to randomize the seed"
},
"width": {
"type": "integer",
"title": "Width",
"default": 768,
"x-order": 15,
"description": "Width of output image"
},
"height": {
"type": "integer",
"title": "Height",
"default": 1024,
"x-order": 16,
"description": "Height of output image"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "a TOK man in preppy style, old money aesthetic, posh style, elite school stlye, luxurious style, gossip girl neo-prep style, ralph lauren style, country club style, ivy league style",
"x-order": 0,
"description": "Input prompt"
},
"weights": {
"type": "string",
"title": "Weights",
"default": "https://replicate.delivery/pbxt/cv7B5U7T4G4kFN8eXIg7F8FRfbC54hIWyeizfNuH9lcBevtOC/trained_model.tar",
"x-order": 25,
"description": "Replicate LoRA weights to use. Leave blank to use the default weights."
},
"scheduler": {
"enum": [
"DDIM",
"DPMSolverMultistep",
"HeunDiscrete",
"KarrasDPM",
"K_EULER_ANCESTRAL",
"K_EULER",
"PNDM"
],
"type": "string",
"title": "scheduler",
"description": "scheduler",
"default": "K_EULER",
"x-order": 18
},
"lora_scale": {
"type": "number",
"title": "Lora Scale",
"default": 0.4,
"maximum": 1,
"minimum": 0,
"x-order": 22,
"description": "LoRA additive scale. Only applicable on trained models."
},
"pose_image": {
"type": "string",
"title": "Pose Image",
"format": "uri",
"x-order": 23,
"description": "pose_image"
},
"upscale_by": {
"type": "number",
"title": "Upscale By",
"default": 1.5,
"maximum": 4,
"minimum": 1,
"x-order": 9,
"description": "Upscale by factor"
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 17,
"description": "Number of images to output."
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 9,
"maximum": 50,
"minimum": 1,
"x-order": 3,
"description": "Scale for classifier-free guidance"
},
"inpaint_prompt": {
"type": "string",
"title": "Inpaint Prompt",
"default": "closeup of TOK man, natural skin, skin moles, 37 y o caucasian",
"x-order": 4,
"description": "Input inpaint prompt"
},
"upscale_prompt": {
"type": "string",
"title": "Upscale Prompt",
"default": "closeup of TOK man, natural skin, skin moles, 37 y o caucasian",
"x-order": 10,
"description": "Input inpaint prompt"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
"x-order": 1,
"description": "Input Negative Prompt"
},
"prompt_strength": {
"type": "number",
"title": "Prompt Strength",
"default": 0.8,
"maximum": 1,
"minimum": 0,
"x-order": 19,
"description": "Prompt strength when using img2img / inpaint. 1.0 corresponds to full destruction of information in image"
},
"inpaint_strength": {
"type": "number",
"title": "Inpaint Strength",
"default": 0.35,
"maximum": 1,
"minimum": 0,
"x-order": 8,
"description": "Prompt strength when using inpaint. 1.0 corresponds to full destruction of information in image"
},
"mask_blur_amount": {
"type": "number",
"title": "Mask Blur Amount",
"default": 8,
"x-order": 20,
"description": "Amount to blur the inpaint mask by"
},
"upscale_strength": {
"type": "number",
"title": "Upscale Strength",
"default": 0.35,
"maximum": 1,
"minimum": 0,
"x-order": 14,
"description": "Prompt strength when using inpaint. 1.0 corresponds to full destruction of information in image"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 25,
"maximum": 500,
"minimum": 1,
"x-order": 2,
"description": "Number of denoising steps"
},
"inpaint_guidance_scale": {
"type": "number",
"title": "Inpaint Guidance Scale",
"default": 9,
"maximum": 50,
"minimum": 1,
"x-order": 7,
"description": "Scale for classifier-free guidance for inpainting"
},
"upscale_guidance_scale": {
"type": "number",
"title": "Upscale Guidance Scale",
"default": 9,
"maximum": 50,
"minimum": 1,
"x-order": 13,
"description": "Scale for classifier-free guidance for inpainting"
},
"inpaint_negative_prompt": {
"type": "string",
"title": "Inpaint Negative Prompt",
"default": "plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
"x-order": 5,
"description": "Input inpaint negative prompt"
},
"upscale_negative_prompt": {
"type": "string",
"title": "Upscale Negative Prompt",
"default": "plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
"x-order": 11,
"description": "Input inpaint negative prompt"
},
"inpaint_num_inference_steps": {
"type": "integer",
"title": "Inpaint Num Inference Steps",
"default": 25,
"maximum": 500,
"minimum": 1,
"x-order": 6,
"description": "Number of denoising steps for inpainting"
},
"upscale_num_inference_steps": {
"type": "integer",
"title": "Upscale Num Inference Steps",
"default": 25,
"maximum": 500,
"minimum": 1,
"x-order": 12,
"description": "Number of denoising steps for inpainting"
},
"controlnet_conditioning_scale": {
"type": "number",
"title": "Controlnet Conditioning Scale",
"default": 0.6,
"maximum": 1,
"minimum": 0,
"x-order": 24,
"description": "controlnet_conditioning_scale"
}
}
}
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"
}