Create Prediction
create_predictionStart a Replicate model run by submitting a version id and input object; returns a prediction id and status that can be polled with the prediction tool until output is ready.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": {
"prompt": "a dog wearing sunglasses"
},
"version": "f178fa7a1ae43a9d672b0d1c6c1c0c5e1234abcd"
},
"name": "create_prediction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| stream | No | ||
| version | Yes | ||
| webhook | No | ||
| webhook_events_filter | No |