Estimate cost for a structure and binding prediction
Estimate the cost of a prediction without creating any resource or consuming GPU.
ParametersExpand Collapse
body PredictionStructureAndBindingEstimateCostParams
Input param.Field[PredictionStructureAndBindingEstimateCostParamsInput]
Entities []PredictionStructureAndBindingEstimateCostParamsInputEntityUnionEntities (proteins, RNA, DNA, ligands) forming the complex to predict. Order determines chain assignment.
Entities (proteins, RNA, DNA, ligands) forming the complex to predict. Order determines chain assignment.
type PredictionStructureAndBindingEstimateCostParamsInputEntityBoltz2ProteinEntity struct{…}
Modifications []PredictionStructureAndBindingEstimateCostParamsInputEntityBoltz2ProteinEntityModificationOptionalCCD post-translational modifications. Optional; defaults to an empty list when omitted. SMILES modifications are not supported.
CCD post-translational modifications. Optional; defaults to an empty list when omitted. SMILES modifications are not supported.
Msa PredictionStructureAndBindingEstimateCostParamsInputEntityBoltz2ProteinEntityMsaUnionOptionalOptional protein MSA control. Omit msa on all protein entities to use automatic MSA generation. Use custom for user-provided A3M/CSV files, or empty for single-sequence mode. Custom MSA and automatic MSA cannot be mixed in one request.
Optional protein MSA control. Omit msa on all protein entities to use automatic MSA generation. Use custom for user-provided A3M/CSV files, or empty for single-sequence mode. Custom MSA and automatic MSA cannot be mixed in one request.
type PredictionStructureAndBindingEstimateCostParamsInputEntityBoltz2ProteinEntityMsaBoltz2CustomMsa struct{…}Use a user-provided MSA for this protein entity. If any protein entity uses a custom MSA, every other protein entity must use either custom or empty MSA; automatic MSA generation cannot be mixed with custom MSAs in the same request.
Use a user-provided MSA for this protein entity. If any protein entity uses a custom MSA, every other protein entity must use either custom or empty MSA; automatic MSA generation cannot be mixed with custom MSAs in the same request.
Format PredictionStructureAndBindingEstimateCostParamsInputEntityBoltz2ProteinEntityMsaBoltz2CustomMsaFormatCustom MSA file format. Base64 uploads must use media_type text/x-a3m for A3M or text/csv for CSV.
Custom MSA file format. Base64 uploads must use media_type text/x-a3m for A3M or text/csv for CSV.
type PredictionStructureAndBindingEstimateCostParamsInputEntityBoltz2ProteinEntityMsaBoltz2EmptyMsa struct{…}Run this protein entity in single-sequence mode without an MSA. Use this for chains that should not use automatic MSA generation, including non-homologous chains in a request that also includes custom MSAs.
Run this protein entity in single-sequence mode without an MSA. Use this for chains that should not use automatic MSA generation, including non-homologous chains in a request that also includes custom MSAs.
type PredictionStructureAndBindingEstimateCostParamsInputEntityRnaEntity struct{…}
type PredictionStructureAndBindingEstimateCostParamsInputEntityDnaEntity struct{…}
Binding PredictionStructureAndBindingEstimateCostParamsInputBindingUnionOptional
Bonds []PredictionStructureAndBindingEstimateCostParamsInputBondOptionalBond constraints between atoms. Atom-level ligand references currently support ligand_ccd only; ligand_smiles is unsupported.
Bond constraints between atoms. Atom-level ligand references currently support ligand_ccd only; ligand_smiles is unsupported.
Atom1 PredictionStructureAndBindingEstimateCostParamsInputBondAtom1UnionLigand 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.
Atom2 PredictionStructureAndBindingEstimateCostParamsInputBondAtom2UnionLigand 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.
Constraints []PredictionStructureAndBindingEstimateCostParamsInputConstraintUnionOptionalStructural 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.
type PredictionStructureAndBindingEstimateCostParamsInputConstraintPocketConstraint 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 PredictionStructureAndBindingEstimateCostParamsInputConstraintContactConstraint struct{…}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.
Token1 PredictionStructureAndBindingEstimateCostParamsInputConstraintContactConstraintToken1UnionLigand 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.
type PredictionStructureAndBindingEstimateCostParamsInputConstraintContactConstraintToken1PolymerContactToken struct{…}
Token2 PredictionStructureAndBindingEstimateCostParamsInputConstraintContactConstraintToken2UnionLigand 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.
type PredictionStructureAndBindingEstimateCostParamsInputConstraintContactConstraintToken2PolymerContactToken struct{…}
ModelOptions PredictionStructureAndBindingEstimateCostParamsInputModelOptionsOptional
Templates []PredictionStructureAndBindingEstimateCostParamsInputTemplateOptionalTemplate structure files to guide protein-chain prediction. Supports up to 4 CIF or PDB templates from HTTPS URLs or base64 uploads. Use template_chains to map request chains to template-file chains.
Template structure files to guide protein-chain prediction. Supports up to 4 CIF or PDB templates from HTTPS URLs or base64 uploads. Use template_chains to map request chains to template-file chains.
TemplateChains []PredictionStructureAndBindingEstimateCostParamsInputTemplateTemplateChainRequest-to-template chain mappings. Each input_chain_id and template_chain_id must be unique within this template.
Request-to-template chain mappings. Each input_chain_id and template_chain_id must be unique within this template.
TemplateStructure PredictionStructureAndBindingEstimateCostParamsInputTemplateTemplateStructureUnionHow to provide a template structure file. URLs must point to a CIF or PDB file; base64 uploads must use chemical/x-cif or chemical/x-pdb.
How to provide a template structure file. URLs must point to a CIF or PDB file; base64 uploads must use chemical/x-cif or chemical/x-pdb.
type PredictionStructureAndBindingEstimateCostParamsInputTemplateTemplateStructureURLSource struct{…}
type PredictionStructureAndBindingEstimateCostParamsInputTemplateTemplateStructureTemplateStructureBase64Source struct{…}
MediaType PredictionStructureAndBindingEstimateCostParamsInputTemplateTemplateStructureTemplateStructureBase64SourceMediaTypeTemplate structure MIME type
Template structure MIME type
ReturnsExpand Collapse
type PredictionStructureAndBindingEstimateCostResponse 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 PredictionStructureAndBindingEstimateCostResponseBreakdownCost breakdown for the billed application.
Cost breakdown for the billed application.
Application PredictionStructureAndBindingEstimateCostResponseBreakdownApplication
Estimate cost for a structure and binding 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.StructureAndBinding.EstimateCost(context.TODO(), boltzapi.PredictionStructureAndBindingEstimateCostParams{
Input: boltzapi.PredictionStructureAndBindingEstimateCostParamsInput{
Entities: []boltzapi.PredictionStructureAndBindingEstimateCostParamsInputEntityUnion{boltzapi.PredictionStructureAndBindingEstimateCostParamsInputEntityUnion{
OfPredictionStructureAndBindingEstimateCostsInputEntityBoltz2ProteinEntity: &boltzapi.PredictionStructureAndBindingEstimateCostParamsInputEntityBoltz2ProteinEntity{
ChainIDs: []string{"string"},
Value: "value",
},
}},
},
Model: "boltz-2.1",
})
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"
}