GET
/v1/schemas/replicate/chat/models/ibm-granite/granite-4.2-8b/predictions
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracefc2d0c3e83affd8f1a25483b3d518568b4998c97ba0d6c45496cf7d8f78978a4{
"fetchedAt": 1791350061,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
4 properties · 1 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| input* | Input | ||
| stream | boolean | **This field is deprecated.** | |
| webhook | string | An 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_filter | enum[] | 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 $defsInputobject
| seed | integer | Random seed. Leave unspecified to randomize the seed. | default: null |
| stop | string[] | 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 |
| tools | object[] | Tools for request. Passed to the chat template. | default: null |
| top_k | integer | The 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_p | number | A 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 |
| prompt | string | Completion API user prompt. | default: null |
| stream | boolean | Request streaming response. | default: null |
| messages | object[] | Chat completion API messages. | default: null |
| documents | object[] | Documents for request. Passed to the chat template. | default: null |
| max_tokens | integer | max_tokens is deprecated in favor of the max_completion_tokens field. | default: null · deprecated |
| min_tokens | integer | The minimum number of tokens the model should generate as output. | default: 0 |
| temperature | number | The value used to modulate the next token probabilities. | default: null |
| tool_choice | string | Tool choice for request. If the choice is a specific function, this should be specified as a JSON string. | default: null |
| chat_template | string | A template to format the prompt with. If not specified, the chat template provided by the model will be used. | default: null |
| system_prompt | string | Completion API system prompt. The chat template provides a good default. | default: null |
| response_format | object | An object specifying the format that the model must output. | default: null |
| presence_penalty | number | Presence penalty | default: null |
| reasoning_effort | enum | An enumeration. | none | minimal | low | medium | high | xhigh · +1 more |
| frequency_penalty | number | Frequency penalty | default: null |
| include_reasoning | boolean | Include reasoning content in the response. | default: true |
| repetition_penalty | number | Repetition penalty | default: null |
| chat_template_kwargs | object | Additional arguments to be passed to the chat template. | default: null |
| add_generation_prompt | boolean | Add generation prompt. Passed to the chat template. Defaults to True. | default: true |
| max_completion_tokens | integer | An 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 tokensshell
$ 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", …}]}