Skip to main content
POST
Smart crop image

Authorizations

Authorization
string
header
required

Your Kynva API key (kyn_live_xxx or kyn_test_xxx; legacy rf_ keys remain valid)

Body

application/json
imageUrl
string<uri>
required

URL of the image to crop

width
number
required

Target width in pixels

Required range: 10 <= x <= 4096
height
number
required

Target height in pixels

Required range: 10 <= x <= 4096
strategy
enum<string>
default:attention

Crop strategy: attention (focus on faces/text), entropy (focus on detail), center

Available options:
attention,
entropy,
center

Response

200 - application/json

Image cropped successfully

Image cropped successfully

success
boolean
data
object