List available hardware for models
GET
/v1/hardwareExample cURL request:
curl -s \
-H "Authorization: Token <paste-your-token-here>" \
https://api.replicate.com/v1/hardware
The response will be a JSON array of hardware objects:
[
{"name": "CPU", "sku": "cpu"},
{"name": "Nvidia T4 GPU", "sku": "gpu-t4"},
{"name": "Nvidia A40 GPU", "sku": "gpu-a40-small"},
{"name": "Nvidia A40 (Large) GPU", "sku": "gpu-a40-large"},
]
请求参数
无
示例代码
Responses
Success(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
array of:
name
string
optional
The name of the hardware.
sku
string
optional
The SKU of the hardware.
Example
[
{
"name": "string",
"sku": "string"
}
]
Last modified: 1 年前