For the complete documentation index, see llms.txt. This page is also available as Markdown.

Output Size

The Image Editing API gives you control over the size of the result image.

For this, set the parameter outputSize with one of the following values:

  • auto (default)

    • if templateId is set, keeps the size of the template

    • if templateId isn't set, behaves like originalImage

  • {width}x{height} sets a custom size (example: 1920x1080)

  • originalImage keeps the dimensions of the input image

  • croppedSubject uses the dimensions of the cutout subject

Last updated

Was this helpful?