Estimate cost for a structure and binding prediction
predictions.structure_and_binding.estimate_cost(StructureAndBindingEstimateCostParams**kwargs) -> StructureAndBindingEstimateCostResponse
POST/compute/v1/predictions/structure-and-binding/estimate-cost
Estimate the cost of a prediction without creating any resource or consuming GPU.
Estimate cost for a structure and binding prediction
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.predictions.structure_and_binding.estimate_cost(
input={
"entities": [{
"chain_ids": ["string"],
"type": "protein",
"value": "value",
}]
},
model="boltz-2.1",
)
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"
}