Skip to main content
The system endpoints provide information about the Sudo API status and available models. These are typically used for health monitoring and discovering available AI models.

Health Check

Check if the Sudo API and backend infrastructure are healthy and ready to accept connections.

Basic Usage

TypeScript

Python Async Usage

Python

Get Supported Models

Retrieve a list of all AI models supported by the Sudo API, including their capabilities and pricing information.

Basic Usage

TypeScript

Python Async Usage

Python

Error Handling

Both system endpoints can encounter various errors. Here’s how to handle them:
TypeScript

Next Steps

Now that you understand the system endpoints:
  1. Try AI Responses - Start creating AI responses
  2. Explore Streaming - Add real-time capabilities
  3. Advanced Features - Function calling and more
Use the health check endpoint in your application’s readiness probes and the models endpoint to dynamically discover available AI models. Both TypeScript and Python SDKs provide the same system information with language-appropriate handling.