modzyClient.getModelVersionInputSample

Retrieve the input sample

modzyClient.getModelVersionInputSample(modelId, versionId)

Returns a job request sample for this model in JSON format.

Parameters

ParameterTypeDescriptionExample
modelIdstringA model identifier assigned by Modzy'ed542963de'
versionIdstringThe model’s version number.'0.0.27'

Returns

A JSON string with a raw job request sample for the model

{
  "model": {
    "identifier": "ed542963de",
    "version": "1.0.27"
  },
  "input": {
    "type": "text",
    "sources": {
      "0001": {
        "input.txt": "Sometimes I really hate ribs."
      }
    }
  }
}

Examples

inputSample = await modzyClient.getModelVersionInputSample('ed542963de', '0.0.27')