infery
← All models

Optimized Latent Consistency (SDv1.5)

lcm-sd15-i2i

Image editby infery

Produce high-quality images with minimal inference steps. Optimized for 512x512 input image size.

images

Details

Accepts
image

Pricing

Price
0.072 cr / second

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seed The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
promptrequiredstringThe prompt to use for generating the image. Be as descriptive as possible for best results.
mask_urlMask URL for compatibility with generic LCM processing.
strengthnumberThe strength of the image.
image_urlrequiredstringThe image to use as a base.
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.
num_imagesinteger The number of images to generate. The function will return a list of images with the same prompt and negative prompt but different seeds.
request_idstring An id bound to a request, can be used with response to identify the request itself.
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).
num_inference_stepsinteger The number of inference steps to use for generating the image. The more steps the better the image will be but it will also take longer to generate.
enable_safety_checksboolean If set to true, the resulting image will be checked whether it includes any potentially unsafe content. If it does, it will be replaced with a black image. Disabling safety checks requires account authorization; unauthorized requests are always checke…

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.
timingsobject
request_idstring An id bound to a request, can be used with response to identify the request itself.
num_inference_stepsinteger Number of inference steps used to generate the image. It will be the same value of the one passed in the input or the default one in case none was passed.
nsfw_content_detectedarray A list of booleans indicating whether the generated image contains any potentially unsafe content. If the safety check is disabled, this field will have a false for each generated image.