infery
← All models

Stable Diffusion with LoRAs

lora

Image generationby infery

Run Any Stable Diffusion model with customizable LoRA weights.

images

Details

Accepts
text + image

Pricing

Price
0.156 cr / second

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
etanumberThe eta value to be used for the image generation.
seed The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
lorasarray
promptrequiredstringThe prompt to use for generating the image. Be as descriptive as possible for best results.
sigmas Optionally override the sigmas to use for the denoising process. Only works with schedulers which support the `sigmas` argument in their `set_sigmas` method. Defaults to not overriding, in which case the scheduler automatically sets the sigmas based on the `num_inference_ste…
variant
clip_skipinteger Skips part of the image generation process, leading to slightly different results. This means the image renders faster, too.
schedulerScheduler / sampler to use for the image denoising process.
timesteps Optionally override the timesteps to use for the denoising process. Only works with schedulers which support the `timesteps` argument in their `set_timesteps` method. Defaults to not overriding, in which case the scheduler automatically sets the timesteps based on the `num_i…
unet_name
embeddingsarray The embeddings to use for the image generation. Only a single embedding is supported at the moment. The embeddings will be used to map the tokens in the prompt to the embedding weights.
image_size The size of the generated image. You can choose between some presets or custom height and width that **must be multiples of 8**.
ip_adapterarray The IP adapter to use for the image generation.
model_namerequiredstring
num_imagesinteger Number of images to generate in one request. Note that the higher the batch size, the longer it will take to generate the images.
tile_widthintegerThe size of the tiles to be used for the image generation.
controlnetsarray The control nets to use for the image generation. You can use any number of control nets and they will be applied to the image at the specified timesteps.
tile_heightintegerThe size of the tiles to be used for the image generation.
image_formatstringenum: jpeg, pngThe format of the generated image.
debug_latentsbooleanIf set to true, the latents will be saved for debugging.
guidance_scalenumber The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.
negative_promptstring The negative prompt to use.Use it to address details that you don't want in the image. This could be colors, objects, scenery and even the small details (e.g. moustache, blurry, low resolution).
prediction_typestringenum: v_prediction, epsilon The type of prediction to use for the image generation. The `epsilon` is the default.
prompt_weightingboolean If set to true, the prompt weighting syntax will be used. Additionally, this will lift the 77 token limit by averaging embeddings.
tile_stride_widthintegerThe stride of the tiles to be used for the image generation.
ic_light_image_url The URL of the IC Light model image to use for the image generation.
ic_light_model_url The URL of the IC Light model to use for the image generation.
image_encoder_path The path to the image encoder model to use for the image generation.
tile_stride_heightintegerThe stride of the tiles to be used for the image generation.
num_inference_stepsinteger Increasing the amount of steps tells Stable Diffusion that it should take more steps to generate your final result which can increase the amount of detail in your image.
controlnet_guess_modeboolean If set to true, the controlnet will be applied to only the conditional predictions.
enable_safety_checkerbooleanIf set to true, the safety checker will be enabled.
debug_per_pass_latentsbooleanIf set to true, the latents will be saved for debugging per pass.
rescale_betas_snr_zeroboolean Whether to set the rescale_betas_snr_zero option or not for the sampler
image_encoder_subfolder The subfolder of the image encoder model to use for the image generation.
image_encoder_weight_name The weight name of the image encoder model to use for the image generation.
ic_light_model_background_image_url The URL of the IC Light model background image to use for the image generation. Make sure to use a background compatible with the model.
image_urlURL of image to use for image to image/inpainting.
noise_strengthnumberThe amount of noise to add to noise image for image. Only used if the image_url is provided. 1.0 is complete noise and values near 0 are minimal noise.
mask_urlURL of black-and-white image to use as mask during inpainting.

Output

FieldTypeDescription
seedinteger Seed of the generated Image. It will be the same value of the one passed in the input or the randomly generated that was used in case none was passed.
imagesarrayThe generated image files info.
debug_latentsThe latents saved for debugging.
has_nsfw_conceptsarrayWhether the generated images contain NSFW concepts.
debug_per_pass_latentsThe latents saved for debugging per pass.