Run a model (spends credits)
run_endpointrun any catalogue endpoint by id with arbitrary input parameters. waits briefly for fast jobs; returns request_id for check_job otherwise. use get_endpoint_schema first to see accepted parameters.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"endpoint_id": "<endpoint_id>",
"input": "<input>"
},
"name": "run_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | input parameters matching the endpoint schema | |
| sync_wait | No | wait up to 8s for fast jobs (default true) | |
| endpoint_id | Yes | exact endpoint id (e.g. "recraft/v3/text-to-image") |