Predict
Command Line Interface
cx predict --app starcoder --data '{"prompt": "def helloworld():"}' --is-public TruePython
cURL Request
$ export CX_API_KEY=<your-api-key>
$ curl -X 'POST' \
'https://api.computex.co/api/v1/deployments/template-03db38d/infer' \
-H 'accept: application/json' \
-H 'Authorization: Bearer $CX_API_KEY' \
-H 'Content-Type: multipart/form-data' \
-F 'input_file=@<filename-to-upload>;type=<mime type>' \
-F 'params=[{"name":"<your-param-name>", "value":"<your-param-value>"}, {"name":"<your-param-name>", "value":"<your-param-value>"}]'Last updated