Data Model

Base Response Models

StandardResponse

All API responses follow this format:

{
  "message": "string",
  "code": integer,
  "data": object
}
Field
Type
Description

message

string

Response message

code

integer

Response code (see Response Code table)

data

object

Response data (specific structure depends on endpoint)

ResponseCode

Code
Description

10000

Success

10001

Invalid request parameters

10002

System error

10007

Record not exist

11000

VM not found

11001

VM status invalid

11002

No terminate permissions

12001

Resource status invalid

13000

Pod not found

14000

Endpoint not found

24000

Serverless unavailable

24001

Serverless does not exist

24011

Task does not exist


Container Registry Credential Models

Credential

Container registry credential object

Field
Type
Required
Description

id

integer

Yes

Credential ID

name

string

Yes

Credential name

type

string

Yes

Registry type: DOCKER_HUB, GCR, ECR, ACR, PRIVATE

createdAt

string

Yes

Creation time (ISO 8601)

CreateCredentialRequest

Field
Type
Required
Description

name

string

Yes

Credential name

type

string

Yes

Registry type

username

string

Yes

Registry username

password

string

Yes

Registry password/token

UpdateCredentialRequest

Field
Type
Required
Description

name

string

No

New credential name

username

string

No

New username

password

string

No

New password/token


Virtual Machine Models

VM

Field
Type
Required
Description

id

integer

Yes

VM ID

name

string

Yes

VM name

status

string

Yes

VM status: running, initializing, stopped, terminated

gpuDisplayName

string

Yes

GPU display name

ipAddress

string

Yes

IP address

cpuCores

integer

Yes

Number of CPU cores

memoryInGb

string

Yes

Memory size (GB)

gpuCount

integer

Yes

Number of GPUs

gpuMemoryInGb

string

Yes

GPU memory size (GB)

region

string

Yes

Region code

storageInGb

string

Yes

Storage size (GB)

sshTemplate

string

Yes

SSH connection template

createdAt

string

Yes

Creation time

isSpot

integer

Yes

Is Spot instance: 0=On-Demand, 1=Spot

CreateVMRequest

Field
Type
Required
Description

vmTypeId

integer

Yes

VM type ID

region

string

Yes

Region code (e.g., "us-east-1")

name

string

Yes

VM display name

isSpot

integer

No

0=On-Demand, 1=Spot (default: 0)

volumeMountPaths

map

No

Volume ID to mount path mapping

UpdateVMRequest

Field
Type
Required
Description

name

string

Yes

New VM name

VMType

Field
Type
Required
Description

gpuType

string

Yes

GPU type code

regions

array

Yes

List of available regions for this GPU type

regions[].region

string

Yes

Region code

regions[].regionName

string

Yes

Region name

regions[].available

boolean

Yes

Is available

regions[].vmTypeId

integer

Yes

VM type ID


Pod Models

Pod

Field
Type
Required
Description

id

integer

Yes

Pod ID

name

string

Yes

Pod name

image

string

Yes

Docker image

imageRegistry

string

Yes

Image registry URL

gpuType

string

Yes

GPU type

gpuDisplayName

string

Yes

GPU display name

gpuCount

integer

Yes

Number of GPUs

status

string

Yes

Pod status

createdAt

integer

Yes

Creation time (epoch ms)

sshCmd

string

Yes

SSH connection command

CreatePodRequest

Field
Type
Required
Description

name

string

Yes

Pod name (1-255 characters)

regions

array

No

Accepted region codes for scheduling

image

string

Yes

Docker image

imageRegistry

string

No

Docker registry URL (default: Docker Hub)

containerRegistryAuthId

integer

No

Container registry credential ID (for private images)

imagePublicType

string

No

Image type: PUBLIC or PRIVATE (default: PUBLIC)

resourceType

string

No

Resource type: GPU or CPU (default: GPU)

gpuType

string

Yes

GPU type (e.g., "NVIDIA_RTX_4090_24G")

gpuCount

integer

Yes

Number of GPUs (must be power of 2)

minSingleCardVramInGb

integer

No

Minimum single card VRAM (GB)

minSingleCardRamInGb

integer

No

Minimum single card RAM (GB)

minSingleCardVcpu

integer

No

Minimum single card vCPU count

shmInGb

integer

No

Shared memory size (GB)

containerVolumeInGb

integer

No

Container volume size (GB)

persistentVolumeInGb

integer

No

Persistent volume size (GB)

persistentMountPath

string

No

Persistent volume mount path

initializationCommand

string

No

Initialization command

environmentVars

array

No

Environment variables array

expose

array

No

Port exposure configuration

persistentVolumes

array

No

Persistent volumes configuration


Elastic Endpoint Models

Endpoint

Field
Type
Required
Description

id

string

Yes

Endpoint ID

name

string

Yes

Endpoint name

image

string

Yes

Docker image

status

string

Yes

Endpoint status

totalWorkers

integer

Yes

Total number of workers

runningWorkers

integer

Yes

Number of running workers

cost

number

Yes

Cost

serviceMode

string

Yes

Service mode: ALB, QUEUE, CUSTOM

webhook

string

No

Webhook URL

CreateEndpointRequest

Field
Type
Required
Description

name

string

Yes

Endpoint name (max 20 characters, start with letters)

image

string

Yes

Docker image

imageRegistry

string

No

Docker registry URL (default: Docker Hub)

containerRegistryAuthId

integer

No

Container registry credential ID

resources

array

Yes

GPU resource configuration

workers

integer

Yes

Number of workers

containerVolumeInGb

integer

Yes

Container volume size (min 20 GB)

environmentVars

array

No

Environment variables

expose

object

No

Port exposure configuration

serviceMode

string

Yes

Service mode

webhook

string

No

Webhook URL (max 512 characters)

UpdateEndpointRequest

Field
Type
Required
Description

name

string

Yes

Endpoint name

resources

array

Yes

GPU resource configuration

workers

integer

Yes

Number of workers (min 1)

containerVolumeInGb

integer

Yes

Container volume size (min 20 GB)

minSingleCardVramInGb

integer

No

Minimum GPU single card VRAM (GB)

minSingleCardVcpu

integer

No

Minimum GPU single card vCPU

minSingleCardRamInGb

integer

No

Minimum GPU single card RAM (GB)

credentialId

integer

No

Container registry credential ID

initializationCommand

string

No

Initialization command

environmentVars

array

No

Environment variables

expose

object

No

Port exposure configuration

webhook

string

No

Webhook URL (max 512 characters)

Worker

Field
Type
Required
Description

workerId

string

Yes

Worker ID

status

string

Yes

Worker status

createdAt

integer

Yes

Creation time


Task Models

Task

Field
Type
Required
Description

taskId

string

Yes

Task ID

endpointId

integer

Yes

Endpoint ID

endpointName

string

Yes

Endpoint name

status

string

Yes

Task status

workerUrl

string

Yes

Worker URL

webhook

string

No

Webhook URL

deliveryStatus

string

Yes

Delivery status

deliveryAttempts

integer

Yes

Number of delivery attempts

error

string

No

Error message

input

object

Yes

Task input data

output

object

No

Task output data

headers

object

No

Request headers

createdAt

integer

Yes

Creation time (epoch ms)

updatedAt

integer

Yes

Update time (epoch ms)

deliveredAt

integer

No

Delivery time (epoch ms)

SubmitTaskRequest

Field
Type
Required
Description

taskId

string

No

Task ID (alphanumeric + underscore, max 255 chars). Auto-generated UUID if omitted

input

object

Yes

Task input data (any JSON structure)

workerPort

integer

Yes

Worker port (1-65535)

processUri

string

Yes

Process URI on worker (max 255 chars)

webhook

string

No

Webhook URL for async result delivery (max 512 chars)

webhookAuthKey

string

No

Webhook authentication key (max 255 chars)

headers

map

No

Request headers to forward with task

TaskStatus

Status
Description

PROCESSING

Task is being executed

DELIVERED

Result delivered to webhook

SUCCESS

Task completed successfully

FAILED

Task execution failed

DeliveryStatus

Status
Description

INIT

Not yet sent

SUCCESS

Webhook delivered successfully

FAILED

Webhook delivery failed

MAX_RETRIES_EXCEEDED

Exceeded maximum retry attempts

WorkerLog

Field
Type
Required
Description

logs

array

Yes

Array of log entries

logs[].timestamp

string

Yes

Log timestamp (ISO 8601)

logs[].log

string

Yes

Log content

logs[].offset

integer

Yes

Log offset

hasMore

boolean

Yes

Whether there are more logs

nextSearchAfterTime

string

No

Pagination token (timestamp)

nextSearchAfterOffset

string

No

Pagination token (offset)


Storage Volume Models

Volume

Field
Type
Required
Description

id

integer

Yes

Volume ID

name

string

Yes

Volume name

sizeInGb

integer

No

Volume size (GB)

region

string

No

Region code

storageType

string

Yes

Storage type: S3, CEPH, VENDOR, R2

status

string

Yes

Volume status

vendorVolumeType

string

No

Vendor volume type: NVMe or HDD

mountCount

integer

Yes

Mount count

cost

number

Yes

Cost

createdAt

integer

Yes

Creation time (epoch ms)

CreateVolumeRequest

Field
Type
Required
Description

name

string

Yes

Volume name

storageType

string

Yes

Storage type

region

string

No*

Region code (required for CEPH/VENDOR/R2)

sizeInGb

integer

No*

Volume size GB (1-10240) (required for CEPH/VENDOR)

vendorVolumeType

string

No*

Volume type (required for VENDOR)

RenameVolumeRequest

Field
Type
Required
Description

name

string

Yes

New volume name

ResizeVolumeRequest

Field
Type
Required
Description

sizeInGb

integer

Yes

New volume size GB (1-10240)

VolumeStatus

Status
Description

creating

Volume is being provisioned

active

Volume is ready for use

deleting

Volume is being deleted

resizing

Volume is being resized

error

Volume operation failed

StorageType

Type
Required Fields
Description

S3

name

Unlimited capacity, no region needed

R2

name

Cloudflare R2 storage (S3-compatible, no egress fees)

CEPH

name, region, sizeInGb

Network storage for pods

VENDOR

name, region, sizeInGb, vendorVolumeType

Third-party vendor storage (Verda)


Common Nested Models

EnvironmentVariable

Field
Type
Required
Description

key

string

Yes

Environment variable name

value

string

Yes

Environment variable value

PortExpose

Field
Type
Required
Description

port

integer

Yes

Container port (1-65535)

protocol

string

Yes

Protocol type (e.g., "http", "tcp")

PersistentVolume

Field
Type
Required
Description

volumeId

integer

Yes

Volume ID

mountPath

string

Yes

Mount path

needBackup

boolean

No

Whether backup is needed

EndpointResource

Field
Type
Required
Description

region

string

Yes

Region code

gpuType

string

Yes

GPU type

gpuCount

integer

Yes

Number of GPUs

EndpointExpose

Field
Type
Required
Description

port

integer

Yes

Container port (1-65535)

protocol

string

Yes

Protocol type


Enumerations

ResourceStatus

Common to all resource types:

Status
Description

running

Running

initializing

Initializing

stopped

Stopped

terminated

Terminated

GPUType

Code
Display Name
VRAM

NVIDIA_RTX_4090_24G

RTX 4090

24 GB

NVIDIA_RTX_5090_32G

RTX 5090

32 GB

NVIDIA_RTX_A6000_48G

RTX A6000

48 GB

NVIDIA_RTX_6000_Ada_48G

RTX 6000 Ada

48 GB

NVIDIA_A100_PCIe_40G

A100 PCIe 40G

40 GB

NVIDIA_A100_40G

A100 40G

40 GB

NVIDIA_A100_PCIe_80G

A100 PCIe 80G

80 GB

NVIDIA_A100_80G

A100 80GB

80 GB

NVIDIA_H100_PCIe_80G

H100 PCIe

80 GB

NVIDIA_H100_80G

H100

80 GB

NVIDIA_RTX_PRO_6000_96G

RTX PRO 6000

96 GB

NVIDIA_H200_141G

H200

141 GB

NVIDIA_B200_180G

B200

180 GB

NVIDIA_B300_262G

B300

262 GB

AWS_Trainium_32G

Trainium1

32 GB

AMD_MI300X_192G

MI300X

192 GB

ServiceMode

Mode
Description

ALB

Application Load Balancer - Direct request routing

QUEUE

Queue mode - Requests queued and processed by available workers

CUSTOM

Custom deployment mode

CredentialType

Type
Description

DOCKER_HUB

Docker Hub

GCR

Google Container Registry

ECR

Amazon Elastic Container Registry

ACR

Azure Container Registry

PRIVATE

Private registry

ImagePublicType

Type
Description

PUBLIC

Public image

PRIVATE

Private image

Last updated

Was this helpful?