Old model endpoints
Wake model version
import urllib3
import os
version_id = ""
# Read secrets from environment variables
baseten_api_key = os.environ["BASETEN_API_KEY"]
resp = urllib3.request(
"POST",
f"https://app.baseten.co/model_versions/{version_id}/wake",
headers={"Authorization": f"Api-Key {baseten_api_key}"},
)
print(resp.json())
// Returns a 202 response code
{}
This is an old endpoint. Update to the wake endpoint for a published deployment.
Use this endpoint to wake a scaled-to-zero model version (now known as a model deployment).
https://app.baseten.co/model_versions/{version_id}/wake
Parameters
Version ID
string
requiredThe ID of the model version you want to wake.
Authorization
string
requiredYour Baseten API key, formatted with prefix Api-Key
(e.g. {"Authorization": "Api-Key abcd1234.abcd1234"}
).
import urllib3
import os
version_id = ""
# Read secrets from environment variables
baseten_api_key = os.environ["BASETEN_API_KEY"]
resp = urllib3.request(
"POST",
f"https://app.baseten.co/model_versions/{version_id}/wake",
headers={"Authorization": f"Api-Key {baseten_api_key}"},
)
print(resp.json())
// Returns a 202 response code
{}