cURL Example
Example of a curl request and response for model inference
Last updated
Was this helpful?
Example of a curl request and response for model inference
Last updated
Was this helpful?
Since we are making a post request we denote it as such
example_json is an example input file
When referencing a json file the file must be in the current path and denoted with "@"
If the json text is passed in directly the "@" can be omitted.
Base URL: https://api.corsali.com/predict/ is the base URL
Path: "Xxxx...-..." is an example model id
(application/json is an example content type)
(Xxx..-.... is an example organization id)
(eyJxxx.eyJxxx.1ANxxx is an example authentication key)
The model specific values can be found 👉 .
(example_json is an example input file)
An example cURL response made up of data returned from the model and a warning. For more information see .