Skip to content

Estimate research

POST
/v1/research/estimate
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.

Media typeapplication/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
Allowed values: fast balanced thorough
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

{
"vendors": "fast"
}

The estimate

Media typeapplication/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

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

The body isn’t valid JSON (invalid_json)

Media typeapplication/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

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

Missing or invalid API key (unauthorized)

Media typeapplication/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

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

The key lacks the scope this needs (forbidden)

Media typeapplication/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

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

The body is over 128 KB (body_too_large)

Media typeapplication/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

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

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

Media typeapplication/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

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

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

Media typeapplication/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

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

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

Media typeapplication/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

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