prompthunt / sdxl

  • Public
  • 309 runs

Run prompthunt/sdxl 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
Photo of TOK
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
3

Min: 1

Max: 50

Scale for classifier-free guidance
inpaint_prompt
string
A photo of TOK
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
second_inpaint_num_inference_steps
integer
25

Min: 1

Max: 500

Number of denoising steps for inpainting
inpaint_guidance_scale
number
3

Min: 1

Max: 50

Scale for classifier-free guidance for inpainting
second_inpaint_guidance_scale
number
3

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
second_inpaint_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
seed
integer
Random seed. Leave blank to randomize the seed
lora_scale
number
0.7

Max: 1

LoRA additive scale. Only applicable on trained models.
pose_image
string
pose_image
controlnet_conditioning_scale
number
1

Max: 2

controlnet_conditioning_scale
mask_blur_amount
number
8
Amount to blur the inpaint mask by
crop_mask_padding
number
0.5

Max: 5

crop_mask_padding
weights
string
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"
}