curl http://localhost:8000/model/info
import requests
response = requests.get("http://localhost:8000/model/info")
print(response.json())
{
"model_version": "production",
"model_type": "CatBoost",
"features": ["temp", "hum", "windspeed", "hr", "weekday", "weathersit"],
"last_updated": "2025-01-15T14:30:00",
"model_id": "production"
}
Model Information
Retrieve metadata about the currently loaded production model including type, features, and version
GET
/
model
/
info
curl http://localhost:8000/model/info
import requests
response = requests.get("http://localhost:8000/model/info")
print(response.json())
{
"model_version": "production",
"model_type": "CatBoost",
"features": ["temp", "hum", "windspeed", "hr", "weekday", "weathersit"],
"last_updated": "2025-01-15T14:30:00",
"model_id": "production"
}
Retrieves metadata about the currently loaded production model. No authentication required.
Response
string
required
The version tag identifier for the active model (e.g.,
"production").string
required
Algorithm type of the loaded model (e.g.,
"CatBoost", "RandomForest").string[]
required
List of feature names the model expects per the .
string
ISO timestamp of when the model was promoted to the production alias.
string
required
Internal identifier for the model instance.
curl http://localhost:8000/model/info
import requests
response = requests.get("http://localhost:8000/model/info")
print(response.json())
{
"model_version": "production",
"model_type": "CatBoost",
"features": ["temp", "hum", "windspeed", "hr", "weekday", "weathersit"],
"last_updated": "2025-01-15T14:30:00",
"model_id": "production"
}
Was this page helpful?
