---
title: "Compare multiple prompts against a dataset"
method: POST
path: "/compare_prompts"
---

# Compare multiple prompts against a dataset

`POST /compare_prompts`

## Request body

- object
  - `system_prompts` string[], required
  - `seed_data_id` string — ID of seed dataset to use (either this or synthetic_data_id is required)
  - `synthetic_data_id` string — ID of synthetic dataset to use (either this or seed_data_id is required)
  - `metrics_id` string
  - `model_name` string, required
  - `model_provider` string, required

## Response `200`

Prompts successfully compared

- object
  - `result` object
    - `prompts` string[]
    - `comparisons` object[]
    - `metrics_id` string

## Changes

- **2025-04-30** `2eb8cb01b88b` — 1 info
  - endpoint added
- **2025-04-30** `9a3d86c43d3d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/getplumai/apis/plum-api/changes/compare_prompts/post.md)

---

[API](https://skmtc.dev/getplumai/apis/plum-api.md) · [All operations](https://skmtc.dev/getplumai/apis/plum-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getplumai/plum-api/revisions/f332cf4d71d4/schema)
