> For the complete documentation index, see [llms.txt](https://docs.photoroom.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.photoroom.com/image-editing-api-plus-plan/perspective-correction.md).

# Perspective Correction

{% embed url="<https://www.youtube.com/watch?v=DjhbF_n7N_o>" %}

## Overview

The Image Editing API allow you to automatically correct the perspective of products that have a rectangular shape.

Perspective correction doesn't involve generative AI: product fidelity is built-in, hallucinations are impossible by design.

## How do I use the feature?

Perspective Correction is only available for Enterprise plans.

If you're interested to use the feature, please [contact our team to book a demo](https://www.photoroom.com/contact-sales?utm_source=apidocumentation\&utm_medium=enterprisegated).

<a href="https://www.photoroom.com/contact-sales?utm_source=apidocumentation&#x26;utm_medium=enterprisegated" class="button primary">Book a demo</a>&#x20;

## Examples

### Trading Cards

<table data-header-hidden><thead><tr><th align="center" valign="middle"></th><th align="center" valign="middle"></th><th align="center" valign="middle"></th></tr></thead><tbody><tr><td align="center" valign="middle"><em>(original image)</em></td><td align="center" valign="middle"><em>(perspective correction + white background + AI Shadow + AI Relight)</em></td><td align="center" valign="middle"><em>(perspective correction + blurred background + AI Relight)</em></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FTFLuNHzlpP9FhM0gIEGp%2FUnknown.jpg?alt=media&amp;token=79b060dd-6cb9-45b7-a52c-5845a149b69c" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FOVsR0GKCITc4DWw3STCz%2Ftrading-card-sample-01-perspective-corrected-3.jpg?alt=media&amp;token=937c5ea4-b091-466a-95ae-37bd6d7caf11" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2F2maUpPr0xsFNSDwV6lUf%2Ftrading-card-sample-01-perspective-corrected-2.jpg?alt=media&amp;token=e718233f-1595-4bb6-92d4-017a6a2de78e" alt=""></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2F5WOIYcdTN40znZgDIzN5%2FUnknown-5.jpg?alt=media&amp;token=fee4e9c9-26c3-4191-ad18-8d6a108b82d0" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2Fdl9rn7HLKTNPs1PNsmru%2Ftrading-card-sample-07-perspective-corrected-2.jpg?alt=media&amp;token=e0d36999-210e-417d-a8a7-7ef4ff4bdfbd" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2F4I4yWfdF9ehI8pxRxEZj%2Ftrading-card-sample-07-perspective-corrected.jpg?alt=media&amp;token=d5121dbf-06c2-4c6d-a490-c3fd0f4f8b57" alt=""></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FwzdvNtJ5DZ7FEKOdjcMJ%2FUnknown-3.jpg?alt=media&amp;token=e0c04e5b-ae6c-472e-91d1-e99eae7e0110" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FAwepwyZmKdUoliXChCZF%2FUnknown-7.jpg?alt=media&amp;token=25d78957-fb5a-4d7a-889e-03f3f9702988" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FN07ILNtL5FBqY5kYBoqw%2FUnknown-9.jpg?alt=media&amp;token=7bcacefa-0dd7-4d3d-a4bf-716e7e4186e6" alt=""></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FznqYi5vOkZ2g3C5xU1Zc%2FUnknown-4.jpg?alt=media&amp;token=22070992-3713-4f63-a5bc-db92ebfd3454" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FAi98leGUAwtIWgSH4MTE%2Ftrading-card-sample-06-perspective-corrected.jpg?alt=media&amp;token=5ba4443a-9d77-4cfd-94d0-25fc8c22d515" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2F1YQJfOwooFLFlQBVRH9h%2Ftrading-card-sample-06-perspective-corrected-2.jpg?alt=media&amp;token=c5a77881-e741-4944-9a3c-707fdbf25707" alt=""></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FDfewwOsrZdNon8jx3G8O%2FUnknown-6.jpg?alt=media&amp;token=3c20b880-f1e9-4512-be8b-b323d496636a" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2Fb21vOuwTWhcmtFwFU3BE%2Ftrading-card-sample-08-perspective-corrected-2.jpg?alt=media&amp;token=d592cbd7-f63e-4eac-b6a0-e6725e2350ad" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2F3KoYFsnThgWdzvdcKKqo%2Ftrading-card-sample-08-perspective-corrected.jpg?alt=media&amp;token=a92d28c4-c64b-461a-98ac-06e326b425f4" alt=""></td></tr></tbody></table>

### Books, Comics

<table data-header-hidden><thead><tr><th align="center" valign="middle"></th><th align="center" valign="middle"></th><th align="center" valign="middle"></th></tr></thead><tbody><tr><td align="center" valign="middle"><em>(original image)</em></td><td align="center" valign="middle"><em>(perspective correction + white background + AI Shadow + AI Relight)</em></td><td align="center" valign="middle"><em>(perspective correction + blurred background + AI Relight)</em></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FNahyoSIsXa7tiAa0xpH1%2Fm13754025227_1.jpg?alt=media&amp;token=40ba3e3e-9200-4234-a9af-28e7e443e83d" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2F10p2NZel2TnG8idAgV7o%2Fm13754025227_1-perspective-corrected-2.jpg?alt=media&amp;token=e71bd128-8e67-47a2-8f83-b0471d516eba" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FBPwCuMPkhLClt0UihHlB%2Fm13754025227_1-perspective-corrected.jpg?alt=media&amp;token=a1364f4a-07da-4eb5-8347-884a40da2cb3" alt=""></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FJNSJLtbdh1T5khkKnHul%2Fs-l1600.jpg?alt=media&amp;token=c8bed394-e51b-43b0-95a3-6c5990da7f55" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FMJUO1gcmQa8jlNv4Tdwj%2Fs-l1600-perspective-corrected-2.jpg?alt=media&amp;token=77f2f9da-19ad-45ba-ac00-6c7b90266234" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2F7rGm1rbpmaYtwlaKQBu5%2Fs-l1600-perspective-corrected.jpg?alt=media&amp;token=c4e3827f-bee6-4048-a263-21bbf885becb" alt=""></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FXGo50b7ltEi0A6LP8eEd%2Fm98401283144_1.jpg?alt=media&amp;token=23da06f6-1035-43d5-9400-45555a055982" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2F3iuwsEZuuM1phOF6Z1WB%2Fm98401283144_1-perspective-corrected-2.jpg?alt=media&amp;token=7c793a73-3c46-43df-af94-0c6e692bef79" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FYCC0JzM6KW58Ftl8mFwa%2Fm98401283144_1-perspective-corrected.jpg?alt=media&amp;token=0fc7eb80-439d-4753-99bc-b1610116ae09" alt=""></td></tr></tbody></table>

### Video Game, DVD, Blu-Ray

<table data-header-hidden><thead><tr><th align="center" valign="middle"></th><th align="center" valign="middle"></th><th align="center" valign="middle"></th></tr></thead><tbody><tr><td align="center" valign="middle"><em>(original image)</em></td><td align="center" valign="middle"><em>(perspective correction + white background + AI Shadow + AI Relight)</em></td><td align="center" valign="middle"><em>(perspective correction + blurred background + AI Relight)</em></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2Fb3H7WAUGG2M5kLoJ35wy%2Fm45992605055_1.jpg?alt=media&amp;token=f5bb7e60-adfd-4bff-b911-8880cbf64f46" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FE2X5av2XRNLkivgT75iw%2Fm45992605055_1-perspective-corrected.jpg?alt=media&amp;token=9ae1f903-9393-41c9-86c1-1bf22fdf0475" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FJ8OmXtpFN8DC659tywsZ%2Fm45992605055_1-perspective-corrected-2.jpg?alt=media&amp;token=3adec887-d009-4bf6-a9e7-9e7cf4c81a85" alt=""></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FMGmo0uAaDlVC6oSNDSN7%2Fm96335979583_1.jpg?alt=media&amp;token=097f329c-e382-483a-9aee-95daf959532e" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FSYBcuTa19R1TlbLOKaPO%2Fm96335979583_1-perspective-corrected.jpg?alt=media&amp;token=81d4e78c-44b4-4e8d-858a-5fcfb52f7831" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FZE0gF6wRC2OIQU9qggoJ%2Fm96335979583_1-perspective-corrected-2.jpg?alt=media&amp;token=86194c1c-2c5a-43fa-beab-db8a36c9da57" alt=""></td></tr><tr><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FXOBYCwSoRQ2eCRWWi7RR%2Fs-l1600-2.jpg?alt=media&amp;token=b58cd72e-3f25-44ee-9b32-4dc0082a168b" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2Fcc1xE6Cbn8Mea83tO7U3%2Fs-l1600-2-perspective-corrected.jpg?alt=media&amp;token=2b5a950c-0c77-4f14-aa9d-a54fd30e7ec8" alt=""></td><td align="center" valign="middle"><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FbPRM3NsOt7pzqyeX8vPh%2Fs-l1600-2-perspective-corrected-2.jpg?alt=media&amp;token=545571c3-16f6-41eb-babb-06dbb2ce00bb" alt=""></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.photoroom.com/image-editing-api-plus-plan/perspective-correction.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
