Why use /compare
?
Our goal is to make it as easy as possible to compare Cardinal results to your current provider’s results.
Through this endpoint, you’ll get a link to a side-by-side comparison UI. You’ll see Cardinal’s extraction next to your baseline (e.g., your current OCR/LLM system) for every file.

Endpoint
- Endpoint:
POST /compare
- Auth:
x-api-key: <YOUR_KEY>
- Input: a file or
fileUrl
+ optionaloriginal_results
(string) - Output: same payload as
/markdown
plusdashboard_url
pointing to the evals UI - UI Link:
https://dashboard.trycardinal.ai/evals?filename=<comparison_id>
Example Request
Example Response
You’ll get the full/markdown
payload plus a dashboard_url
:
dashboard_url
to review Cardinal vs. your baseline side-by-side for this file (and navigate across the entire eval set).