NetMind Power Documentation
  • NetMind Account
  • Inference
    • Model APIs
    • Dedicated Endpoints
  • Fine-tuning
  • Rent GPUs
    • Cloud Sync
    • Use Ngrok as Ingress Service
  • Rent Cluster (Comming soon)
  • API
    • API token
    • Files
    • Fine-tuning
      • List Models
      • Preparing your dataset
      • Create Job
      • Retrieve job
      • Download model
      • Cancel job
      • Deploy Checkpoint (coming soon)
    • Inference
      • Chat
      • Images
      • Haiper Inference
      • Asynchronous Inference
      • Dedicated Endpoints
      • Batch Processing
      • Embedding API
      • Deprecated Models
    • Rent GPU
      • SSH Authentication
      • List Available images
      • List Available GPU Instances
      • Create Your First Environment
      • Stop GPU instace
    • API Reference
      • Files
      • Fine-tuning
      • Rent GPU
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. Rent GPU

Stop GPU instace

To stop the instance, provide the ID from the previously created environment. Once the environment is stopped, credit deductions for the instance will cease, helping you manage costs when the GPU is not in active use.

Stopped environments may not be recoverable, as the resources could be allocated to other users during the stopped period.

Example Request:

Replace {{API_TOKEN}} with your actual token.

curl --location --request POST 'https://api.netmind.ai/v1/rentgpu/containers/1547/stop' \
--header 'Authorization: Bearer {{API_TOKEN}}'
import requests

url = "https://api.netmind.ai/v1/rentgpu/containers/1547/stop"

payload = {}
headers = {
  'Authorization': 'Bearer {{API_TOKEN}}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Example Response:

{
    "created_at": "2024-10-31T09:31:22",
    "name": "demo_test",
    "auth_id": 0,
    "gpu": 1,
    "node_name": "...",
    "type": 0,
    "image_template_id": 0,
    "rental_type": 1,
    "enable_vscode": false,
    "enable_jupyter": false,
    "cpu": 20,
    "disk_size": 300,
    "memory": 40,
    "gpu_name": "NVIDIA_GeForce_RTX_3090",
    "id": 0,
    "ssh": "ssh root@rent-gpus2.netmind.ai -p 5034",
    "status": "EXPIRED",
    "exposed_service": null,
    "vscode_service": null,
    "jupyter_service": null
}
PreviousCreate Your First EnvironmentNextAPI Reference

Last updated 6 months ago

Was this helpful?