cURL
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>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Model Id from huggingface
"google/vit-base-patch16-224"
Task
"image-classification"
Successful Response
Deploy Id
"fkj843kjh8"