Skip to content

Visual Regression

Compare a baseline capture with a current capture.

POST /api/v1/compare with baseline and current capture ids from the same account.
POST /api/v1/compare
Authorization: Bearer $ANEARST_KEY
Content-Type: application/json

{ "baseline": "cap_…", "current": "cap_…" }

The response includes percent, pixels, regions, width, height, and file_url for the difference image.

Saved visual tests in the workspace can store a threshold. The compare endpoint itself always returns the measured difference.

Pixel difference is a signal, not a judgement of design quality.