GET

/v1/schemas/replicate/chat/models/ibm-granite/granite-speech-4.1-2b/predictions

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

upstream-spec

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

Request body

4 properties · 1 required · 1 $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

1 $defs

Inputobject

seedintegerRandom seed. Leave unspecified to randomize the seed.
stopstring[]A list of sequences to stop generation at. For example, ["<end>","<stop>"] will stop generation at the first instance of "<end>" or "<stop>".
audiostring[]Completion API Audio input.
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).
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).
promptstringCompletion API user prompt.
streambooleanRequest streaming response.
messagesobject[]Chat completion API messages.
max_tokensintegermax_tokens is deprecated in favor of the max_completion_tokens field.deprecated
min_tokensintegerThe minimum number of tokens the model should generate as output.default: 0
temperaturenumberThe value used to modulate the next token probabilities.
chat_templatestringA template to format the prompt with. If not specified, the chat template provided by the model will be used.
system_promptstringCompletion API system prompt. The chat template provides a good default.
presence_penaltynumberPresence penalty
frequency_penaltynumberFrequency penalty
repetition_penaltynumberRepetition penalty
chat_template_kwargsobjectAdditional arguments to be passed to the chat template.
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.

Validate a payload

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