cURL
curl --request POST \ --url https://modelslab.com/api/v3/base64_crop \ --header 'Content-Type: application/json' \ --data '{ "key": "<string>", "image": "<string>", "crop": "true" }'
{ "status": "success", "messege": "image uploaded", "link": "<string>", "request_id": 123 }
lets you upload an image in base64 and crop it.
POST
--request POST 'https://modelslab.com/api/v3/base64_crop' \
{ "key": "your_api_key", "image": "data:image/png;base64,your_base_64_string", "crop": "true" }
true
false
success
Was this page helpful?