Create RunningSession

Create a RunningSession to elastically run a TrainedModel

post/trained_models/{trained_model_id}/running_sessions

Request

  • Base URL
    https://darwin.v7labs.com/ai
  • URL
    https://darwin.v7labs.com/ai/trained_models/{trained_model_id}/running_sessions
  • Auth
    API key in header Authorization

Path parameters

trained_model_idstring required

The ID of the TrainedModel to start a RunningSession for

Request body

mininteger

The minimum number of instances to run for the TrainedModel

maxinteger

The maximum number of instances to run for the given TrainedModel, should the model need to scale up

devicestring

Either "cpu" or "gpu", provided that the ModelTemplate associated to the TrainedModel includes it within its list of supported devices

Response

200

access_levelstring
devicestring
idstring
inserted_atstring
maxinteger
metaobject
mininteger
namestring
team_idinteger
trained_model_idstring
updated_atstring

Example response

{
  "access_level": "private",
  "device": "cpu",
  "id": "5c825aa8-d4d4-40c6-9c8c-46d9f9792c1c",
  "inserted_at": "2020-10-13T16:36:00",
  "max": 2,
  "min": 1,
  "name": "My Running Session",
  "team_id": 123,
  "trained_model_id": "1703d9ea-5c19-4cd6-84e9-ec30b921817b",
  "updated_at": "2020-10-13T16:36:00"
}

Changes

No recorded changes to this operation across all 1 revision of this API.