Skip to main content
POST
/
api
/
v1
/
predictions
/
models
/
{modelKey}
Create prediction
curl --request POST \
  --url https://api.mathfi.ai/api/v1/predictions/models/{modelKey} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "predictionKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "PENDING",
  "predictionCreationProgressUrl": "<string>"
}

Authorizations

Authorization
string
header
required

Obtain a token from POST /api/login. Valid for 1 hour.

Path Parameters

modelKey
string<uuid>
required

Body

multipart/form-data
file
file
required

Response

Prediction created successfully

predictionKey
string<uuid>
required
status
enum<string>
required

Status of a prediction job:

StatusDescription
PENDINGCreated, queued for processing
RUNNINGInference in progress
COMPLETEDFinished. Result CSV available for download.
FAILEDFailed due to an error
TIMEOUTExceeded the processing time limit
Available options:
PENDING,
RUNNING,
COMPLETED,
FAILED,
TIMEOUT
predictionCreationProgressUrl
string
required

URL to poll for prediction progress