Command line tool for Deep Infra cloud ML inference service.
curl https://deepinfra.com/get.sh | shYou can also download deepctl from Releases.
You need a Github account to use deepctl. This command will open your Github Sign-on page in your browser. Follow instructions there.
deepctl auth loginYou can view your Deep Infra API auth token to use it in your applications using the following command or in the dashboard.
deepctl auth tokendeepctl model listdeepctl deploy create -m openai/whisper-smallTo get information about model, it's inference arguments, response fields and ways to call endpoint, use the following command:
deepctl model info -m openai/whisper-smallOutput:
model: openai/whisper-small
type: automatic-speech-recognition
CURL invocation:
curl -X POST \
-H "Authorization: bearer $AUTH_TOKEN" \
-F audio=@my_voice.mp3 \
'https://api.deepinfra.com/v1/inference/openai/whisper-small'
deepctl invocation:
deepctl infer \
-m 'openai/whisper-small' \
-i audio=@my_voice.mp3
...
When using HTTP inference api make sure to pass your AUTH_TOKEN header.
curl -X POST \
-H "Authorization: bearer $AUTH_TOKEN" \
-F audio=@/path/to/hello_world.mp3 \
'https://api.deepinfra.com/v1/inference/openai/whisper-small'Output:
{
"text": "Hello World",
"segments": [
...
],
"language": "en"
}
deepctl deploy listOutput:
[
{
"created_at": "2023-01-26T19:33:23",
"deploy_id": "DpM4BkrjEspUwmTa",
"fail_reason": "",
"model_name": "openai/whisper-small",
"status": "running",
"task": "automatic-speech-recognition",
"updated_at": "2023-01-26T19:33:23"
}
]
Use deploy_id from the output above.
deepctl log query -f DpM4BkrjEspUwmTaUse deploy_id from the output above to delete the deployment.
deepctl deploy delete DpM4BkrjEspUwmTaYou can always use
deepctl helpto view more information on any command.
deepctl version check
deepctl version update