create_prediction
Pack: replicate · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/create_prediction for the schema, then POST the same URL with its arguments for the data.
Start 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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
version | string | yes | |
input | unknown | yes | |
webhook | string | no | |
webhook_events_filter | array | no | |
items | string | no | |
stream | boolean | no |
Example call
Arguments
{
"version": "f178fa7a1ae43a9d672b0d1c6c1c0c5e1234abcd",
"input": {
"prompt": "a dog wearing sunglasses"
}
}
curl
curl -X POST https://gateway.pipeworx.io/replicate/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_prediction","arguments":{"version":"f178fa7a1ae43a9d672b0d1c6c1c0c5e1234abcd","input":{"prompt":"a dog wearing sunglasses"}}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('create_prediction', {
"version": "f178fa7a1ae43a9d672b0d1c6c1c0c5e1234abcd",
"input": {
"prompt": "a dog wearing sunglasses"
}
});
More examples
{
"version": "f178fa7a1ae43a9d672b0d1c6c1c0c5e1234abcd",
"input": {
"prompt": "a dog wearing sunglasses"
},
"webhook": "https://example.com/webhook",
"webhook_events_filter": [
"completed"
],
"stream": false
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the replicate pack
{
"mcpServers": {
"replicate": {
"url": "https://gateway.pipeworx.io/replicate/mcp"
}
}
}
See Getting Started for client-specific install steps.