Skip to main content

Image Mixer Endpoint


This endpoint generates image by mixing multiple images.

Together with the image you can add your description of the desired result by passing prompt and negative prompt.


--request POST '' \

Make a POST request to endpoint and pass the required parameters as a request body to the endpoint.

Body Attributes

keyYour API Key used for request authorization
promptText prompt with description of the things you want in the image to be generated
negative_promptItems you don't want in the image
init_imagecomma separated image urls of images to mix
widthMax Height: Width: 1024x1024
heightMax Height: Width: 1024x1024
stepsNumber of denoising steps (minimum: 1; maximum: 50)
guidance_scaleScale for classifier-free guidance (minimum: 1; maximum: 20)
init_image_weightsweigth of the images being passed separated by comma
seedSeed is used to reproduce results, same seed will give you same image in return again. Pass null for a random number.
samplesNumber of images to be returned in response. The maximum value is 4.
guidance_scaleScale for classifier-free guidance (minimum: 1; maximum: 20)
webhookSet an URL to get a POST API call once the image generation is complete.
track_idThis ID is returned in the response to the webhook API call. This will be used to identify the webhook request.



"prompt":"rose man",
"negative_prompt":"A polluted city",


var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"key": "",
"prompt":"rose man",
"negative_prompt":"A polluted city",
"webhook": null,
"track_id": null

var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'

fetch("", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));


Example Response

"status": "success",
"generationTime": 19.260561227798462,
"id": 349,
"output": [
"meta": {
"H": 600,
"W": 800,
"file_prefix": "8aa6cb76-0c62-4ebc-a29a-3a3e3727bc88",
"guidance_scale": 10,
"init_image": ",",
"init_image_weights": "0.5,0.7",
"n_samples": 1,
"negative_prompt": "A polluted city",
"outdir": "out",
"prompt": "rose man",
"seed": 12345,
"steps": 100