# Remove background Removes the background from the input image by isolating the main subject and returns a cutout with a transparent background. LLM friendly version # OpenAPI definition ```json { "openapi": "3.1.0", "paths": { "/v1/image/remove-background": { "post": { "description": "Removes the background from the input image by isolating the main subject and returns a cutout with a transparent background.", "operationId": "removeBackground", "parameters": [ { "name": "accept", "required": false, "in": "header", "description": "The Accept request HTTP header indicates the preferred returned image content type, expressed as a MIME type", "schema": { "type": "string", "enum": [ "image/webp", "image/png", "image/jpeg" ] } } ], "requestBody": { "required": true, "description": "Image file upload\n Size of an image uploaded must not exceed 30MB and resolution must not exceed 25 mega-pixels (5000*5000)\n ", "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "image_file": { "type": "string", "format": "binary" } } } } } }, "responses": { "201": { "description": "The image background was successfully removed." }, "400": { "description": "Bad request. May be missing required inputs or may have badly formatted inputs or options." }, "500": { "description": "Internal server error. Unable to remove background." } }, "security": [ { "X-API-Key": [] }, { "oauth2": [ "user" ] } ], "summary": "Remove background", "tags": [ "Images" ] } } }, "info": { "title": "Jasper API", "description": "Jasper API", "version": "1.0", "contact": {} }, "servers": [ { "url": "https://api.jasper.ai" } ], "components": { "securitySchemes": { "X-API-Key": { "type": "apiKey", "in": "header", "name": "X-API-Key", "description": "Workspace authentication using API key tokens in the X-API-Key header." }, "oauth2": { "type": "oauth2", "flows": { "authorizationCode": { "authorizationUrl": "https://api.jasper.ai/oauth2/authorize", "tokenUrl": "https://api.jasper.ai/oauth2/token", "refreshUrl": "https://api.jasper.ai/oauth2/token", "scopes": { "user:read": "Read user information", "user": "Read and write user information" } } }, "description": "User-level authentication using OAuth bearer tokens in the Authorization header." } } }, "x-readme": { "metrics-enabled": false } } ```