GET
/v1/schemas/replicate/chat/models/anthropic/claude-opus-4.7/predictions
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace28764e9a4d8de83d0c0bbfd2d5aa591603cec5971b717d21b93c095cb3e4a2e4{
"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
| image | string | Optional input image. Images are priced as (width px * height px)/750 input tokens | format: uri |
| prompt* | string | Input prompt | |
| max_tokens | integer | Maximum number of output tokens | 1024 ≤ n ≤ 128000 · default: 8192 |
| system_prompt | string | System prompt | default: "" |
| max_image_resolution | number | Maximum image resolution in megapixels. Scales down image before sending it to Claude, to save time and money. | 0.001 ≤ n ≤ 2 · default: 0.5 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"replicate","endpointId":"models/anthropic/claude-opus-4.7/predictions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}