prompthunt / kohya

  • Public
  • 55 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.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}