Skip to main content
POST
/
deploy
/
hf
Deploy Create Hf
curl --request POST \
  --url https://api.example.com/deploy/hf/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model_name": "<string>",
  "task": "image-classification"
}
'
{
  "deploy_id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Headers

xi-api-key
string | null

Body

application/json
model_name
string
required

Model Id from huggingface

Example:

"google/vit-base-patch16-224"

task
string | null

Task

Example:

"image-classification"

Response

Successful Response

deploy_id
string
required

Deploy Id

Example:

"fkj843kjh8"