latestOpenAPI 3.0.12026-08-10114644.5 KB

998cc08df103

API v2
Serverless v2

Create Endpoint

Create a new endpoint

post/v2/serverless

Request body

namestring required

Deployment name

imageRegistrystring

Docker registry URL

imagestring required

Docker image name

minSingleCardVramInGbinteger

Minimum GPU single card VRAM in GB

minSingleCardVcpuinteger

Minimum GPU single card vCPU count

minSingleCardRamInGbinteger

Minimum GPU single card RAM in GB

workersinteger required

Number of workers

credentialIdinteger

Credential ID

containerVolumeInGbinteger required

Container volume in GB

initializationCommandstring

Initialization command

serviceModestring required

Service mode: ALB, QUEUE, CUSTOM

webhookstring

Webhook URL for receiving task results

Response

OK