← 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
| Field | Type | Description |
|---|---|---|
| eta | number | The 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. |
| loras | array | |
| promptrequired | string | The 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_skip | integer | Skips part of the image generation process, leading to slightly different results. This means the image renders faster, too. |
| scheduler | — | Scheduler / 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 | — | |
| embeddings | array | 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_adapter | array | The IP adapter to use for the image generation. |
| model_namerequired | string | |
| num_images | integer | 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_width | integer | The size of the tiles to be used for the image generation. |
| controlnets | array | 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_height | integer | The size of the tiles to be used for the image generation. |
| image_format | stringenum: jpeg, png | The format of the generated image. |
| debug_latents | boolean | If set to true, the latents will be saved for debugging. |
| guidance_scale | number | 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_prompt | string | 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_type | stringenum: v_prediction, epsilon | The type of prediction to use for the image generation. The `epsilon` is the default. |
| prompt_weighting | boolean | If set to true, the prompt weighting syntax will be used. Additionally, this will lift the 77 token limit by averaging embeddings. |
| tile_stride_width | integer | The 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_height | integer | The stride of the tiles to be used for the image generation. |
| num_inference_steps | integer | 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_mode | boolean | If set to true, the controlnet will be applied to only the conditional predictions. |
| enable_safety_checker | boolean | If set to true, the safety checker will be enabled. |
| debug_per_pass_latents | boolean | If set to true, the latents will be saved for debugging per pass. |
| rescale_betas_snr_zero | boolean | 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_url | — | URL of image to use for image to image/inpainting. |
| noise_strength | number | The 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_url | — | URL of black-and-white image to use as mask during inpainting. |
Output
| Field | Type | Description |
|---|---|---|
| seed | integer | 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. |
| images | array | The generated image files info. |
| debug_latents | — | The latents saved for debugging. |
| has_nsfw_concepts | array | Whether the generated images contain NSFW concepts. |
| debug_per_pass_latents | — | The latents saved for debugging per pass. |