GET

/v1/schemas/replicate/chat/models/openai/gpt-4o/predictions

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

upstream-spec

Source trace
72d2e792835d9344a1b4a8765f49dac55d686a04533709e64157c851047c4f56
{
  "fetchedAt": 1794029456,
  "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

top_pnumberNucleus sampling parameter - the model considers the results of the tokens with top_p probability mass. (0.1 means only the tokens comprising the top 10% probability mass are considered.)0 ≤ n ≤ 1 · default: 1
promptstringThe prompt to send to the model. Do not use if using messages.
messagesobject[]A JSON string representing a list of messages. For example: [{"role": "user", "content": "Hello, how are you?"}]. If provided, prompt and system_prompt are ignored.default: []
image_inputstring[]List of images to send to the modeldefault: []
temperaturenumberSampling temperature between 0 and 20 ≤ n ≤ 2 · default: 1
system_promptstringSystem prompt to set the assistant's behavior
presence_penaltynumberPresence penalty parameter - positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.-2 ≤ n ≤ 2 · default: 0
frequency_penaltynumberFrequency penalty parameter - positive values penalize the repetition of tokens.-2 ≤ n ≤ 2 · default: 0
max_completion_tokensintegerMaximum number of completion tokens to generatedefault: 4096

Validate a payload

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