Skip to main content
POST
Create Deployment

授权

Authorization
string
header
必填

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

请求体

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

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
必填
fleet_id
string
默认值:""
serve_mode
enum<string>
默认值:proxied
可用选项:
proxied,
direct

响应

Successful Response

deployment
ModelDeploymentOut · object
必填
initial_token
DeploymentTokenCreatedOut · object | null