# Synthesis merges

> Combine several providers' reports into one cited synthesis, automatically or afterwards.

Source: https://deeperesearch.com/docs/api/merges/

A merge reads a research’s provider reports and writes one synthesis report: what the providers agree on, where they disagree, and what only one of them found, with citations checked against the source reports. Merges run on a model you choose through OpenRouter, with zero data retention.

## Merge when the research finishes

Add `merge` when you start research, and the synthesis is written as soon as the providers finish:

```json
{
  "query": "How do EU heat pump subsidies compare by country in 2026?",
  "vendors": "balanced",
  "max_cost_usd": 20,
  "merge": { "mode": "comparison", "instructions": "Focus on Germany, France and Italy" }
}
```

This needs at least two providers whose terms allow merging (`data_terms.mergeable` in [`GET /v1/vendors`](https://deeperesearch.com/docs/api/reference/operations/listvendors/)). The merge’s cost is included in the research’s estimate and hold.

## Merge afterwards

You can merge finished research at any time, and merge it again with a different model, mode or focus. Each merge produces its own synthesis report.

1. Estimate it (free): [`POST /v1/research/{id}/merge/estimate`](https://deeperesearch.com/docs/api/reference/operations/estimatemerge/) returns the cost and which reports would be included or left out, and why.
2. Start it: [`POST /v1/research/{id}/merge`](https://deeperesearch.com/docs/api/reference/operations/createmerge/), with an `Idempotency-Key`, returns a merge with `state: "pending"`.
3. Wait: the merge appears in `merges` on [`GET /v1/research/{id}`](https://deeperesearch.com/docs/api/reference/operations/getresearch/), or subscribe to `research.merge.completed`.
4. Read: the synthesis is a report with `kind: "synthesis"` in [`GET /v1/research/{id}/reports`](https://deeperesearch.com/docs/api/reference/operations/listresearchreports/).

## Options

| Field          | Values                                                                                                                                                                                                                                            |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`        | A model id from [`GET /v1/merge/models`](https://deeperesearch.com/docs/api/reference/operations/listmergemodels/). Defaults to the default model                                                                                                 |
| `thinking`     | `off`, `low`, `medium` or `high`. Deeper thinking costs more. Defaults to the model’s default                                                                                                                                                     |
| `mode`         | `comprehensive` (default): a full report with the answer, synthesis, agreements and disagreements, unique findings and open questions. `executive`: a briefing of roughly 800–1,500 words. `comparison`: a structured comparison across providers |
| `instructions` | What to focus on, up to 1,000 characters                                                                                                                                                                                                          |
| `report_ids`   | Merge only these provider reports (afterwards only)                                                                                                                                                                                               |
| `max_cost_usd` | Refuse if the worst case is above this (afterwards only; a merge requested with the research is covered by the research’s `max_cost_usd`)                                                                                                         |

## Merge states

`pending`, `running`, `completed`, `failed`, `skipped` (for example, fewer than two mergeable reports arrived) or `cancelled`. A merge that fails or is skipped isn’t charged, and its hold is released.
