> 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/visual-qa-api-enterprise-plan/overview.md).

# Overview

## Who is this API for?

The Visual QA API lets you automatically compare an edited image with the original one, to ensure product fidelity.

More specifically, this API outputs a score that tells you how much the product in the edited image is true to the one in the original image.

This is particularly useful when using editing features powered by generative AI, because these features can create hallucinations on the product.

Here are some examples of how the Visual QA API can be used depending on the industry:

### Fashion & Apparel

Garments contain a lot of fine details that the best AI editing models will sometimes get wrong.

The Visual QA API allows you to work around this problem:

1. instead of a generating a single edited image, generate three of them
2. use the Visual QA API to measure the amount of product fidelity in each
3. select the edited image with the highest fidelity score

Here are examples of this approach applied to the [Virtual Model](/image-editing-api-plus-plan/virtual-model.md), [Flat Lay](/image-editing-api-plus-plan/flat-lay.md) and [AI Ironing](/image-editing-api-plus-plan/ai-ironing.md) features:

<figure><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FdJxxAAz9sCljbKantixy%2FScreenshot%202026-06-18%20at%2011.46.54.png?alt=media&amp;token=25042c61-35f8-4f1b-af1e-b6da92334fcc" alt=""><figcaption><p>(the red arrows point to hallucinations)</p></figcaption></figure>

<figure><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FIPFpnxndmJ6JUrLBoyP0%2FScreenshot%202026-06-16%20at%2018.03.54%20copy.png?alt=media&amp;token=b0ee0f7b-ddd6-4f75-b133-915ebb607b25" alt=""><figcaption><p>(the red arrows point to hallucinations)</p></figcaption></figure>

<figure><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FFRZMgcqrgBRm2izKAyK5%2FScreenshot%202026-06-17%20at%2011.32.42.png?alt=media&amp;token=0a7da094-bea8-4b4d-950a-51dadf22dcef" alt=""><figcaption><p>(the red arrows point to hallucinations)</p></figcaption></figure>

{% embed url="<https://youtu.be/q7EgRvwyRVA?si=h0CHxcSNFWi9Lk2B>" %}

### Food Delivery

Pictures of dishes taken by restaurant owners can be of varying quality and AI editing is a great way to improve their quality.

However, it's important to ensure that the content of the dish stays the same and that no ingredients have been added or removed.

The Visual QA API solves this problem.

It analyzes the edited image and validates it when the dish hasn't been altered:

<div><figure><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2Ffj1cAnERulgRAlQNKwZf%2FScreenshot%202026-06-17%20at%2010.57.41.png?alt=media&amp;token=20081a98-f5ae-4359-9cd1-750b1a4863f3" alt=""><figcaption></figcaption></figure> <figure><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FKdWGXsTTE0VY5s4pyoAT%2FScreenshot%202026-06-17%20at%2010.58.11.png?alt=media&amp;token=8489d526-a2f0-4e27-bfa3-aaa56c2c5014" alt=""><figcaption></figcaption></figure></div>

And it flags the edited image when the dish has been altered in a way that would mislead buyers:

<div><figure><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FX5jzJGHPgIpsbap5FiU6%2FScreenshot%202026-06-17%20at%2011.08.15.png?alt=media&amp;token=e97a109f-687d-40e0-bc10-b72b251944b4" alt=""><figcaption><p>an extra recipient has been added</p></figcaption></figure> <figure><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FXlswCTEEEzqn20Z5wfy0%2FScreenshot%202026-06-17%20at%2011.16.13.png?alt=media&amp;token=04e45bf0-2bf6-44ad-ab02-d0f8110c4fe3" alt=""><figcaption><p>an extra sushi has been added</p></figcaption></figure></div>

When an edited image is flagged, you can then retry the generation and re-evaluate the new output:

<figure><img src="https://2855892273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SYxn7dWbQYsNtUdJE3f%2Fuploads%2FwHQs3o3iFfj9UNb0qKSM%2FScreenshot%202026-06-19%20at%2010.52.36.png?alt=media&amp;token=5a5ef9e2-b4c8-48b8-9edd-eaeffb6ca9d2" alt=""><figcaption><p>in the first attempt, extra sushis had been added</p></figcaption></figure>

If after 2 retries the image still doesn't pass validation, it's then safe to assume that the input image is likely too low quality to be meaningfully improved.

## How do I call the Visual QA API?

The Visual QA API is only available for Enterprise plans.

If you're interested to use the Visual QA API, 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;


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.photoroom.com/visual-qa-api-enterprise-plan/overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
