# Research lifecycle

> How research moves from queued to completed, how providers are chosen, and how costs are held and charged.

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

A research is one question sent to one or more providers. Each provider works on it separately as a **run** and, if it succeeds, produces a **report**.

## Choosing providers

Pass `vendors` as a preset or a list:

```json
{ "vendors": "balanced" }
```

```json
{ "vendors": [{ "vendor": "parallel", "offering": "ultra" }, { "vendor": "gemini", "offering": "standard" }] }
```

| Preset     | What it’s for                                                             |
| ---------- | ------------------------------------------------------------------------- |
| `fast`     | Quick, cheaper answers from several providers at their faster tiers       |
| `balanced` | The default trade-off between depth, time and cost                        |
| `thorough` | The deepest tiers, for questions where it’s worth waiting and paying more |

[`GET /v1/vendors`](https://deeperesearch.com/docs/api/reference/operations/listvendors/) lists what your account can run: each provider tier (`offering`) with its price range, maximum minutes and data terms, the providers in each preset, and the recommended tier per provider at each depth. Presets only include providers your account can run.

Note

Check `data_terms.trains_on_data` before sending sensitive questions or files: some providers may use what you send to train their models.

## Status

Research `status` moves through:

| Status      | Meaning                                                         |
| ----------- | --------------------------------------------------------------- |
| `queued`    | Accepted and waiting to start                                   |
| `running`   | Providers are working on it                                     |
| `completed` | Every provider has finished and at least one delivered a report |
| `failed`    | Every provider finished without a report; `error` says why      |
| `cancelled` | Cancelled before it finished                                    |

Each run in `runs` has its own `state`: `pending`, `submitting`, `submitted`, `needs_review`, `completed`, `failed`, `timed_out` or `cancelled`. A research can be `completed` with some runs `failed` or `timed_out`, because the reports that did arrive are still useful.

Follow progress by polling [`GET /v1/research/{id}`](https://deeperesearch.com/docs/api/reference/operations/getresearch/) every 15–30 seconds, or with [webhooks](https://deeperesearch.com/docs/api/webhooks/).

## Costs

1. **Estimate.** [`POST /v1/research/estimate`](https://deeperesearch.com/docs/api/reference/operations/estimateresearch/) returns the low, expected and worst-case (`hold_usd`) price for each provider and in total. It’s free.
2. **Ceiling.** Pass `max_cost_usd` when you start research. If the worst case is above it, the request fails with `exceeds_max_cost` and nothing is charged.
3. **Hold.** When research starts, its worst case is held from your available credit. If you don’t have enough, it fails with `402 insufficient_credit`.
4. **Charge.** When each provider finishes, you’re charged what it actually cost and the rest of its hold is released. Providers that fail aren’t charged. `charged_usd` on the research is the running total.

Prices include Deeper Research’s margin. When you attach an image or scanned PDF, Claude’s cost of reading it is included in the totals of the first research that uses the file; pass the same `attachments` to the estimate to see it. Reusing the file later costs nothing extra. [`GET /v1/credits`](https://deeperesearch.com/docs/api/reference/operations/getcredits/) shows your balance, and [`GET /v1/credits/ledger`](https://deeperesearch.com/docs/api/reference/operations/listledger/) every hold, charge and release.

## Cancelling and deleting

- [`POST /v1/research/{id}/cancel`](https://deeperesearch.com/docs/api/reference/operations/cancelresearch/) stops research that is `queued` or `running`. Providers that haven’t finished aren’t charged, and reports that already arrived are kept. Cancelling finished research fails with `409 not_cancellable`.
- [`DELETE /v1/research/{id}`](https://deeperesearch.com/docs/api/reference/operations/deleteresearch/) permanently deletes finished research with its reports, sources and files. Research that is still running, or still holds credit, can’t be deleted.

## Finding past research

[`GET /v1/research`](https://deeperesearch.com/docs/api/reference/operations/listresearch/) lists research newest first. Filter with `status` (comma-separated) and `since`, and search questions and report text with `q`; matching text is returned in `snippet`. [`GET /v1/reports?q=`](https://deeperesearch.com/docs/api/reference/operations/searchreports/) searches report text directly.

Before starting new research on a topic, search: you may already have the answer.
