https://api.imageclaw.nethttps://api.imageclaw.net/healthhttps://api.imageclaw.net/crophttps://api.imageclaw.net/crop/uploadhttps://api.imageclaw.net/docsurl must be a reachable image URL.width and height must be integers in [1, 4096].curl -sS -X POST "https://api.imageclaw.net/crop" \
-H "content-type: application/json" \
-d '{
"url": "https://picsum.photos/800/600",
"width": 256,
"height": 256
}'
cropped_urloriginal_sizeface_detectedcurl -sS -X POST "https://api.imageclaw.net/crop/upload" \
-F "file=@/absolute/path/to/photo.jpg" \
-F "width=256" \
-F "height=256"
cropped_urloriginal_sizeface_detected400: invalid image source or decode failure422: validation failure (invalid URL, invalid width/height)500: service or configuration failureWhen failure occurs:
detail.400/422.500 or network timeout.{
"cropped_url": "https://crop.imagebee.net/crops/1772761350_b8050bd6ec26.jpg",
"original_size": [800, 600],
"face_detected": false
}
{
"detail": "Not an image: content-type is application/json"
}
共 1 个版本