curl http://localhost:8000/health
import requests
response = requests.get("http://localhost:8000/health")
print(response.json())
{
"status": "healthy",
"models_loaded": 1,
"timestamp": "2025-01-15T14:30:00"
}
Health Check
Verify API server liveness and model readiness for Docker and Kubernetes health probes
GET
/
health
curl http://localhost:8000/health
import requests
response = requests.get("http://localhost:8000/health")
print(response.json())
{
"status": "healthy",
"models_loaded": 1,
"timestamp": "2025-01-15T14:30:00"
}
Verifies that the API server is running and has a production model loaded. No authentication required.
Use this endpoint for:
- Liveness Probes (Kubernetes/Docker
HEALTHCHECK) - Startup Verification (CI/CD pipelines)
- Load Balancer Checks (Nginx upstream health)
Response
string
required
Always
"healthy" when the server is operational.integer
required
Number of models currently loaded in memory (typically
1).string
required
ISO 8601 formatted timestamp of the health check.
curl http://localhost:8000/health
import requests
response = requests.get("http://localhost:8000/health")
print(response.json())
{
"status": "healthy",
"models_loaded": 1,
"timestamp": "2025-01-15T14:30:00"
}
Was this page helpful?
