Overview
Theterminate_compute action allows you to terminate a GPU instance on the Hyperbolic platform. Once terminated, the instance will no longer be accessible and billing will stop.
Function Signature
Input Schema
The ID of the instance to terminate (e.g., “respectful-rose-pelican”). You can get instance IDs using the
get_gpu_status action.Response
Returns a formatted JSON string representation of the API response.A formatted JSON string confirming the termination request, typically including the instance ID and new status.
API Endpoint
Example Usage
Example Response
Important Notes
- The instance ID must be valid and currently active
- After termination, the instance will no longer be accessible
- Billing stops once the instance is terminated
- You can get instance IDs using the
get_gpu_statusaction - Requires
HYPERBOLIC_API_KEYenvironment variable - This action is irreversible - terminated instances cannot be recovered
Error Handling
The function raises:ValueError: If instance_id is missing or invalidrequests.exceptions.RequestException: If the API request fails, with detailed error information including:- HTTP status code
- API error messages
- Response content
Workflow Example
Related Actions
- Get GPU Status - Get instance IDs and current status
- Rent Compute - Rent new GPU instances
- Get Spend History - View billing for terminated instances