Inference API
π Inference by environment
Use this endpoint to call the model associated with the specified environment.
Use this endpoint to call the deployment associated with the specified environment.
https://model-{model_id}.api.baseten.co/environments/{env_name}/predict"
Parameters
Model ID
string
requiredThe ID of the model you want to call.
Environment Name
string
requiredThe name of the modelβs environment you want to call.
Authorization
string
requiredYour Baseten API key, formatted with prefix Api-Key
(e.g. {"Authorization": "Api-Key abcd1234.abcd1234"}
).
Body
Model input
json
requiredJSON-serializable model input.