Batch jobs
batchCaption a whole folder: run one operation on 1-50 videos in one call, priced together. operation caption = transcribe + burn per item, same output and price as caption_video (5 credits/min); transcribe 1/min; burn 4/min (needs subtitles or transcriptionJobId). One preset for all (an item's own preset or styleOverrides wins). dryRun:true returns the total and starts nothing. Missing media, 402 insufficient_balance or maxCredits reject the whole batch before any charge. Returns id, counts and jobs (paginated: offset/limit); poll get_job per item. For one video use caption_video.
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": {
"operation": "<operation>",
"items": "<items>"
},
"name": "batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | 1-50 items, each {mediaUrl or fileId, name?, language?, preset?, styleOverrides?, faceAvoid?, translateTo? (caption), subtitles?/transcriptionJobId? (burn)}. | |
| dryRun | No | true = return the total quote only; nothing is charged or started. | |
| preset | No | Preset for every caption or burn item (an item's own preset wins). | |
| api_key | No | Only for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared. | |
| operation | Yes | 'caption' (transcribe + burn per item, same as caption_video), 'transcribe' or 'burn' (existing captions), applied to every item. | |
| maxCredits | No | Cap for the whole batch in credits; refused before any item starts when the total is higher. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Batch id (absent on dryRun). Read progress with get_job id, or GET /v1/batches/{id}?offset=&limit=. | |
| jobs | No | This page of item jobs (index, name, id, status, result files). | |
| kind | No | Always batch. | |
| page | No | {offset, limit, nextOffset}: nextOffset null on the last page. | |
| items | No | dryRun: per-item quote {costCents, audioSeconds}. | |
| counts | No | {total, succeeded, failed, pending}. | |
| dryRun | No | true: quote only, nothing started or charged. | |
| status | No | running, succeeded, or failed (some item failed; its credits are refunded). | |
| costCents | No | Total credits (quote on dryRun, charged so far otherwise). | |
| operation | No | caption, transcribe or burn. |