BinerAI · Models · Docs · Pricing

fofr / latent-consistency-model

Super-fast, 0.6s per image. LCM with img2img, large batching and canny controlnet

Run fofr/latent-consistency-model with the API

curl -s https://binerai.biner.dev/v1/predictions \
  -H "Authorization: Bearer $BINERAI_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model":"fofr/latent-consistency-model","input":{}}'

Then poll GET https://binerai.biner.dev/v1/predictions/:id or pass a webhook URL. Full reference: API docs.

Input

FieldTypeDescription
seedintegerRandom seed. Leave blank to randomize the seed
imagestringInput image for img2img
widthinteger, default 768Width of output image. Lower if out of memory
heightinteger, default 768Height of output image. Lower if out of memory
promptstring, default "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k"For multiple prompts, enter each on a new line.
num_imagesinteger, default 1Number of images per prompt
control_imagestringImage for controlnet conditioning
guidance_scalenumber, default 8Scale for classifier-free guidance
archive_outputsboolean, default falseOption to archive the output images
prompt_strengthnumber, default 0.8Prompt strength when using img2img. 1.0 corresponds to full destruction of information in image
sizing_strategystring, default "width/height"Decide how to resize images – use width/height, resize based on input image or control image
lcm_origin_stepsinteger, default 50
canny_low_thresholdnumber, default 100Canny low threshold
num_inference_stepsinteger, default 8Number of denoising steps. Recommend 1 to 8 steps.
canny_high_thresholdnumber, default 200Canny high threshold
control_guidance_endnumber, default 1Controlnet end
control_guidance_startnumber, default 0Controlnet start
disable_safety_checkerboolean, default falseDisable safety checker for generated images. This feature is only available through the API
controlnet_conditioning_scalenumber, default 2Controlnet conditioning scale

Examples

Example runs from Replicate.

  • Self-portrait oil painting, a beautiful cyborg with golden hair, 8k output
  • Self-portrait oil painting, a beautiful cyborg with golden hair, 8k Self-portrait oil painting, a beautiful cyborg with purple hair, 8k Self-portrait oil painting, a beautiful cyborg with ginger hair, 8k Self-portrait oil painting, a beautiful cyborg with green hair, 8k output output output output
  • detailed output output output output
  • A landscape painting output
  • Self-portrait oil painting, a beautiful cyborg with golden hair, 8k output

Description via replicate.