Images

Uncrop

Extends the image in the specified directions and generates plausible content to fill the new areas.

post/v1/image/uncrop

Request

  • Base URL
    https://api.jasper.ai
  • URL
    https://api.jasper.ai/v1/image/uncrop
  • Auth
    • API key in header X-API-Key
    • or OAuth 2
      Authorization code: https://api.jasper.ai/oauth2/authorize
      Token URL: https://api.jasper.ai/oauth2/token scopes: user

Headers

accept'image/webp' | 'image/png' | 'image/jpeg'

The Accept request HTTP header indicates the preferred returned image content type, expressed as a MIME type

Request body multipart/form-data

image_filestring binary

The original image to process should be a JPG, PNG or WebP, with a maximum resolution of 10 megapixels and a max file size of 30 Mb.

extend_leftnumber

Number of pixels to extend to the left

extend_rightnumber

Number of pixels to extend to the right

extend_upnumber

Number of pixels to extend upward

extend_downnumber

Number of pixels to extend downward

Response

The image was successfully uncropped.

Changes

No recorded changes to this operation across all 2 revisions of this API.