Estimate cost for a protein library screen
Estimate the cost of a protein library screen without creating any resource or consuming GPU.
ParametersExpand Collapse
List of protein entries to screen.
List of protein entries to screen.
entities: Iterable[ProteinEntity]Entities that make up this protein complex
Entities that make up this protein complex
class ProteinEntityProteinEntity: …
Chain IDs for this entity
Amino acid sequence (one-letter codes)
Whether the sequence is cyclic
modifications: Optional[Iterable[ProteinEntityProteinEntityModification]]Post-translational modifications. Optional; defaults to an empty list when omitted.
Post-translational modifications. Optional; defaults to an empty list when omitted.
class ProteinEntityProteinEntityModificationCcdModification: …
0-based index of the residue to modify
CCD code from RCSB PDB (e.g. 'MSE' for selenomethionine, 'SEP' for phosphoserine)
class ProteinEntityProteinEntityModificationSmilesModification: …
0-based index of the residue to modify
SMILES string for the modification
class ProteinEntityRnaEntity: …
Chain IDs for this entity
RNA nucleotide sequence (A, C, G, U, N)
Whether the sequence is cyclic
modifications: Optional[Iterable[ProteinEntityRnaEntityModification]]Chemical modifications. Optional; defaults to an empty list when omitted.
Chemical modifications. Optional; defaults to an empty list when omitted.
class ProteinEntityRnaEntityModificationCcdModification: …
0-based index of the residue to modify
CCD code from RCSB PDB (e.g. 'MSE' for selenomethionine, 'SEP' for phosphoserine)
class ProteinEntityRnaEntityModificationSmilesModification: …
0-based index of the residue to modify
SMILES string for the modification
class ProteinEntityDnaEntity: …
Chain IDs for this entity
DNA nucleotide sequence (A, C, G, T, N)
Whether the sequence is cyclic
modifications: Optional[Iterable[ProteinEntityDnaEntityModification]]Chemical modifications. Optional; defaults to an empty list when omitted.
Chemical modifications. Optional; defaults to an empty list when omitted.
class ProteinEntityDnaEntityModificationCcdModification: …
0-based index of the residue to modify
CCD code from RCSB PDB (e.g. 'MSE' for selenomethionine, 'SEP' for phosphoserine)
class ProteinEntityDnaEntityModificationSmilesModification: …
0-based index of the residue to modify
SMILES string for the modification
class ProteinEntityLigandCcdEntity: …
Chain IDs for this ligand
CCD code (e.g., ATP, ADP)
class ProteinEntityLigandSmilesEntity: …
Chain IDs for this ligand
SMILES string representing the ligand
Optional client-provided identifier for this entry
Target specification (structure template or template-free)
Target specification (structure template or template-free)
class TargetStructureTemplateTarget: …Target defined by an uploaded 3D structure (CIF or PDB file). Only chains included in chain_selection are used.
Target defined by an uploaded 3D structure (CIF or PDB file). Only chains included in chain_selection are used.
chain_selection: Dict[str, TargetStructureTemplateTargetChainSelection]Chains selected from the uploaded structure, keyed by chain ID. Only chains listed here are included in the engine run — any chains omitted from this mapping are ignored. Each value defines which residues to keep, which are epitope residues, and which are flexible.
Chains selected from the uploaded structure, keyed by chain ID. Only chains listed here are included in the engine run — any chains omitted from this mapping are ignored. Each value defines which residues to keep, which are epitope residues, and which are flexible.
class TargetStructureTemplateTargetChainSelectionStructureTemplateTargetPolymerChainSpec: …Per-chain specification for a polymer (protein/RNA/DNA) chain in a structure template target.
Per-chain specification for a polymer (protein/RNA/DNA) chain in a structure template target.
crop_residues: Union[Iterable[int], Literal["all"]]0-indexed residue indices to retain from this chain, or 'all' to keep all residues. Residues not listed are excluded from the engine run.
0-indexed residue indices to retain from this chain, or 'all' to keep all residues. Residues not listed are excluded from the engine run.
0-indexed residue indices to keep
0-indexed residue indices where binder contact is desired (the epitope). All indices must be present in crop_residues.
0-indexed residue indices allowed to move during design (e.g. flexible loop regions). All indices must be present in crop_residues.
class TargetStructureTemplateTargetChainSelectionStructureTemplateTargetLigandChainSpec: …Per-chain specification for a ligand chain in a structure template target. The full ligand is always included.
Per-chain specification for a ligand chain in a structure template target. The full ligand is always included.
structure: TargetStructureTemplateTargetStructureHow to provide a CIF structure file. URLs are auto-detected; base64 uploads must use chemical/x-cif media type.
How to provide a CIF structure file. URLs are auto-detected; base64 uploads must use chemical/x-cif media type.
class TargetStructureTemplateTargetStructureURLSource: …
class TargetStructureTemplateTargetStructureCifBase64Source: …
Base64-encoded CIF file contents
Must be chemical/x-cif for CIF files
class TargetNoTemplateTarget: …Target defined by sequences only, without a 3D structure template
Target defined by sequences only, without a 3D structure template
entities: Iterable[TargetNoTemplateTargetEntity]Entities (proteins, RNA, DNA, ligands) defining the target complex.
Entities (proteins, RNA, DNA, ligands) defining the target complex.
class TargetNoTemplateTargetEntityProteinEntity: …
Chain IDs for this entity
Amino acid sequence (one-letter codes)
Whether the sequence is cyclic
modifications: Optional[Iterable[TargetNoTemplateTargetEntityProteinEntityModification]]Post-translational modifications. Optional; defaults to an empty list when omitted.
Post-translational modifications. Optional; defaults to an empty list when omitted.
class TargetNoTemplateTargetEntityProteinEntityModificationCcdModification: …
0-based index of the residue to modify
CCD code from RCSB PDB (e.g. 'MSE' for selenomethionine, 'SEP' for phosphoserine)
class TargetNoTemplateTargetEntityProteinEntityModificationSmilesModification: …
0-based index of the residue to modify
SMILES string for the modification
class TargetNoTemplateTargetEntityRnaEntity: …
Chain IDs for this entity
RNA nucleotide sequence (A, C, G, U, N)
Whether the sequence is cyclic
modifications: Optional[Iterable[TargetNoTemplateTargetEntityRnaEntityModification]]Chemical modifications. Optional; defaults to an empty list when omitted.
Chemical modifications. Optional; defaults to an empty list when omitted.
class TargetNoTemplateTargetEntityRnaEntityModificationCcdModification: …
0-based index of the residue to modify
CCD code from RCSB PDB (e.g. 'MSE' for selenomethionine, 'SEP' for phosphoserine)
class TargetNoTemplateTargetEntityRnaEntityModificationSmilesModification: …
0-based index of the residue to modify
SMILES string for the modification
class TargetNoTemplateTargetEntityDnaEntity: …
Chain IDs for this entity
DNA nucleotide sequence (A, C, G, T, N)
Whether the sequence is cyclic
modifications: Optional[Iterable[TargetNoTemplateTargetEntityDnaEntityModification]]Chemical modifications. Optional; defaults to an empty list when omitted.
Chemical modifications. Optional; defaults to an empty list when omitted.
class TargetNoTemplateTargetEntityDnaEntityModificationCcdModification: …
0-based index of the residue to modify
CCD code from RCSB PDB (e.g. 'MSE' for selenomethionine, 'SEP' for phosphoserine)
class TargetNoTemplateTargetEntityDnaEntityModificationSmilesModification: …
0-based index of the residue to modify
SMILES string for the modification
class TargetNoTemplateTargetEntityLigandCcdEntity: …
Chain IDs for this ligand
CCD code (e.g., ATP, ADP)
class TargetNoTemplateTargetEntityLigandSmilesEntity: …
Chain IDs for this ligand
SMILES string representing the ligand
bonds: Optional[Iterable[TargetNoTemplateTargetBond]]Covalent bond constraints between atoms in the target complex. Atom-level ligand references currently support ligand_ccd only; ligand_smiles is unsupported.
Covalent bond constraints between atoms in the target complex. Atom-level ligand references currently support ligand_ccd only; ligand_smiles is unsupported.
atom1: TargetNoTemplateTargetBondAtom1Ligand atom reference. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Ligand atom reference. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
class TargetNoTemplateTargetBondAtom1LigandAtom: …Ligand atom reference. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Ligand atom reference. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Standardized atom name (verifiable in CIF file on RCSB). Atom-level references to ligand_smiles entities are currently unsupported; use ligand_ccd instead.
Chain ID containing the atom
class TargetNoTemplateTargetBondAtom1PolymerAtom: …
Standardized atom name (verifiable in CIF file on RCSB)
Chain ID containing the atom
0-based residue index
atom2: TargetNoTemplateTargetBondAtom2Ligand atom reference. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Ligand atom reference. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
class TargetNoTemplateTargetBondAtom2LigandAtom: …Ligand atom reference. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Ligand atom reference. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Standardized atom name (verifiable in CIF file on RCSB). Atom-level references to ligand_smiles entities are currently unsupported; use ligand_ccd instead.
Chain ID containing the atom
class TargetNoTemplateTargetBondAtom2PolymerAtom: …
Standardized atom name (verifiable in CIF file on RCSB)
Chain ID containing the atom
0-based residue index
constraints: Optional[Iterable[TargetNoTemplateTargetConstraint]]Structural constraints (pocket and contact). Atom-level ligand references currently support ligand_ccd only; ligand_smiles is unsupported.
Structural constraints (pocket and contact). Atom-level ligand references currently support ligand_ccd only; ligand_smiles is unsupported.
class TargetNoTemplateTargetConstraintPocketConstraint: …Constrains the binder to interact with specific pocket residues on the target.
Constrains the binder to interact with specific pocket residues on the target.
Chain ID of the binder molecule
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.
Maximum allowed distance in Angstroms between binder and pocket residues. Typical range: 4-8 A.
Whether to force the constraint
class TargetNoTemplateTargetConstraintContactConstraint: …Contact constraint between two tokens. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Contact constraint between two tokens. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Maximum distance in Angstroms
token1: TargetNoTemplateTargetConstraintContactConstraintToken1Ligand contact token. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Ligand contact token. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
class TargetNoTemplateTargetConstraintContactConstraintToken1PolymerContactToken: …
Chain ID
0-based residue index
class TargetNoTemplateTargetConstraintContactConstraintToken1LigandContactToken: …Ligand contact token. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Ligand contact token. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Atom name. Atom-level references to ligand_smiles entities are currently unsupported; use ligand_ccd instead.
Chain ID
token2: TargetNoTemplateTargetConstraintContactConstraintToken2Ligand contact token. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Ligand contact token. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
class TargetNoTemplateTargetConstraintContactConstraintToken2PolymerContactToken: …
Chain ID
0-based residue index
class TargetNoTemplateTargetConstraintContactConstraintToken2LigandContactToken: …Ligand contact token. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Ligand contact token. Atom-level ligand references currently support ligand_ccd entities only; ligand_smiles is unsupported.
Atom name. Atom-level references to ligand_smiles entities are currently unsupported; use ligand_ccd instead.
Chain ID
Whether to force the constraint
Chain IDs of ligand entities that are part of the binding epitope. Ligands are marked as epitope in full (no residue-level selection).
Polymer chain residues where binder contact is desired (the epitope). Each key is a chain ID of a polymer entity, each value is an array of 0-indexed residue indices.
Client-provided key to prevent duplicate submissions on retries
Target workspace ID (admin keys only; ignored for workspace keys)
ReturnsExpand Collapse
class LibraryScreenEstimateCostResponse: …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: BreakdownCost breakdown for the billed application.
Cost breakdown for the billed application.
application: Literal["structure_and_binding", "small_molecule_design", "small_molecule_library_screen", 3 more]
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.
Number of units shown for the estimate. For structure-and-binding, this is the requested number of samples. For protein and small-molecule design/screen endpoints, this is the requested number of proteins or molecules.
Estimated total cost as a decimal string
Estimate cost for a protein library screen
import os
from boltz_api import Boltz
client = Boltz(
api_key=os.environ.get("BOLTZ_API_KEY"), # This is the default and can be omitted
)
response = client.protein.library_screen.estimate_cost(
proteins=[{
"entities": [{
"chain_ids": ["string"],
"type": "protein",
"value": "value",
}]
}],
target={
"chain_selection": {
"A": {
"chain_type": "polymer",
"crop_residues": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
}
},
"structure": {
"type": "url",
"url": "https://example.com",
},
"type": "structure_template",
},
)
print(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"
}