submit_batch
Queue many items for one tool. They run in parallel at this key's share, each priced exactly like a single call (failed and refused items are free). Returns the batch at once; follow it with get_batch, and read finished items with get_batch_results while it runs.
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": {
"tool": "<tool>"
},
"name": "submit_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | transcribe, research or clean_data. | |
| items | No | Up to 10,000 items, each the same input that tool takes (e.g. {"url": ...} for transcribe, {"ask": ...} for research), optionally {"custom_id": ..., "input": {...}}. | |
| items_url | No | Instead of items: a link to a JSONL file, one item per line, up to 1,000,000. | |
| max_cost_usd | No | Never spend more than this on the whole batch. |