Create Your First Environment
curl --location 'https://api.deeptrin.com/v1/rentgpu/containers' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_TOKEN}}' \
--data '
{
"name": "demo_test",
"auth_id": 0,
"gpu": 1,
"node_name": "...",
"image_template_id": 1,
"payment_type": 0
}'import requests
import json
url = "https://api.deeptrin.com/v1/rentgpu/containers"
payload = json.dumps({
"name": "demo_test",
"auth_id": 0,
"gpu": 1,
"node_name": "...",
"image_template_id": 0,
"payment_type": 0
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer {{API_TOKEN}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Last updated