Overview
Therent_compute action allows you to rent GPU machines on the Hyperbolic platform. This function creates a marketplace instance with specified GPU resources.
Function Signature
Input Schema
The cluster name that the user wants to rent from. Obtain this from the
get_available_gpus action.The node ID that the user wants to rent. Obtain this from the
get_available_gpus action.The number of GPUs to allocate from the node.
Response
Returns a formatted JSON string containing the API response with instance details.A formatted JSON string representation of the created marketplace instance, including instance ID, status, and configuration details.
API Endpoint
Example Usage
Important Notes
- All inputs must be provided to process the rental
- If you haven’t used the
get_available_gpusaction in the conversation, always use it first to get valid cluster and node names - After renting, you can find the instance through the
get_gpu_statusaction - Access the instance through the
ssh_accessaction - Run commands on it through the
remote_shellaction - Requires
HYPERBOLIC_API_KEYenvironment variable
Error Handling
The function raises:ValueError: If any required parameter (cluster_name, node_name, gpu_count) is missing or invalidrequests.exceptions.RequestException: If the API request fails, including HTTP errors with response details
Related Actions
- Get Available GPUs - List available GPU options
- Get GPU Status - Check status of rented instances
- SSH Access - Connect to rented instances
- Remote Shell - Execute commands on instances
- Terminate Compute - Terminate rented instances