> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Compare two model checkpoints

> **Required scope:** models:manage

**Required scope:** `models:manage`

### Request body

`CompareModelsRequest`

**checkpoint\_a** `string` *required*

First checkpoint ID

**checkpoint\_b** `string` *required*

Second checkpoint ID

### Response

`ModelComparison`

**checkpoint\_a** `string` *required*

Checkpoint A identifier

**checkpoint\_b** `string` *required*

Checkpoint B identifier

**config\_changes** `ConfigChange[]` *required*

Configuration changes

**ConfigChange**

**field** `string` *required*

Field that changed

**value\_a** `string` *required*

Value in checkpoint A

**value\_b** `string` *required*

Value in checkpoint B

**metric\_diffs** `MetricDiff` *required*

**MetricDiff**

**accuracy\_diff** `number (double)` *required*

Accuracy difference (B - A)

**f1\_diff** `number (double)` *required*

F1 score difference

**loss\_diff** `number (double)` *required*

Loss difference

**recommendation** `string` *required*

Recommendation

### Status codes

| Code | Meaning |
| - | - |
| `200` | Comparison result |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Checkpoint not found |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

```bash cURL theme={null}
curl --request POST \
  --url 'https://api.nsr.stateset.com/api/v1/model/compare' \
  --header "X-API-Key: $STATESET_NSR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "checkpoint_a": "string",
  "checkpoint_b": "string"
}'
```

```json 200 theme={null}
{
  "checkpoint_a": "string",
  "checkpoint_b": "string",
  "config_changes": [
    {
      "field": "string",
      "value_a": "string",
      "value_b": "string"
    }
  ],
  "metric_diffs": {
    "accuracy_diff": 1.5,
    "f1_diff": 1.5,
    "loss_diff": 1.5
  },
  "recommendation": "string"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.