Skip to content

Estimate a merge

POST
/v1/research/{id}/merge/estimate
curl --request POST \
--url https://deeperesearch.com/v1/research/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/merge/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "mode": "comparison" }'

What merging this research’s finished reports would cost, and which reports would be included. Free.

id
required
string format: uuid
Media typeapplication/json
object
model

A synthesis model id from GET /v1/merge/models. Defaults to the default model.

string
>= 1 characters <= 120 characters
thinking

Reasoning depth. Defaults to the model’s default.

string
Allowed values: off low medium high
mode

Comprehensive (default), executive or comparison.

string
Allowed values: comprehensive executive comparison
instructions

What the synthesis should focus on. Up to 1,000 characters.

string
<= 1000 characters
report_ids

Only merge these provider reports. Defaults to every finished mergeable report.

Array<string>
>= 1 items <= 16 items

Example

{
"mode": "comparison"
}

The estimate

Media typeapplication/json
object
model
required
string
thinking
required
string
Allowed values: off low medium high
mode
required
string
Allowed values: comprehensive executive comparison
estimated_input_tokens
required
integer
>= -9007199254740991 <= 9007199254740991
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
source_reports
required
Array<object>
object
id
required
string format: uuid
vendor
required
string | null
offering
required
string | null
excluded_reports
required
Array<object>

A report left out of a merge, and why.

object
report_id
required
Any of:
string format: uuid
vendor
required
string
offering
required
string
reason
required
string

Example

{
"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"
}
}

Not found in this organization (not_found)

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"
}
}