GET

/v1/schemas/replicate/chat/models/ibm-granite/granite-4.2-8b/predictions

kind inputactivity chathash bf02abd2…extracted Oct 7, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
fc2d0c3e83affd8f1a25483b3d518568b4998c97ba0d6c45496cf7d8f78978a4
{
  "fetchedAt": 1791350061,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

4 properties · 1 required · 2 $defs
propertytypedescriptionconstraints
input*Input
streamboolean**This field is deprecated.**
webhookstringAn HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retr…
webhook_events_filterenum[]By default, we will send requests to your webhook URL whenever there are new outputs or the prediction has finished. You can change which events trigger webhook requests by specifying `webhook_events_filter` in the prediction request:

Types

2 $defs

Inputobject

seedintegerRandom seed. Leave unspecified to randomize the seed.default: null
stopstring[]A list of sequences to stop generation at. For example, ["<end>","<stop>"] will stop generation at the first instance of "<end>" or "<stop>".default: null
toolsobject[]Tools for request. Passed to the chat template.default: null
top_kintegerThe number of highest probability tokens to consider for generating " "the output. If > 0, only keep the top k tokens with highest probability " "(top-k filtering).default: null
top_pnumberA probability threshold for generating the output. If < 1.0, only keep " "the top tokens with cumulative probability >= top_p (nucleus filtering). " "Nucleus filtering is described in Holtzman et al. (http://arxiv.org/abs/1904.09751).default: null
promptstringCompletion API user prompt.default: null
streambooleanRequest streaming response.default: null
messagesobject[]Chat completion API messages.default: null
documentsobject[]Documents for request. Passed to the chat template.default: null
max_tokensintegermax_tokens is deprecated in favor of the max_completion_tokens field.default: null · deprecated
min_tokensintegerThe minimum number of tokens the model should generate as output.default: 0
temperaturenumberThe value used to modulate the next token probabilities.default: null
tool_choicestringTool choice for request. If the choice is a specific function, this should be specified as a JSON string.default: null
chat_templatestringA template to format the prompt with. If not specified, the chat template provided by the model will be used.default: null
system_promptstringCompletion API system prompt. The chat template provides a good default.default: null
response_formatobjectAn object specifying the format that the model must output.default: null
presence_penaltynumberPresence penaltydefault: null
reasoning_effortenumAn enumeration.none | minimal | low | medium | high | xhigh · +1 more
frequency_penaltynumberFrequency penaltydefault: null
include_reasoningbooleanInclude reasoning content in the response.default: true
repetition_penaltynumberRepetition penaltydefault: null
chat_template_kwargsobjectAdditional arguments to be passed to the chat template.default: null
add_generation_promptbooleanAdd generation prompt. Passed to the chat template. Defaults to True.default: true
max_completion_tokensintegerAn upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens.default: null

reasoning_effortenum

An enumeration.

none | minimal | low | medium | high | xhigh · +1 more

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"replicate","endpointId":"models/ibm-granite/granite-4.2-8b/predictions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}