Skip to main content
POST
/
image_editing
/
img_mixer
Image mixer
curl --request POST \
  --url https://modelslab.com/api/v6/image_editing/img_mixer \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "prompt": "<string>",
  "init_image": [
    "<string>"
  ],
  "negative_prompt": "<string>",
  "width": 123,
  "height": 123,
  "steps": 25,
  "guidance_scale": 10.5,
  "seed": 123,
  "samples": 0,
  "webhook": "<string>",
  "track_id": 123
}
'
{
  "status": "success",
  "generationTime": 123,
  "id": 123,
  "output": [
    "<string>"
  ],
  "proxy_links": [
    "<string>"
  ],
  "meta": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt

Use this file to discover all available pages before exploring further.

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

Image Mixer

Image-Mixer endpoint result

Request

Make a POST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl
--request POST 'https://modelslab.com/api/v6/image_editing/img_mixer' \

Body

json
{    
    "key":"",    
    "seed":12345,    
    "init_image":[        
        "https://assets.modelslab.ai/generations/063c90e1-1740-410c-be84-23d379dcfee2",        
        "https://assets.modelslab.ai/generations/8205b5be-c212-4a3e-ba74-3c824b8acc25"    
        ],    
    "prompt":"rose man",    
    "negative_prompt":"A polluted city",    
    "width":800,    
    "height":600,    
    "guidance_scale":10,    
    "steps":41,    
    "samples":1
}

Body

application/json
key
string
required

Your API Key used for request authorization

prompt
string
required

Text prompt with description of the things you want in the image

init_image
string<uri>[]
required

An array of image URLs to mix

Maximum array length: 4
negative_prompt
string

Items you don't want in the image

width
integer

The width of the generated images, If not provided, the width of init_image is used

Required range: x <= 1024
height
integer

The height of the generated images, If not provided, the height of init_image is used

Required range: x <= 1024
steps
integer

Number of denoising steps

Required range: 1 <= x <= 50
guidance_scale
number

Scale for classifier-free guidance

Required range: 1 <= x <= 20
seed
integer

Seed used to reproduce results

samples
integer

Number of images to be returned in response

Required range: x <= 1
webhook
string<uri>

URL to receive POST API call when complete

track_id
integer

ID for webhook identification

Response

200 - application/json

Image mixer response

status
enum<string>
Available options:
success
generationTime
number

Time taken to generate the image in seconds

id
integer

Unique identifier for the generation request

output
string<uri>[]

Array of generated image URLs

Array of proxy image URLs

meta
object

Metadata about the generation process