Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Body

application/json
checkpoint_ids
string[]
required

Sampler checkpoint IDs to deploy together.

Minimum array length: 1
model_name
string
required

Name for the created model.

Minimum string length: 1
instance_type_id
string
required

Instance type ID for the deployment.

hf_secret_name
string
required

Name of the team-scoped secret that supplies HF_TOKEN.

Minimum string length: 1

Response

200 - application/json
model_id
string
required

ID of the created or updated model.

deployment_id
string
required

ID of the created model version deployment.