Predict (sync)
Call a specific deployment of a model by deployment ID.
Sends a synchronous predict request to the specified deployment.
POST
Call a specific deployment of a model by deployment ID.
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 alphanumeric ID of the deployment.
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 production environment of a chain.Sends a synchronous request to the chain deployment promoted to the production environment. The request body is forwarded to the chain's `run_remote` entrypoint.
Next
Call a specific deployment of a model by deployment ID.