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
}Train Model
Upload Base64 Image and Crop
lets you upload an image in base64 and crop it.
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.
Request
Send aPOST request to below endpoint.
curl
--request POST 'https://modelslab.com/api/v3/base64_crop' \
Make sure you are passing the image in base64 format.
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

