ModelsLab/Lazymix+ V4 Inpaint
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 Name | Parameter | Technical Description |
|---|---|---|
| Prompt | prompt | Text description of the image you want to generate |
| Image | init_image | Upload the image you want a part to be replaced |
| Mask Image | mask_image | upload mask image for the part of the image you want to replace a part |
| strength | strength | Strength controls how much the output follows the prompt vs. the original image. 1 = more prompt-driven, 0.1 = minimal change, more like the original |
| Samples | samples | Number of images to generate (1-4) |
| Model | model_id | Model to use for generation |
| steps | steps | Number of inference steps |
| scheduler | scheduler | Sampling scheduler |
| base64 | base64 | Get the response as a base64 string. Pass init_image and mask_image as base64 strings to get a base64 response. Default is "no". |
| width | width | The width of the generated images, If not provided, the width of init_image is used |
| height | height | The height of the generated images, If not provided, the height of init_image is used |
| safety_checker | safety_checker | A checker for NSFW images |
| guidance_scale | guidance_scale | Scale for classifier-free guidance |
| Seed | Seed | Seed used to reproduce results |
| webhook | webhook | URL to receive POST API call when complete |
| track_id | track_id | ID for webhook identification |
| negative_prompt | negative_prompt | Things you do not want in the generated image |
| num_inference_steps | num_inference_steps | Number of denoising steps |