Skip to main content
This document outlines the core functionalities provided by the Runpod API, including how to interact with Endpoints, manage Templates, and list available GPUs. These operations let you dynamically manage computational resources within the Runpod environment.

Get Endpoints

To retrieve a comprehensive list of all available endpoint configurations within Runpod, you can use the get_endpoints() function. This function returns a list of endpoint configurations, allowing you to understand what’s available for use in your projects.

Create Template

Templates in Runpod serve as predefined configurations for setting up environments efficiently. The create_template() function facilitates the creation of new templates by specifying a name and a Docker image.

Create Endpoint

Creating a new endpoint with the create_endpoint() function. This function requires you to specify a name and a template_id. Additional configurations such as GPUs, number of Workers, and more can also be specified depending your requirements.

Get GPUs

For understanding the computational resources available, the get_gpus() function lists all GPUs that can be allocated to endpoints in Runpod. This enables optimal resource selection based on your computational needs.

Get GPU by Id

Use get_gpu() and pass in a GPU Id to retrieve details about a specific GPU model by its ID. This is useful when understanding the capabilities and costs associated with various GPU models.
Through these functionalities, the Runpod API enables efficient and flexible management of computational resources, catering to a wide range of project requirements.