modzyClient.getModelVersionInputSample

Retrieve the input sample

modzyClient.getModelVersionInputSample(modelId, versionId)

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

Parameters

Parameter

Type

Description

Example

modelId

string

A model identifier assigned by Modzy

'ed542963de'

versionId

string

The 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')

Did this page help you?