Inference API
Published deployment
Use this endpoint to call any published deployment of your model.
https://model-{model_id}.api.baseten.co/deployment/{deployment_id}/predict
Parameters
Model ID
string
requiredThe ID of the model you want to call.
Deployment ID
string
requiredThe ID of the specific deployment you want to call.
Authorization
string
requiredYour Baseten API key, formatted with prefix Api-Key
(e.g. {"Authorization": "Api-Key abcd1234.abcd1234"}
).
Body
Model input
json
requiredJSON-serializable model input.