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

SSH Authentication

Before creating a GPU virtual environment, an Authentication method must be established to serve as credentials for logging into the environment once it is set up. Currently, only password-based authentication is supported. This password will be securely stored and used as the login credential for accessing the virtual environment.

Example Request:

Replace {{API_TOKEN}} with your actual token.

curl --location 'https://api.netmind.ai/v1/rentgpu/auths' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_TOKEN}}' \
--data '{"value":"{{YOUR_PASSWORD}}"}'
import requests
import json

url = "https://api.netmind.ai/v1/rentgpu/auths"

payload = json.dumps({
  "value": "{{YOUR_PASSWORD}}"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer {{API_TOKEN}}'
}

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

print(response.text)

Example Response:

{
    "id": 0,
    "value": "..."
}
PreviousRent GPUNextList Available images

Last updated 6 months ago

Was this helpful?