# Estimate research

Source: https://deeperesearch.com/docs/api/reference/operations/estimateresearch/

POST

/v1/research/estimate

```js
const url = 'https://deeperesearch.com/v1/research/estimate';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"vendors":"fast"}'
};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
curl --request POST \
  --url https://deeperesearch.com/v1/research/estimate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{ "vendors": "fast" }'
```

The low, expected and worst-case cost of research, without starting anything. Free.

## Authorizations

- **[apiKey](https://deeperesearch.com/docs/api/reference/#apikey)**

## Request Bodyrequired

application/json

object

**vendors**

required

A preset (“fast”, “balanced” or “thorough”) or a list of up to 16 {vendor, offering} pairs from GET /v1/vendors.

Any of:

- string

  string

  Allowed values: fast balanced thorough

- Array\<object>

  Array\<object>

  \>= 1 items <= 16 items

  object

  **vendor**

  required

  string

  \>= 1 characters

  **offering**

  required

  string

  \>= 1 characters

**merge**

Merge the providers’ reports into one cited synthesis when they finish. Needs at least two mergeable providers.

object

**model**

string

\>= 1 characters <= 120 characters

**thinking**

string

Allowed values: off low medium high

**mode**

string

Allowed values: comprehensive executive comparison

**instructions**

string

<= 1000 characters

**attachments**

Up to 10 ready file ids from POST /v1/files, sent to every provider with the question.

Array\<string>

<= 10 items

### Example

```json
{
  "vendors": "fast"
}
```

## Responses

### 200

The estimate

application/json

object

**vendors**

required

Array\<object>

object

**vendor**

required

string

**offering**

required

string

**low_usd**

required

US dollars

number

**expected_usd**

required

US dollars

number

**high_usd**

required

US dollars

number

**hold_usd**

required

Worst case, held from credit while it runs

number

**merge**

object

**model**

required

string

**thinking**

required

string

Allowed values: off low medium high

**mode**

required

string

Allowed values: comprehensive executive comparison

**low_usd**

required

US dollars

number

**expected_usd**

required

US dollars

number

**high_usd**

required

US dollars

number

**hold_usd**

required

Worst case, held from credit while it runs

number

**eligible_vendors**

required

Array\<object>

object

**vendor**

required

string

**offering**

required

string

**excluded_vendors**

required

Array\<object>

object

**vendor**

required

string

**offering**

required

string

**reason**

required

string

**total**

required

object

**low_usd**

required

US dollars

number

**expected_usd**

required

US dollars

number

**high_usd**

required

US dollars

number

**hold_usd**

required

Worst case, held from credit while it runs

number

**max_minutes**

required

number

#### Example

```json
{
  "merge": {
    "thinking": "off",
    "mode": "comprehensive"
  }
}
```

### 400

The body isn’t valid JSON (invalid_json)

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```

### 401

Missing or invalid API key (unauthorized)

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```

### 403

The key lacks the scope this needs (forbidden)

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```

### 413

The body is over 128 KB (body_too_large)

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```

### 422

Invalid request; the message names the field (invalid_request, exceeds_max_cost, vendor_unavailable, …)

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```

### 429

Rate limit, spending limit or quota reached (rate_limited, limit_reached, quota_exceeded). See Retry-After.

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```

### 503

The feature isn’t available on this server (merge_unavailable)

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```
