🎉 Official SDKs are live: TypeScript · Python · PHP · Dart · Go
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" }
Your API Key used for request authorization
Image to be uploaded converted in base64 format
A (true/false) flag for cropping the image upon uploading
true
false
Base64 crop response
success
"image uploaded"
URL of the uploaded image
Request ID for the uploaded image
Was this page helpful?