Health

Health Endpoint

🚨 USE /health/liveliness to health check the proxy 🚨

See more 👉 https://docs.litellm.ai/docs/proxy/health

Check the health of all the endpoints in config.yaml

To run health checks in the background, add this to config.yaml:

general_settings:
    # ... other settings
    background_health_checks: True

else, the health checks will be run on models when /health is called.

GET/health
Authorization
Query parameters
Response

Successful Response

Body
any
Request
const response = await fetch('/health', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}