🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now
lazymix+ v4 inpaint thumbnail

ModelsLab/Lazymix+ V4 Inpaint

lazymixv4-inpaint
Replace Object (Inpaint)Free for Premium UsersLLMs.txt
Endpoint:
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v6/images/inpaint

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"prompt": "wearing black bodycon dress",
"init_image": "https://assets.modelslab.com/generations/ae796f25-7c05-4415-8fc5-8bc1f7c06e12",
"mask_image": "https://assets.modelslab.com/generations/71177163-a6f0-4cec-a048-1644eb47a5c2",
"strength": "1.0",
"samples": "1",
"model_id": "lazymixv4-inpaint",
"steps": "31",
"scheduler": "DPMSolverMultistepScheduler",
"base64": "no",
"width": "512",
" height": "512",
"safety_checker": "no",
"guidance_scale": "5",
"Seed": "0",
"webhook": null,
"track_id": "0",
"negative_prompt": null,
"num_inference_steps": "30",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
PromptpromptText description of the image you want to generate
Imageinit_imageUpload the image you want a part to be replaced
Mask Imagemask_imageupload mask image for the part of the image you want to replace a part
strengthstrengthStrength controls how much the output follows the prompt vs. the original image. 1 = more prompt-driven, 0.1 = minimal change, more like the original
SamplessamplesNumber of images to generate (1-4)
Modelmodel_idModel to use for generation
stepsstepsNumber of inference steps
schedulerschedulerSampling scheduler
base64base64Get the response as a base64 string. Pass init_image and mask_image as base64 strings to get a base64 response. Default is "no".
widthwidthThe width of the generated images, If not provided, the width of init_image is used
height heightThe height of the generated images, If not provided, the height of init_image is used
safety_checkersafety_checkerA checker for NSFW images
guidance_scaleguidance_scaleScale for classifier-free guidance
SeedSeedSeed used to reproduce results
webhookwebhookURL to receive POST API call when complete
track_idtrack_idID for webhook identification
negative_promptnegative_promptThings you do not want in the generated image
num_inference_stepsnum_inference_stepsNumber of denoising steps