---
title: "POST /model-hub/experiments/{experiment_id}/compare-experiments/"
method: POST
path: "/model-hub/experiments/{experiment_id}/compare-experiments/"
tags: ["model-hub"]
---

# POST /model-hub/experiments/{experiment_id}/compare-experiments/

`POST /model-hub/experiments/{experiment_id}/compare-experiments/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/experiments/{experiment_id}/compare-experiments/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- ExperimentComparisonWeightsRequest
  - `eval_template_ids` string[]
  - `weights` object

## Response `200`

OK

- ExperimentDatasetComparisonResponse
  - `status` boolean, required
  - `result` ExperimentDatasetComparisonResult, required
    - `experiment_id` string, uuid, required
    - `experiment_name` string, required
    - `total_datasets` integer, required
    - `weights_applied` object
    - `dataset_comparisons` ExperimentComparisonDatasetMetric[], required
      - `dataset_id` string, uuid, required
      - `avg_completion_tokens` number, nullable
      - `avg_total_tokens` number, nullable
      - `avg_response_time` number, nullable
      - `avg_score` number, nullable
      - `columns` ExperimentComparisonColumnMetric[]
        - `column_id` string, uuid, required
        - `column_name` string, required
        - `avg_completion_tokens` number, required
        - `avg_total_tokens` number, required
        - `avg_response_time` number, required
        - `avg_score` object, nullable
      - `normalized_scores` object
      - `overall_rating` number, nullable
      - `rank` integer, nullable
      - `rank_suffix` string
      - `total_datasets` integer

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
