API Documentation

Implement no-bg into your workflow

Remove the background of any image(s) with 1 API call

Our API is a simple HTTP interface with various options you might be interested in.

POST  https://no-bg.com/api/v1.0.0/    Remove Image Background


Removes the background of a JPG/JPEG/PNG image.
 • File Size: up to 10 MB (full resolution), up to 5 MB (previews).
 • Image Source: File upload (binary or as base64 encoded string) or direct from URL.
 • Image Content: Any image with a foreground (e.g. humans, products, animals, vehicles, etc.).
 • Output Resolution: up to 0.23 megapixels (previews), up to 25 megapixels (full resolution).
 • Requires an API key to be supplied in the X-API-Key request header.

  • Parameters
  •  Content-Type: multipart/form-data Request Body  
  • 
        image
        - Description: Source image file (binary)
        - Type: string($binary)
        
        resolution
        - Description: Value of 0 will return a preview,
          value of 1 will return a full resolution image
        - Accepted Values: 0, 1
    	- Type: integer
    
    
  •  Required Header Request Header 
  •  
    	X-Api-Key
        - Description: Your API Key Here for authentication
        - Type: string
    	
    
  • Successful Response Status Code 200
  •  Content-Type: image/* Response Body  
  •  
    	(binary image data)
    	
  •  Headers Response Headers 
  •  
    	X-Credits-Price
        - Description: Amount of credits charged for this transaction
        - Type: float
    	
    	X-Credits-Source
        - Description: Deducted from monthly subscription credits 
        or pay-to-use credits
        - Possible Outputs: credits, subCredits, free
        - Type: string
    
    
  • Failed Response (Credits not deducted)Status Code 400
  •  Content-Type: application/jsonResponse Body  
  •  
    	errors
        - Description: Invalid Parameters / Server Not Online / Failed To Deduct Credits
        - Type: string
        
        errorCode
        - Description: Used for debugging
        - Type: string
        
        
  • Failed Response (Credits not deducted)Status Code 402
  •  Content-Type: application/jsonResponse Body  
  •  
    	errors
        - Description: Insufficient Credits
        - Type: string
        
        errorCode
        - Description: Used for debugging
        - Type: string
        
        
  • Failed Response (Credits not deducted)Status Code 403
  •  Content-Type: application/jsonResponse Body  
  •  
    	errors
        - Description: Authentication Failed / Invalid API Key
        - Type: string
        
        errorCode
        - Description: Used for debugging
        - Type: string
        
        
  • Failed Response (Credits not deducted)Status Code 429
  •  Content-Type: application/jsonResponse Body  
  •  
    	errors
        - Description: Exceeded File Size Limitations / Rate Limit
        - Type: string
        
        errorCode
        - Description: Used for debugging
        - Type: string
        
        

API Sample Codes

Get started integrating no-bg into your programs easily with our sample codes below

Rate Limitations

You can process up to 150 images per minute through our API. Depending on the input image resolution.

Input image (Examples) Megapixels Effective Rate Limit
625 x 400 1 MP 150 images per minute
1200 x 800 1 MP 150 images per minute
1600 x 1200 2 MP 150 / 2 = 75 images per minute
2500 x 1600 4 MP 150 / 4 = 38 images per minute
4000 x 2500 10 MP 150 / 10 = 15 images per minute
6250 x 4000 25 MP 150 / 25 = 6 images per minute

Need Custom Integration For Your Business Operations?

Discuss with our professionals about your business workflow and operations for them to have a better understanding on how your business can use no-bg to automate parts of your operations.

Talk To A Professional Now