Skip to main content
POST
Create Deployment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Required string length: 2 - 128
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
model_source
ArtifactModelSource · object
required

One run's export.

step is normally absent on the way in and present on the way back out: the resolver takes the run's highest exported step and writes down which one that was. An unpinned reference would otherwise move to a later export, and a Revision that changes what it loads is not a Revision.

config
ServingConfigIn · object
required
project_key
string | null

Release project, fixed for the deployment's lifetime. Inferred from a recorded model origin when omitted.

Required string length: 1 - 256
fleet_id
string
default:""
serve_mode
enum<string>
default:proxied
Available options:
proxied,
direct

Response

Successful Response

deployment
ModelDeploymentOut · object
required
initial_token
DeploymentTokenCreatedOut · object | null