Crop.photo Development
  1. Crop.photo API
Crop.photo Development
  • Crop.photo API
    • Introduction
    • Authentication
    • FAQs
    • Interactive API Testing
    • AI Lifestyle Crop
      POST
    • Auto Resize & Align
      POST
    • Body Aware Crop
      POST
    • Unrecognizable Crop
      POST
    • Remove Background
      POST
    • Create Banner Job
      POST
    • Banners Job Status
      POST
  1. Crop.photo API

Remove Background

Testing
Localhost
http://localhost:8081/v1
Localhost
http://localhost:8081/v1
POST
/crop/remove-background
The Remove Background API empowers you to effortlessly eliminate backgrounds from your images, delivering PNG files with transparent backgrounds. Whether you're enhancing product images for your e-commerce platform, refining portraits for professional use, or creating visually appealing designs, this API streamlines the process of background removal with precision and ease.
Example 1: Below given example removes the background from the image and streams it back to you.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "image_url": "https://acme.s3.aws.com/image.png",
    "response_type": "stream"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8081/v1/crop/remove-background' \
--header 'Content-Type: application/json' \
--data-raw '{
    "image_url": "https://acme.s3.aws.com/image.png",
    "response_type": "stream"
}'

Responses

🟢200Success
application/octet-stream
Body

🟠401Unauthorized
🟠400Invalid Input | Crop.photo
🟢200Image Crop Response JSON
Modified at 2024-09-26 18:59:41
Previous
Unrecognizable Crop
Next
Create Banner Job
Built with