{"openapi":"3.2.0","info":{"title":"Background Removal API","description":"Automatically and quickly remove image background. See: https://api4.ai/apis/bg-removal","version":"1.0.0"},"servers":[{"url":"https://hdmdc.jojapi.net"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/results":{"post":{"operationId":"post_results","summary":"Remove background","description":"Remove the background. Return the image with a transparent background or a binary mask, depending on the \"mode\".","parameters":[{"name":"mode","in":"query","description":"Query parameter \"mode\" is optional and may be used to choose the format of the output image: foreground image (fg-image) or foreground mask (fg-mask). By default the service uses fg-image.","required":false,"schema":{"type":"string","title":"Mode","example":"fg-image"}}],"requestBody":{"required":false,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"image":{"type":"string","title":"Binary image","description":"Binary file representing an image. If you would prefer to provide a URL to the image instead, use the \"URL\" form parameter."},"url":{"type":"string","title":"URL to image","example":"https://static.api4.ai/rapidapi/background-removal/shoes.jpg","description":"URL to a public image. If you would like to pass an image as a binary file, then use the \"image\" form parameter instead."},"image-bg":{"type":"string","title":"Background binary image (optional)","description":"If the background image is passed then its content will be blended below foreground object (aligned by the center). The final output image will have the same size as the main input image (not background image!). If you would prefer to provide a URL to the image instead, use the \"URL to background image\" form parameter."},"url-bg":{"type":"string","title":"URL to background image (optional)","example":"https://static.api4.ai/rapidapi/background-removal/bg.png","description":"If the background image is passed then its content will be blended below foreground object (aligned by the center). The final output image will have the same size as the main input image (not background image!). If you would like to pass an image or document as a binary file, then use the \"Background binary image\" form parameter instead."}}}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JoJAPI-Key","description":"Your JoJ API key."}}}}