Models
Create a prediction
Create a prediction for the provided inputs against the latest version of a model.
AuthorizationBearer <token>
In: header
Path Parameters
model_ownerModel Owner
The username of the user that owns the model.
model_nameModel Name
The name of the model.
Header Parameters
Validate-Input?Validate-Input
Enable input validation against the schema before processing.
Default
falseinputInput
The input to pass to the model during prediction.
Empty Object
webhook?Webhook | null
Details about the webhook to post prediction updates to.
Response Body
curl -X POST "https://api.wrift.ai/v1/models/string/string/predictions" \ -H "Validate-Input: false" \ -H "Content-Type: application/json" \ -d '{ "input": {} }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"model": {
"owner": "string",
"name": "string",
"version_number": 0
},
"created_at": "2019-08-24T14:15:22Z",
"status": "pending",
"updated_at": "2019-08-24T14:15:22Z",
"setup_time": "string",
"execution_time": "string",
"error": {
"source": "internal",
"message": "string",
"detail": null
},
"input": null,
"output": null,
"logs": [
"string"
],
"setup_logs": [
"string"
],
"url": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}