Predict (sync)
Call the model deployment associated with a specified environment.
Sends a synchronous predict request to the deployment promoted to the specified environment.
POST
Call the model deployment associated with a specified environment.
Authorizations
Pass your Baseten API key. Clients automatically send Authorization: Bearer <key>. Direct callers can also use Authorization: Api-Key <key>; both schemes are accepted.
Path Parameters
The name of the environment (e.g. production, staging).
Body
JSON-serializable model input. The shape is defined by the model's predict function.
Response
Successful synchronous prediction.
JSON-serializable output. The shape is defined by the model.
Previous
Call the development deployment of a model.Sends a synchronous predict request to the development deployment.
Next
Call the model deployment associated with a specified environment.