modzyClient.getModelVersionInputSample

Retrieve the input sample

modzyClient.getModelVersionInputSample(String modelId, String versionId)

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

Parameters

ParameterTypeDescriptionExample
modelIdjava.lang.StringA model identifier assigned by Modzy."ed542963de"
versionIdjava.lang.StringThe model’s version number."0.0.27"

Returns

String 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

String inputSample =  modzyClient.getModelVersionInputSample("ed542963de", "1.0.1");