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.
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"
}