Upload base64 image and crop
curl --request POST \
--url https://modelslab.com/api/v3/base64_crop \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"image": "<string>",
"crop": "true"
}
'{
"messege": "image uploaded",
"link": "<string>",
"request_id": 123
}General APIs
Base64 Image Crop
Lets you Upload an image and crop it, by passing the appropriate request parameters to the endpoint.
POST
/
base64_crop
Upload base64 image and crop
curl --request POST \
--url https://modelslab.com/api/v3/base64_crop \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"image": "<string>",
"crop": "true"
}
'{
"messege": "image uploaded",
"link": "<string>",
"request_id": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
Note that the maximum file size for upload is 5MB.
and Make sure you are passing the image in base64 format.
Request
Send aPOST request to below endpoint.
curl
--request POST 'https://modelslab.com/api/v3/base64_crop' \
Body
json
{
"key": "your_api_key",
"image": "data:image/png;base64,your_base_64_string",
"crop": "true"
}
Body
application/json
Was this page helpful?
⌘I

