Request
Send a POST
request to below endpoint.
--request POST 'https://modelslab.com/api/v3/base64_crop' \
Make sure you are passing the image in base64 format.
Body
{
"key": "your_api_key",
"image": "data:image/png;base64,your_base_64_string",
"crop": "true"
}
Your API Key used for request authorization
Image to be uploaded converted in base64 format
crop
enum<string>
default:true
required
A (true/false) flag for cropping the image upon uploading
Available options:
true
,
false
Available options:
success
URL of the uploaded image
Request ID for the uploaded image