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

Use this endpoint to call any model version (now known as a model deployment).

https://app.baseten.co/model_versions/{version_id}/predict

Parameters

Version ID
string
required

The version 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.