Skip to content
Go to Boltz API

Estimate cost for an ADME prediction

client.Predictions.Adme.EstimateCost(ctx, body) (*PredictionAdmeEstimateCostResponse, error)
POST/compute/v1/predictions/adme/estimate-cost

Estimate the cost of an ADME prediction without creating any resource or consuming GPU.

ParametersExpand Collapse
body PredictionAdmeEstimateCostParams
Molecules []PredictionAdmeEstimateCostParamsInputMolecule

Molecules to score (1-128 per request). Results are returned in the same order as this list.

Smiles string

SMILES string of the molecule to predict ADME properties for.

minLength1
ID stringOptional

Optional client-provided identifier. Returned as external_id in the matching output item.

minLength1
maxLength128
Model param.Field[AdmeV1]

Model to use for prediction

const AdmeV1AdmeV1 AdmeV1 = "adme-v1"
IdempotencyKey param.Field[string]Optional

Client-provided key to prevent duplicate submissions on retries

maxLength255
WorkspaceID param.Field[string]Optional

Target workspace ID (admin keys only; ignored for workspace keys)

ReturnsExpand Collapse
type PredictionAdmeEstimateCostResponse struct{…}

Estimate response with monetary values encoded as decimal strings to preserve precision.

Breakdown PredictionAdmeEstimateCostResponseBreakdown

Cost breakdown for the billed application.

Application PredictionAdmeEstimateCostResponseBreakdownApplication
One of the following:
const PredictionAdmeEstimateCostResponseBreakdownApplicationStructureAndBinding PredictionAdmeEstimateCostResponseBreakdownApplication = "structure_and_binding"
const PredictionAdmeEstimateCostResponseBreakdownApplicationSmallMoleculeDesign PredictionAdmeEstimateCostResponseBreakdownApplication = "small_molecule_design"
const PredictionAdmeEstimateCostResponseBreakdownApplicationSmallMoleculeLibraryScreen PredictionAdmeEstimateCostResponseBreakdownApplication = "small_molecule_library_screen"
const PredictionAdmeEstimateCostResponseBreakdownApplicationProteinDesign PredictionAdmeEstimateCostResponseBreakdownApplication = "protein_design"
const PredictionAdmeEstimateCostResponseBreakdownApplicationProteinRedesign PredictionAdmeEstimateCostResponseBreakdownApplication = "protein_redesign"
const PredictionAdmeEstimateCostResponseBreakdownApplicationProteinLibraryScreen PredictionAdmeEstimateCostResponseBreakdownApplication = "protein_library_screen"
const PredictionAdmeEstimateCostResponseBreakdownApplicationAdme PredictionAdmeEstimateCostResponseBreakdownApplication = "adme"
CostPerUnitUsd string

Estimated cost per displayed unit as a decimal string, rounded up to 4 decimal places. This may include token-size multipliers or generation overhead; estimated_cost_usd is the authoritative total.

NumUnits int64

Number of billable units in the estimate. The unit depends on the endpoint: samples for structure-and-binding, molecules for ADME, and requested proteins or molecules for design/screen endpoints.

Disclaimer string
EstimatedCostUsd string

Estimated total cost as a decimal string

Estimate cost for an ADME prediction

package main

import (
  "context"
  "fmt"

  "github.com/boltz-bio/boltz-api-go"
  "github.com/boltz-bio/boltz-api-go/option"
)

func main() {
  client := boltzapi.NewClient(
    option.WithAPIKey("My API Key"),
  )
  response, err := client.Predictions.Adme.EstimateCost(context.TODO(), boltzapi.PredictionAdmeEstimateCostParams{
    Input: boltzapi.PredictionAdmeEstimateCostParamsInput{
      Molecules: []boltzapi.PredictionAdmeEstimateCostParamsInputMolecule{boltzapi.PredictionAdmeEstimateCostParamsInputMolecule{
        Smiles: "x",
      }},
    },
    Model: "adme-v1",
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Breakdown)
}
{
  "breakdown": {
    "application": "structure_and_binding",
    "cost_per_unit_usd": "0.0500",
    "num_units": 1
  },
  "disclaimer": "This is an estimate only and may differ from your actual charges. Final billing is based on exact token counts computed at run time. For large library screens, the estimate is extrapolated from a sample and may be less accurate for highly variable inputs.",
  "estimated_cost_usd": "0.0500"
}
Returns Examples
{
  "breakdown": {
    "application": "structure_and_binding",
    "cost_per_unit_usd": "0.0500",
    "num_units": 1
  },
  "disclaimer": "This is an estimate only and may differ from your actual charges. Final billing is based on exact token counts computed at run time. For large library screens, the estimate is extrapolated from a sample and may be less accurate for highly variable inputs.",
  "estimated_cost_usd": "0.0500"
}