Models
Create a model
Create a new model.
AuthorizationBearer <token>
In: header
nameName
The name of the model.
visibility?ModelVisibility
The visibility of the model.
Default
"private"Value in
"private" | "public"description?Description
The description of the model.
overview?Overview
The overview of the model.
hardware_identifierHardware Identifier
The identifier of the hardware used by the model.
source_url?Source Url
Source url from where the model's code can be referenced.
license_url?License Url
License url where the model's usage is specified.
paper_url?Paper Url
Paper url from where research info on the model can be found.
category_slugs?Category Slugs
A list of model category slugs.
Default
[]Response Body
curl -X POST "https://api.wrift.ai/v1/models" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "hardware_identifier": "string" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"created_at": "2019-08-24T14:15:22Z",
"visibility": "private",
"description": "string",
"updated_at": "2019-08-24T14:15:22Z",
"source_url": "http://example.com",
"license_url": "http://example.com",
"paper_url": "http://example.com",
"owner": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"username": "string",
"avatar_url": "string"
},
"predictions_count": 0,
"categories": [
{
"name": "string",
"slug": "string"
}
],
"overview": "string",
"latest_version": {
"number": 0,
"release_notes": "string",
"created_at": "2019-08-24T14:15:22Z",
"container_image_digest": "string",
"schemas": {
"prediction": {
"input": {},
"output": {}
}
}
},
"hardware": {
"identifier": "string",
"name": "string"
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}