modzyClient.getModelVersionInputSample

Retrieve the input sample

modzyClient.getModelVersionInputSample(String modelId, String versionId)

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

Parameters

Parameter

Type

Description

Example

modelId

java.lang.String

A model identifier assigned by Modzy.

"ed542963de"

versionId

java.lang.String

The 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");

Did this page help you?