curl -X POST \
  <BASE_URL>/smart-crop-video \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{
    "width": 300,
    "height": 200,
    "video_url": "https://example.com/video.mp4"
}'

{
	"cropped_video_url": "https://example.com/cropped-video.mp4"
}

Body

This endpoint will crop videos intuitively and return the cropped video.

video_url
string

This is the video url of the video you want to crop.

ratio
Integer

This the the ratio of the cropped video. For example, 16:9, 4:3, 1:1, etc.

Response

cropped_video_url
string

This is the url of the cropped video.

curl -X POST \
  <BASE_URL>/smart-crop-video \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{
    "width": 300,
    "height": 200,
    "video_url": "https://example.com/video.mp4"
}'

{
	"cropped_video_url": "https://example.com/cropped-video.mp4"
}