POST /v1/reward
rewardScore a clip against a task instruction with a reward model. Returns per-frame progress and optional success. Models: list_models with endpoint "reward". Billed per call unless the key is a sandbox key.
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": {
"model": "<model>",
"instruction": "<instruction>",
"frames": "<frames>"
},
"name": "reward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model id from GET /v1/models, e.g. provider/name | |
| frames | Yes | the clip, oldest first, all the same size (e.g. a video sampled at a few frames per second) | |
| instruction | Yes | the task the clip should be doing, e.g. "put the green stick in the brown bowl" |