Skip to main content
POST
/
api
/
v1
/
experiments
/
costestimate
Estimate experiment cost
curl --request POST \
  --url https://foundry-api-public.adaptyvbio.com/api/v1/experiments/costestimate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "experiment_spec": {
    "experiment_type": "affinity",
    "antigen_concentrations": [
      1000,
      316.2,
      100,
      31.6,
      0
    ],
    "method": "bli",
    "n_replicates": 3,
    "parameters": "<unknown>",
    "sequences": {},
    "target_id": "c383cc1d-fe22-5dbf-953c-378bc073019d"
  }
}
'
{
  "breakdown": "<unknown>",
  "incomplete": "<unknown>",
  "warnings": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request payload for cost estimation.

Contains the same experiment specification fields as creation, but does not require a name or project association.

Example

{
"experiment_spec": {
"experiment_type": "screening",
"target_id": "c383cc1d-fe22-5dbf-953c-378bc073019d",
"sequences": {
"seq1": "EVQLVESGGGLVQPGGSLRLSCAASGFTFS...",
"seq2": "MKTLVLLALLVGAALA..."
},
"n_replicates": 3
}
}
experiment_spec
object
required

Experiment specification for cost calculation (see ExperimentSpec for field details)

Response

Cost estimate calculated

Response wrapper for cost estimation endpoint.

Contains either a complete breakdown (when all pricing is available) or an incomplete estimate (when target lacks self-service pricing).

breakdown
object

Detailed cost breakdown. Present when pricing is fully available.

incomplete
object

Partial estimate. Present when target lacks self-service pricing.

warnings
string[]

Warnings about the estimate (e.g., unknown target, pricing limitations)