Estimate cost for a small molecule design run
Estimate the billed cost of a small molecule design run without creating any resource or consuming GPU. Includes generation charges implied by the scheduler iteration cap plus structure-scoring charges for each requested molecule.
ParametersExpand Collapse
body SmallMoleculeDesignEstimateCostParams
Number of molecules to generate. Must be between 10 and 1,000,000.
Target param.Field[SmallMoleculeDesignEstimateCostParamsTarget]Target protein sequences for small molecule design or screening.
Target protein sequences for small molecule design or screening.
Entities []SmallMoleculeDesignEstimateCostParamsTargetEntityProtein entities defining the target structure. Each entity represents a protein chain.
Protein entities defining the target structure. Each entity represents a protein chain.
Bonds []SmallMoleculeDesignEstimateCostParamsTargetBondOptionalCovalent bond constraints between atoms in the target complex. Ligand atom references support CCD atom names and explicitly atom-mapped SMILES atoms.
Covalent bond constraints between atoms in the target complex. Ligand atom references support CCD atom names and explicitly atom-mapped SMILES atoms.
Atom1 SmallMoleculeDesignEstimateCostParamsTargetBondAtom1UnionLigand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
type SmallMoleculeDesignEstimateCostParamsTargetBondAtom1LigandAtom struct{…}Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Atom2 SmallMoleculeDesignEstimateCostParamsTargetBondAtom2UnionLigand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
type SmallMoleculeDesignEstimateCostParamsTargetBondAtom2LigandAtom struct{…}Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Constraints []SmallMoleculeDesignEstimateCostParamsTargetConstraintUnionOptionalStructural constraints (pocket and contact). Ligand atom references support CCD atom names and explicitly atom-mapped SMILES atoms.
Structural constraints (pocket and contact). Ligand atom references support CCD atom names and explicitly atom-mapped SMILES atoms.
type SmallMoleculeDesignEstimateCostParamsTargetConstraintPocketConstraint struct{…}Constrains the binder to interact with specific pocket residues on the target.
Constrains the binder to interact with specific pocket residues on the target.
Binding pocket residues keyed by chain ID. Each key is a chain ID (e.g. “A”) and the value is an array of 0-indexed residue indices that define the pocket on that chain.
type SmallMoleculeDesignEstimateCostParamsTargetConstraintContactConstraint struct{…}Maximum-distance contact constraint between two polymer residues or ligand atoms.
Maximum-distance contact constraint between two polymer residues or ligand atoms.
Token1 SmallMoleculeDesignEstimateCostParamsTargetConstraintContactConstraintToken1UnionLigand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
type SmallMoleculeDesignEstimateCostParamsTargetConstraintContactConstraintToken1PolymerContactToken struct{…}
type SmallMoleculeDesignEstimateCostParamsTargetConstraintContactConstraintToken1LigandContactToken struct{…}Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Token2 SmallMoleculeDesignEstimateCostParamsTargetConstraintContactConstraintToken2UnionLigand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
type SmallMoleculeDesignEstimateCostParamsTargetConstraintContactConstraintToken2PolymerContactToken struct{…}
type SmallMoleculeDesignEstimateCostParamsTargetConstraintContactConstraintToken2LigandContactToken struct{…}Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Binding pocket residues, keyed by chain ID. Each key is a chain ID (e.g. “A”) and the value is an array of 0-indexed residue indices that define the binding pocket on that chain. When provided, these residues guide pocket extraction and add a derived pocket constraint during affinity predictions. That derived constraint remains separate from any explicit pocket constraints in target.constraints. When omitted, the model auto-detects the pocket.
Chemical space to constrain generated molecules. Use ‘enamine_real’ for the Enamine REAL chemical space or ‘none’ to disable chemical-space filtering.
Chemical space to constrain generated molecules. Use ‘enamine_real’ for the Enamine REAL chemical space or ‘none’ to disable chemical-space filtering.
Client-provided key to prevent duplicate submissions on retries
Molecule filtering configuration. Controls both Boltz built-in SMARTS filtering and custom filters.
Molecule filtering configuration. Controls both Boltz built-in SMARTS filtering and custom filters.
BoltzSmartsCatalogFilterLevel SmallMoleculeDesignEstimateCostParamsMoleculeFiltersBoltzSmartsCatalogFilterLevelOptionalControls the stringency of Boltz’s built-in SMARTS structural alert filtering, which removes molecules matching known problematic substructures. ‘recommended’ (default): applies a curated set of alerts balancing safety and hit rate. ‘extra’: adds additional alerts beyond the recommended set for stricter filtering. ‘aggressive’: applies the most comprehensive alert set — may reject viable molecules. ‘disabled’: turns off Boltz SMARTS filtering entirely; only custom_filters will be applied.
Controls the stringency of Boltz’s built-in SMARTS structural alert filtering, which removes molecules matching known problematic substructures. ‘recommended’ (default): applies a curated set of alerts balancing safety and hit rate. ‘extra’: adds additional alerts beyond the recommended set for stricter filtering. ‘aggressive’: applies the most comprehensive alert set — may reject viable molecules. ‘disabled’: turns off Boltz SMARTS filtering entirely; only custom_filters will be applied.
CustomFilters []SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterUnionOptionalCustom filters to apply. Molecules must pass all filters (AND logic).
Custom filters to apply. Molecules must pass all filters (AND logic).
type SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterLipinskiFilter struct{…}Lipinski’s Rule of Five filter. Rejects molecules that violate drug-likeness criteria based on molecular weight, LogP, hydrogen bond donors, and hydrogen bond acceptors.
Lipinski’s Rule of Five filter. Rejects molecules that violate drug-likeness criteria based on molecular weight, LogP, hydrogen bond donors, and hydrogen bond acceptors.
type SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterRdkitDescriptorFilter struct{…}Filter molecules by RDKit molecular descriptors. Each descriptor is constrained to a min/max range. Only descriptors you provide are checked — omitted descriptors are unconstrained.
Filter molecules by RDKit molecular descriptors. Each descriptor is constrained to a min/max range. Only descriptors you provide are checked — omitted descriptors are unconstrained.
FractionCsp3 SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterRdkitDescriptorFilterFractionCsp3OptionalMin/max range constraint for an RDKit molecular descriptor
Min/max range constraint for an RDKit molecular descriptor
MolLogp SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterRdkitDescriptorFilterMolLogpOptionalMin/max range constraint for an RDKit molecular descriptor
Min/max range constraint for an RDKit molecular descriptor
MolWt SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterRdkitDescriptorFilterMolWtOptionalMin/max range constraint for an RDKit molecular descriptor
Min/max range constraint for an RDKit molecular descriptor
NumAromaticRings SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterRdkitDescriptorFilterNumAromaticRingsOptionalMin/max range constraint for an RDKit molecular descriptor
Min/max range constraint for an RDKit molecular descriptor
NumHAcceptors SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterRdkitDescriptorFilterNumHAcceptorsOptionalMin/max range constraint for an RDKit molecular descriptor
Min/max range constraint for an RDKit molecular descriptor
NumHDonors SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterRdkitDescriptorFilterNumHDonorsOptionalMin/max range constraint for an RDKit molecular descriptor
Min/max range constraint for an RDKit molecular descriptor
NumHeteroatoms SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterRdkitDescriptorFilterNumHeteroatomsOptionalMin/max range constraint for an RDKit molecular descriptor
Min/max range constraint for an RDKit molecular descriptor
NumRings SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterRdkitDescriptorFilterNumRingsOptionalMin/max range constraint for an RDKit molecular descriptor
Min/max range constraint for an RDKit molecular descriptor
type SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterSmartsCustomFilter struct{…}Filter molecules by custom SMARTS patterns. Molecules matching any pattern are rejected.
Filter molecules by custom SMARTS patterns. Molecules matching any pattern are rejected.
type SmallMoleculeDesignEstimateCostParamsMoleculeFiltersCustomFilterSmartsCatalogFilter struct{…}Filter molecules using a predefined SMARTS catalog of structural alerts.
Filter molecules using a predefined SMARTS catalog of structural alerts.
Catalog stringPredefined SMARTS catalog to apply. PAINS, BRENK, ChEMBL, and NIH catalogs reject known problematic substructures.
Predefined SMARTS catalog to apply. PAINS, BRENK, ChEMBL, and NIH catalogs reject known problematic substructures.
ReturnsExpand Collapse
type SmallMoleculeDesignEstimateCostResponse struct{…}Estimate response with monetary values encoded as decimal strings to preserve precision.
Estimate response with monetary values encoded as decimal strings to preserve precision.
Breakdown SmallMoleculeDesignEstimateCostResponseBreakdownCost breakdown for the billed application.
Cost breakdown for the billed application.
Application SmallMoleculeDesignEstimateCostResponseBreakdownApplication
Estimate cost for a small molecule design run
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.SmallMolecule.Design.EstimateCost(context.TODO(), boltzapi.SmallMoleculeDesignEstimateCostParams{
NumMolecules: 10,
Target: boltzapi.SmallMoleculeDesignEstimateCostParamsTarget{
Entities: []boltzapi.SmallMoleculeDesignEstimateCostParamsTargetEntity{boltzapi.SmallMoleculeDesignEstimateCostParamsTargetEntity{
ChainIDs: []string{"string"},
Value: "value",
}},
},
})
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"
}