GET
/v1/schemas/replicate/chat/models/meta/llama-4-scout-instruct/predictions
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracef6f88a5d792cca79ba1633f3a5900c919af11ea2b081e6ddc52d60af399998be{
"fetchedAt": 1791350061,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
4 properties · 1 required · 1 $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
1 $defsInputobject
| 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: 50 |
| 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: 0.9 |
| prompt | string | Prompt | default: "" |
| max_tokens | integer | The maximum number of tokens the model should generate as output. | 0 ≤ n ≤ 131072 · default: 4096 |
| 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: 0.6 |
| system_prompt | string | System prompt to send to the model. This is prepended to the prompt and helps guide system behavior. Ignored for non-chat models. | default: "You are a helpful assistant." |
| stop_sequences | string | A comma-separated list of sequences to stop generation at. For example, '<end>,<stop>' will stop generation at the first instance of 'end' or '<stop>'. | default: "" |
| prompt_template | string | A template to format the prompt with. If not provided, the default prompt template will be used. | default: "" |
| presence_penalty | number | Presence penalty | default: 0 |
| frequency_penalty | number | Frequency penalty | default: 0 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"replicate","endpointId":"models/meta/llama-4-scout-instruct/predictions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}