Magic-Mix endpoint result
Make sure you add your s3 details for image_editing server, so you can receive image generated in your bucket. Images generated without s3 details being added will be delete after 24hours

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/v1/enterprise/image_editing/magic_mix' \

Body Attributes

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 to be generated
negative_prompt
string
Items you don’t want in the image
image
string
required
URL of the image you want magic mix
width
integer
Max Width. Default: 768
height
integer
Max Height. Default: 768
kmin
number
Optional. Minimum k value. Default: 0.3
kmax
number
Optional. Maximum k value. Default: 0.5
mix_factor
number
Optional. Mix factor for the task. Default: 0.5
steps
integer
Number of denoising steps (minimum: 1; maximum: 50). Default: 20
samples
integer
Number of images to be returned in response. The maximum value is 1.
seed
integer
Seed is used to reproduce results. Same seed will give you same image again. Pass null for random seed.
webhook
string
Set an URL to get a POST API call once the image generation is complete.
track_id
string
This ID is returned in the response to the webhook API call. This will be used to identify the webhook request.

Body

json
{    
  "key":"",    
  "prompt":"Bed",    
  "height":768,    
  "width":768,    
  "image":"https://user-images.githubusercontent.com/59410571/209578593-141467c7-d831-4792-8b9a-b17dc5e47816.jpg",    
  "kmax":0.5,    
  "kmin":0.3,    
  "mix_factor":0.5,    
  "samples":1,    
  "negative_prompt":"low quality",    
  "seed":1829183163,    
  "steps":20,    
  "webhook": null,    
  "track_id": null 
}