← 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
| Field | Type | Description |
|---|---|---|
| seed | — | The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time. |
| promptrequired | string | The prompt to use for generating the image. Be as descriptive as possible for best results. |
| mask_url | — | Mask URL for compatibility with generic LCM processing. |
| strength | number | The strength of the image. |
| image_urlrequired | string | The image to use as a base. |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
| num_images | integer | 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_id | string | An id bound to a request, can be used with response to identify the request itself. |
| 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). |
| num_inference_steps | integer | 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_checks | boolean | 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
| 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. |
| timings | object | |
| request_id | string | An id bound to a request, can be used with response to identify the request itself. |
| num_inference_steps | integer | 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_detected | array | 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. |