GPU API文档

获取GPU列表

使用 GETPOST 方法获取GPU列表:

https://ckey.vn/api/getgpu2?key=[key]&gpuType=[gpuType]

参数:

  • key: 您的API密钥.
  • gpuType: 您要获取信息的GPU类型.

成功结果:

{
    "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链接:

租用GPU

GPU租用选项:

https://ckey.vn/api/thuegpu2?key=[key]&id=[id]&templates=[templates]&count_gpu=[count_gpu]&count_storage=[count_storage]&count_port=[count_port]

参数:

  • key: 您的API密钥.
  • id: GPU节点ID.
  • templates: 模板或操作系统类型.
  • count_gpu: GPU数量.
  • count_storage: 存储容量(GB).
  • count_port: 例如 111,222.
Templates:

成功结果:

{
  "status": 200,
  "message": "Thuê GPU thành công!",
  "id": 1234
}

API链接:

重启GPU,删除GPU

重启GPU选项:

https://ckey.vn/api/option_gpu2?key=[key]&id=[id]&option=[option]

参数:

  • key: 您的API密钥.
  • id: 已租用的GPU ID.
option:

成功结果:

{"message":"Reboot successful","success":true}
{"message":"Delete successful","success":true}

API链接:

获取GPU信息

获取GPU信息选项:

https://ckey.vn/api/infogpu2?key=[key]&id=[id]

参数:

  • key: 您的API密钥.
  • id: 已租用的GPU ID.

成功结果:

{"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链接:

© 2025. ckey.vn