Skip to main content
POST
/
deployment
/
{deployment_id}
/
predict
Call a specific deployment of a model by deployment ID.
curl --request POST \
  --url https://model-{model_id}.api.baseten.co/deployment/{deployment_id}/predict \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{}

Authorizations

Authorization
string
header
required

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

deployment_id
string
required

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.