Pods
Create pod
OpenapiPodCreateRequest
ImagePublicTypeEnum: PUBLIC, PRIVATE
ResourceTypeEnum: GPU,CPU
Region
Region List
pod nick name
image name
image registry url
https://index.docker.io/v1/container registry credential ID
image registry username
image registry token or password
gpu type
gpu count
Create on Spot resource when true; default false
Spot instance max hourly price cap for the whole machine; only valid when isSpot=true
shm unit:GB
min single card ram unit: GB
min single card vram unit: GB
min single card vcpu unit: count
container volume unit:GB
initialization command
Pod lifecycle webhook callback URL. When creating a Pod, you can provide a callbackUrl in the request body. The platform will send HTTP POST notifications to this URL whenever the Pod transitions into a key lifecycle state (RUNNING, TERMINATED, FAILED, or DEGRADED).
OK
message
code
data
Bad Request
Internal Server Error
POST /openapi/v1/pods/create HTTP/1.1
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 792
{
"imagePublicType": "text",
"resourceType": "text",
"region": "text",
"regionList": [
"text"
],
"podName": "text",
"image": "text",
"imageRegistry": "https://index.docker.io/v1/",
"credentialId": 1,
"imageRegistryUsername": "text",
"imageRegistryToken": "text",
"gpuType": "text",
"gpuCount": 1,
"isSpot": true,
"maxPrice": 1,
"shmInGb": 1,
"minSingleCardRamInGb": 1,
"minSingleCardVramInGb": 1,
"minSingleCardVcpu": 1,
"containerVolumeInGb": 1,
"initializationCommand": "text",
"environmentVars": [
{
"key": "HF_HOME",
"value": "/workspace/cache"
}
],
"expose": [
{
"port": 8000,
"protocol": "HTTP"
}
],
"persistentVolumes": [
{
"id": 448086953767260540,
"name": "my-volume",
"volumeType": "CloudStorage",
"mountMode": "Data",
"volumeSize": 50,
"volumePrice": 0,
"mountPath": "/workspace/data",
"cloudStorageType": "R2",
"systemVolumeType": "Ceph"
}
],
"callbackUrl": "text"
}{
"message": "text",
"code": 1,
"data": 1
}Pod resume
0OK
message
successcode
10000data
Bad Request
Internal Server Error
POST /openapi/v1/pods/resume/{podId} HTTP/1.1
x-api-key: YOUR_API_KEY
Accept: */*
{
"message": "success",
"code": 10000,
"data": null
}Pod pause
0OK
message
successcode
10000data
Bad Request
Internal Server Error
POST /openapi/v1/pods/pause/{podId} HTTP/1.1
x-api-key: YOUR_API_KEY
Accept: */*
{
"message": "success",
"code": 10000,
"data": null
}Pod delete
0OK
message
successcode
10000data
Bad Request
Internal Server Error
DELETE /openapi/v1/pods/{podId} HTTP/1.1
x-api-key: YOUR_API_KEY
Accept: */*
{
"message": "success",
"code": 10000,
"data": null
}Fetch detailed information of a specific pod by its ID
0OK
message
code
Bad Request
Internal Server Error
GET /openapi/v1/pods/{podId} HTTP/1.1
x-api-key: YOUR_API_KEY
Accept: */*
{
"message": "text",
"code": 1,
"data": {
"id": 1,
"orgId": 1,
"applicantId": 1,
"podName": "text",
"imageId": 1,
"officialImage": "OFFICIAL",
"imagePublicType": "PUBLIC",
"image": "text",
"imageRegistry": "text",
"imageRegistryUsername": "text",
"resourceType": "GPU",
"gpuType": "text",
"gpuDisplayName": "text",
"gpuCount": 1,
"shmInGb": 1,
"singleCardVramInGb": 1,
"singleCardRamInGb": 1,
"singleCardVcpu": 1,
"location": "text",
"region": "text",
"cloudType": "SECURE",
"containerVolumeInGb": 1,
"networkUploadMbps": 1,
"networkDownloadMbps": 1,
"diskReadSpeedMbps": 1,
"diskWriteSpeedMbps": 1,
"singleCardPrice": 1,
"containerVolumePrice": 1,
"initializationCommand": "text",
"environmentVars": [
{
"key": "HF_HOME",
"value": "/workspace/cache"
}
],
"expose": [
{
"port": 8000,
"proxyPort": 18000,
"protocol": "HTTP",
"host": "pod-449722593352847664.example.com",
"healthy": true,
"ingressUrl": "https://pod-449722593352847664.example.com",
"serviceName": "pod-449722593352847664-8000"
}
],
"sshCmd": "text",
"status": "INITIALIZE",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"persistentVolumes": [
{
"id": 448086953767260540,
"name": "my-volume",
"volumeType": "CloudStorage",
"volumeSize": null,
"volumePrice": 0,
"mountPath": "/workspace/data",
"cloudStorageType": "R2",
"systemVolumeType": null
}
],
"internalIp": "text"
}
}Get Org pod list
OK
message
code
Bad Request
Internal Server Error
GET /openapi/v1/pods/list HTTP/1.1
x-api-key: YOUR_API_KEY
Accept: */*
{
"message": "text",
"code": 1,
"data": [
{
"id": 1,
"orgId": 1,
"applicantId": 1,
"podName": "text",
"imageId": 1,
"officialImage": "OFFICIAL",
"imagePublicType": "PUBLIC",
"image": "text",
"imageRegistry": "text",
"imageRegistryUsername": "text",
"resourceType": "GPU",
"gpuType": "text",
"gpuDisplayName": "text",
"gpuCount": 1,
"shmInGb": 1,
"singleCardVramInGb": 1,
"singleCardRamInGb": 1,
"singleCardVcpu": 1,
"location": "text",
"region": "text",
"cloudType": "SECURE",
"containerVolumeInGb": 1,
"networkUploadMbps": 1,
"networkDownloadMbps": 1,
"diskReadSpeedMbps": 1,
"diskWriteSpeedMbps": 1,
"singleCardPrice": 1,
"containerVolumePrice": 1,
"initializationCommand": "text",
"environmentVars": [
{
"key": "HF_HOME",
"value": "/workspace/cache"
}
],
"expose": [
{
"port": 8000,
"proxyPort": 18000,
"protocol": "HTTP",
"host": "pod-449722593352847664.example.com",
"healthy": true,
"ingressUrl": "https://pod-449722593352847664.example.com",
"serviceName": "pod-449722593352847664-8000"
}
],
"sshCmd": "text",
"status": "INITIALIZE",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"persistentVolumes": [
{
"id": 448086953767260540,
"name": "my-volume",
"volumeType": "CloudStorage",
"volumeSize": null,
"volumePrice": 0,
"mountPath": "/workspace/data",
"cloudStorageType": "R2",
"systemVolumeType": null
}
],
"internalIp": "text"
}
]
}Last updated
Was this helpful?