This is an old endpoint. Update to the endpoint for a production deployment and the new model response format based on the migration guide.

Use this endpoint to call the primary version of a model (now known as the production deployment).

https://app.baseten.co/models/{model_id}/predict

Parameters

Model ID
string
required

The ID of the model you want to call.

Authorization
string
required

Your Baseten API key, formatted with prefix Api-Key (e.g. {"Authorization": "Api-Key abcd1234.abcd1234"}).

Model input
json
required

JSON-serializable model input.