Sử dụng phương thức GET hoặc POST để lấy danh sách GPU:
https://ckey.vn/api/getgpu2?key=[key]&gpuType=[gpuType]
Tham số:
key: Khóa API của bạn.gpuType: Loại GPU bạn muốn lấy thông tin.Kết quả thành công:
{
"status": "success",
"data": [{
"id": 1234,
"diskType": "nvme",
"downloadSpeedtest": 424,
"uploadSpeedtest": 417,
"diskSpeedRead": 3875,
"diskSpeedWrite": 5741,
"gpuModel": "RTX A2000",
"gpuPcieGen": 4,
"gpuPcieBandwidth": 32,
"gpuPcieWidth": 16,
"gpuDriverVer": "565.77",
"gpuCudaVer": "12.6",
"sla": 99.3,
"errors": [],
"cpuModel": "AMD Ryzen 5 8500G w\/ Radeon 740M Graphics",
"rentalTimeMax": 4320,
"rentedDemandCount": 0,
"expiresAt": "2025-12-31 06:00:00 GMT+0700",
"diskSize": 1830,
"cpuCoreCount": 12,
"systemMemory": 65536,
"sysDlp": 34,
"gpuTFlops": 14,
"gpuMemorySize": 6144,
"gpuCount": 1,
"pricePerGpu": 1690,
"pricePerDiskSize": 1,
"pricePerTFlops": 280,
"pricePerDlp": 680,
"isAvailableForDemand": true,
"isAvailableForInterruptible": true,
"rig": {
"id": 2345,
"gpuCount": 1,
"region": "Europe",
"country": "NO"
},
"rigRentalDatacenter": null,
"rigRentalHostId": 34,
"numOfInstances": 1,
"instanceMarket": 1234
}]
}
]
}
API Link:
Tùy chọn thuê gpu:
https://ckey.vn/api/thuegpu2?key=[key]&id=[id]&templates=[templates]&count_gpu=[count_gpu]&count_storage=[count_storage]&count_port=[count_port]
Tham số:
key: Khóa API của bạn.id: ID của node GPU.templates: Loại templates hay os hệ điều hành.count_gpu: Số lượng GPU.count_storage: Số lượng Storage tính theo GB.count_port: VD 111,222.Kết quả thành công:
{
"status": 200,
"message": "Thuê GPU thành công!",
"id": 1234
}
API Link:
Tùy chọn Reboot GPU:
https://ckey.vn/api/option_gpu2?key=[key]&id=[id]&option=[option]
Tham số:
key: Khóa API của bạn.id: ID GPU đã thuê.Kết quả thành công:
{"message":"Reboot successful","success":true}
{"message":"Delete successful","success":true}
API Link:
Tùy chọn Lấy thông tin GPU:
https://ckey.vn/api/infogpu2?key=[key]&id=[id]
Tham số:
key: Khóa API của bạn.id: ID GPU đã thuê.Kết quả thành công:
{"status":{"id":1,"gpuModel":"RTX 3060","gpuPciBus":["01:00.0"],"debug":null,"gpuMemorySize":12288,"gpuCount":1,"cpuCoreCount":18.2857,"systemMemory":74898,"sysDlp":0,"password":"rri_rlfotrGyU4tY9UFh"},"message":"success"}
API Link: