Generic commands use placeholder references, e.g.
-i {{in_1}} -t 5 {{out_1}} with input_files mapping in_1 to a URL
and output_files mapping out_1 to an output filename.
Folder id (uuid) or slug. The job's output is filed into this folder
when the job completes. An unknown folder returns 404
workspace_not_found and no job is created. If you cannot set
headers, send a top-level workspace_id field in the JSON body
instead. Not part of the generation input, so it does not affect
caching.
The status only moves forward: queued → running → completed,
failed or cancelled. Everything a running job goes through —
sending to the provider, uploading references, switching to another
provider — is a stage of running; a job never goes back to
queued. (Older API builds also reported submitting; treat it as
running.)
awaiting_confirmation (multi-step pipelines only): the job finished a
step that asks for review and waits for POST /jobs/{id}/confirm. It
is not terminal.
What the job is doing right now. null once the job is terminal, and
while the job is awaiting_confirmation.
queued — waiting for a slot; no attempt yet
submitting — being sent to the provider
uploading_references — the provider is taking the reference files
into its asset library (progress_message shows n/m)
rendering — the provider accepted the task and is generating
retrying — an attempt failed (the provider refused, failed or rate
limited it); the job waits for its next attempt, usually on another
provider. See attempts.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"varg","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/vargai/zXqiSRlI6Ucs30SP/logo/light.svg?fit=max\u0026auto=format\u0026n=zXqiSRlI6Ucs30SP\u0026q=85\u0026s=0cceec4fdf0144f327c9e64745254c58","dark":"https://mintcdn.com/vargai/zXqiSRlI6Ucs30SP/logo/dark.svg?fit=max\u0026auto=format\u0026n=zXqiSRlI6Ucs30SP\u0026q=85\u0026s=4e6978fc37965c951f846ee3fefc382b"},"favicon":"https://mintcdn.com/vargai/zXqiSRlI6Ucs30SP/favicon.svg?fit=max\u0026auto=format\u0026n=zXqiSRlI6Ucs30SP\u0026q=85\u0026s=8e374ac9e94bd40c3f7f07507a704dd8","navbar":{"links":[{"href":"https://app.varg.ai","label":"Dashboard"}],"primary":{"type":"button","label":"Get API Key","href":"https://app.varg.ai"}},"footer":{"socials":{"x":"https://x.com/vaborsh","github":"https://github.com/vargHQ"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/vargHQ/sdk"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/VAecJay7R9"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vargai","hasAudioNarration":false,"actualSubdomain":"vargai","customDomains":["docs.varg.ai"],"gitSource":{"type":"github","owner":"varghq","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad796606e89f16d0374690b","collectionId":"e4746ea0-e668-46dc-aa68-8e29fe7a3341","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad796606e89f16d0374690b"},"feedback":{"thumbs":true,"issues":true},"entitlements":{},"buildId":"6ad7966a0b9b371cf43481a1","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"API Reference","count":90},{"language":"default","tag":"Documentation","count":44},{"language":"default","tag":"Models","count":27},{"language":"default","tag":"Files","count":17},{"language":"default","tag":"Templates","count":14},{"language":"default","tag":"Account","count":11},{"language":"default","tag":"Jobs","count":10},{"language":"default","tag":"Image","count":9},{"language":"default","tag":"Generation","count":9},{"language":"default","tag":"Video","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/generation/run-an-ffmpeg-operation","slug":"/api-reference/generation/run-an-ffmpeg-operation","pageMetadata":{"title":"Run an ffmpeg operation","description":"Media processing via ffmpeg. One endpoint, four operation modes selected\nby the `model` field:\n\n| Model | Operation | Fields |\n|---|---|---|\n| `rendi_ffmpeg` | Generic command | `command`, `input_files`, `output_files` |\n| `rendi_ffmpeg_trim` | Trim | `url`, `start`, `end` or `duration`, `precise` |\n| `rendi_ffmpeg_resize` | Resize | `url`, `width`/`height`, `fit` |\n| `rendi_ffmpeg_slice` | Slice into segments | `video_url`, `every`/`at`/`count`/`ranges`, `codec`, `thumbnails` |\n\nGeneric commands use placeholder references, e.g.\n`-i {{in_1}} -t 5 {{out_1}}` with `input_files` mapping `in_1` to a URL\nand `output_files` mapping `out_1` to an output filename.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /ffmpeg","href":"/api-reference/generation/run-an-ffmpeg-operation","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n table: \"table\",\n tbody: \"tbody\",\n td: \"td\",\n th: \"th\",\n thead: \"thead\",\n tr: \"tr\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Media processing via ffmpeg. One endpoint, four operation modes selected\\nby the \", _jsx(_components.code, {\n children: \"model\"\n }), \" field:\"]\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"Model\"\n }), _jsx(_components.th, {\n children: \"Operation\"\n }), _jsx(_components.th, {\n children: \"Fields\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"rendi_ffmpeg\"\n })\n }), _jsx(_components.td, {\n children: \"Generic command\"\n }), _jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"command\"\n }), \", \", _jsx(_components.code, {\n children: \"input_files\"\n }), \", \", _jsx(_components.code, {\n children: \"output_files\"\n })]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"rendi_ffmpeg_trim\"\n })\n }), _jsx(_components.td, {\n children: \"Trim\"\n }), _jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"url\"\n }), \", \", _jsx(_components.code, {\n children: \"start\"\n }), \", \", _jsx(_components.code, {\n children: \"end\"\n }), \" or \", _jsx(_components.code, {\n children: \"duration\"\n }), \", \", _jsx(_components.code, {\n children: \"precise\"\n })]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"rendi_ffmpeg_resize\"\n })\n }), _jsx(_components.td, {\n children: \"Resize\"\n }), _jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"url\"\n }), \", \", _jsx(_components.code, {\n children: \"width\"\n }), \"/\", _jsx(_components.code, {\n children: \"height\"\n }), \", \", _jsx(_components.code, {\n children: \"fit\"\n })]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"rendi_ffmpeg_slice\"\n })\n }), _jsx(_components.td, {\n children: \"Slice into segments\"\n }), _jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"video_url\"\n }), \", \", _jsx(_components.code, {\n children: \"every\"\n }), \"/\", _jsx(_components.code, {\n children: \"at\"\n }), \"/\", _jsx(_components.code, {\n children: \"count\"\n }), \"/\", _jsx(_components.code, {\n children: \"ranges\"\n }), \", \", _jsx(_components.code, {\n children: \"codec\"\n }), \", \", _jsx(_components.code, {\n children: \"thumbnails\"\n })]\n })]\n })]\n })]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Generic commands use placeholder references, e.g.\\n\", _jsx(_components.code, {\n children: \"-i {{in_1}} -t 5 {{out_1}}\"\n }), \" with \", _jsx(_components.code, {\n children: \"input_files\"\n }), \" mapping \", _jsx(_components.code, {\n children: \"in_1\"\n }), \" to a URL\\nand \", _jsx(_components.code, {\n children: \"output_files\"\n }), \" mapping \", _jsx(_components.code, {\n children: \"out_1\"\n }), \" to an output filename.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run an ffmpeg operation","description":"Media processing via ffmpeg. One endpoint, four operation modes selected\nby the `model` field:\n\n| Model | Operation | Fields |\n|---|---|---|\n| `rendi_ffmpeg` | Generic command | `command`, `input_files`, `output_files` |\n| `rendi_ffmpeg_trim` | Trim | `url`, `start`, `end` or `duration`, `precise` |\n| `rendi_ffmpeg_resize` | Resize | `url`, `width`/`height`, `fit` |\n| `rendi_ffmpeg_slice` | Slice into segments | `video_url`, `every`/`at`/`count`/`ranges`, `codec`, `thumbnails` |\n\nGeneric commands use placeholder references, e.g.\n`-i {{in_1}} -t 5 {{out_1}}` with `input_files` mapping `in_1` to a URL\nand `output_files` mapping `out_1` to an output filename.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /ffmpeg","href":"/api-reference/generation/run-an-ffmpeg-operation","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Generation"],"operationId":"runFfmpeg","summary":"Run an ffmpeg operation","description":"Media processing via ffmpeg. One endpoint, four operation modes selected\nby the `model` field:\n\n| Model | Operation | Fields |\n|---|---|---|\n| `rendi_ffmpeg` | Generic command | `command`, `input_files`, `output_files` |\n| `rendi_ffmpeg_trim` | Trim | `url`, `start`, `end` or `duration`, `precise` |\n| `rendi_ffmpeg_resize` | Resize | `url`, `width`/`height`, `fit` |\n| `rendi_ffmpeg_slice` | Slice into segments | `video_url`, `every`/`at`/`count`/`ranges`, `codec`, `thumbnails` |\n\nGeneric commands use placeholder references, e.g.\n`-i {{in_1}} -t 5 {{out_1}}` with `input_files` mapping `in_1` to a URL\nand `output_files` mapping `out_1` to an output filename.\n","parameters":["910aa509-4190-460f-90a4-9a1fd1e24446","301c371e-5ee7-47dc-aa0e-a2b6d7118638"],"requestBody":"4a286653-ea9a-4aba-b5ad-80fe13af5a6c","responses":{"200":"de6983d9-7a88-4ce6-918d-d67cabd38064","202":"b997afd7-8af6-477b-870d-bcb597650146","400":"75310d44-7d27-4867-96a3-7056a21f620d","401":"10ff9171-f413-4cc7-b695-98a97c09deb4","402":"563359c8-c11d-406b-808e-a4c47547810c","403":"9fd71a68-d1f4-4985-8d6f-d68407599c72","404":"774c96dc-09b5-460c-a804-70cea7c6aed2","422":"f924c9c7-2d29-42c5-abd7-0032798a4c70","429":"f2f3e1ab-c743-494c-a024-87ad54cfe525","503":"11b2a39d-1078-4581-a29a-9ddf97aeaea3"},"method":"post","type":"path","servers":["6415ef2b-ead3-41a4-9bec-7b332113d6a8"],"security":["c13fd0ff-12c7-44c9-806d-968e1ae74c2d"],"path":"/ffmpeg","baseUrlOptions":["https://api.varg.ai/v2"],"title":"Run an ffmpeg operation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"910aa509-4190-460f-90a4-9a1fd1e24446":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"Any unique string. Retrying a request with the same key returns the\nexisting job (HTTP 200) instead of creating and charging a new one\n(HTTP 202).\n","uniqueKey":"","typeLabel":"string"},"description":"Any unique string. Retrying a request with the same key returns the\nexisting job (HTTP 200) instead of creating and charging a new one\n(HTTP 202).\n"},"301c371e-5ee7-47dc-aa0e-a2b6d7118638":{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"Folder id (uuid) or slug. The job's output is filed into this folder\nwhen the job completes. An unknown folder returns 404\n`workspace_not_found` and no job is created. If you cannot set\nheaders, send a top-level `workspace_id` field in the JSON body\ninstead. Not part of the generation input, so it does not affect\ncaching.\n","uniqueKey":"","typeLabel":"string"},"description":"Folder id (uuid) or slug. The job's output is filed into this folder\nwhen the job completes. An unknown folder returns 404\n`workspace_not_found` and no job is created. If you cannot set\nheaders, send a top-level `workspace_id` field in the JSON body\ninstead. Not part of the generation input, so it does not affect\ncaching.\n"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["model","command","input_files","output_files"],"properties":{"model":{"type":"string","const":"rendi_ffmpeg","isRequired":true,"uniqueKey":"oneOf.0.model","typeLabel":"string"},"command":{"type":"string","description":"ffmpeg args with `{{in_N}}` / `{{out_N}}` placeholders","isRequired":true,"uniqueKey":"oneOf.0.command","typeLabel":"string"},"input_files":{"type":"object","additionalProperties":{"type":"string","format":"uri","uniqueKey":"oneOf.0.input_files.additionalProperties","typeLabel":"string\u003curi>"},"isRequired":true,"uniqueKey":"oneOf.0.input_files","typeLabel":"object"},"output_files":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.0.output_files.oneOf.0.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"oneOf.0.output_files.oneOf.0","typeLabel":"object"},{"type":"string","const":"OUTPUT_FOLDER","isRequired":true,"uniqueKey":"oneOf.0.output_files.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"oneOf.0.output_files","typeLabel":"object | string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["model","url","start"],"properties":{"model":{"type":"string","const":"rendi_ffmpeg_trim","isRequired":true,"uniqueKey":"oneOf.1.model","typeLabel":"string"},"url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"oneOf.1.url","typeLabel":"string\u003curi>"},"start":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"oneOf.1.start","typeLabel":"number"},"end":{"type":"number","uniqueKey":"oneOf.1.end","typeLabel":"number"},"duration":{"type":"number","uniqueKey":"oneOf.1.duration","typeLabel":"number"},"precise":{"type":"boolean","default":false,"description":"Re-encode for frame-accurate cuts (slower)","uniqueKey":"oneOf.1.precise","typeLabel":"boolean"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["model","url"],"properties":{"model":{"type":"string","const":"rendi_ffmpeg_resize","isRequired":true,"uniqueKey":"oneOf.2.model","typeLabel":"string"},"url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"oneOf.2.url","typeLabel":"string\u003curi>"},"width":{"type":"integer","minimum":1,"maximum":7680,"uniqueKey":"oneOf.2.width","typeLabel":"integer"},"height":{"type":"integer","minimum":1,"maximum":4320,"uniqueKey":"oneOf.2.height","typeLabel":"integer"},"fit":{"type":"string","enum":["contain","cover","stretch"],"default":"cover","uniqueKey":"oneOf.2.fit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2","typeLabel":"object"},{"type":"object","required":["model","video_url"],"properties":{"model":{"type":"string","const":"rendi_ffmpeg_slice","isRequired":true,"uniqueKey":"oneOf.3.model","typeLabel":"string"},"video_url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"oneOf.3.video_url","typeLabel":"string\u003curi>"},"every":{"type":"number","minimum":0.1,"maximum":3600,"description":"Split every N seconds","uniqueKey":"oneOf.3.every","typeLabel":"number"},"at":{"type":"array","items":{"type":"number","uniqueKey":"oneOf.3.at.items.[INDEX]","typeLabel":"number"},"description":"Split at these timestamps","uniqueKey":"oneOf.3.at","typeLabel":"number[]"},"count":{"type":"integer","minimum":2,"maximum":1000,"description":"Split into N equal segments","uniqueKey":"oneOf.3.count","typeLabel":"integer"},"ranges":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number","uniqueKey":"oneOf.3.ranges.items.[INDEX].start","typeLabel":"number"},"end":{"type":"number","uniqueKey":"oneOf.3.ranges.items.[INDEX].end","typeLabel":"number"}},"uniqueKey":"oneOf.3.ranges.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.3.ranges","typeLabel":"object[]"},"codec":{"type":"string","enum":["copy","reencode"],"default":"copy","uniqueKey":"oneOf.3.codec","typeLabel":"enum\u003cstring>"},"thumbnails":{"type":"boolean","default":true,"uniqueKey":"oneOf.3.thumbnails","typeLabel":"boolean"}},"uniqueKey":"oneOf.3","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"trim":{"title":"trim","value":{"model":"rendi_ffmpeg_trim","url":"https://s3.varg.ai/files/acc_x/video.mp4","start":2.5,"duration":5,"precise":true}},"resize":{"title":"resize","value":{"model":"rendi_ffmpeg_resize","url":"https://s3.varg.ai/files/acc_x/video.mp4","width":1080,"height":1920,"fit":"cover"}},"slice":{"title":"slice","value":{"model":"rendi_ffmpeg_slice","video_url":"https://s3.varg.ai/files/acc_x/long.mp4","every":10,"codec":"copy","thumbnails":true}},"command":{"title":"command","value":{"model":"rendi_ffmpeg","command":"-i {{in_1}} -vf scale=1280:720 -c:a copy {{out_1}}","input_files":{"in_1":"https://s3.varg.ai/files/acc_x/video.mp4"},"output_files":{"out_1":"resized.mp4"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"de6983d9-7a88-4ce6-918d-d67cabd38064":{"description":"Idempotency replay — the existing job for this `Idempotency-Key` (no new charge).","content":{"application/json":{"schema":{"type":"object","required":["id","status","stage","attempts","tool","input","output","error","progress_message","progress","progress_metadata","step_state","estimated_duration_ms","estimated_cost_cents","actual_cost_cents","pricing","provider","provider_model","provider_status","provider_job_id","completed_by_provider_model_id","last_attempt_provider_model_id","workspace_id","created_at","started_at","completed_at"],"properties":{"id":{"type":"string","example":"job_a1b2c3d4e5f6","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"status":{"type":"string","enum":["queued","running","awaiting_confirmation","completed","failed","cancelled"],"description":"The status only moves forward: `queued` → `running` → `completed`,\n`failed` or `cancelled`. Everything a running job goes through —\nsending to the provider, uploading references, switching to another\nprovider — is a `stage` of `running`; a job never goes back to\n`queued`. (Older API builds also reported `submitting`; treat it as\n`running`.)\n\n`awaiting_confirmation` (multi-step pipelines only): the job finished a\nstep that asks for review and waits for `POST /jobs/{id}/confirm`. It\nis not terminal.\n","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"stage":{"oneOf":[{"type":"string","enum":["queued","submitting","uploading_references","rendering","retrying","finalizing",null],"description":"What the job is doing right now. `null` once the job is terminal, and\nwhile the job is `awaiting_confirmation`.\n- `queued` — waiting for a slot; no attempt yet\n- `submitting` — being sent to the provider\n- `uploading_references` — the provider is taking the reference files\n into its asset library (`progress_message` shows `n/m`)\n- `rendering` — the provider accepted the task and is generating\n- `retrying` — an attempt failed (the provider refused, failed or rate\n limited it); the job waits for its next attempt, usually on another\n provider. See `attempts`.\n- `finalizing` — the result is being saved and billed\n","isRequired":true,"uniqueKey":"stage.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["queued","submitting","uploading_references","rendering","retrying","finalizing",null],"description":"What the job is doing right now. `null` once the job is terminal, and\nwhile the job is `awaiting_confirmation`.\n- `queued` — waiting for a slot; no attempt yet\n- `submitting` — being sent to the provider\n- `uploading_references` — the provider is taking the reference files\n into its asset library (`progress_message` shows `n/m`)\n- `rendering` — the provider accepted the task and is generating\n- `retrying` — an attempt failed (the provider refused, failed or rate\n limited it); the job waits for its next attempt, usually on another\n provider. See `attempts`.\n- `finalizing` — the result is being saved and billed\n","isRequired":true,"uniqueKey":"stage.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stage","typeLabel":"enum\u003cstring> | null"},"attempts":{"type":"array","description":"Every provider tried for this job, oldest first. `provider` / `provider_model` are the newest one.","items":{"type":"object","description":"One provider tried for this job. A job can have several — when a\nprovider refuses or fails, the job moves on to the next one. Reference\nuploads and a resubmit at the same provider are part of one attempt.\n","properties":{"n":{"type":"integer","example":1,"uniqueKey":"attempts.items.[INDEX].n","typeLabel":"integer"},"provider":{"oneOf":[{"type":"string","example":"byteplus","uniqueKey":"attempts.items.[INDEX].provider.oneOf.0","typeLabel":"string"},{"type":"null","example":"byteplus","uniqueKey":"attempts.items.[INDEX].provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"attempts.items.[INDEX].provider","typeLabel":"string | null"},"model_key":{"oneOf":[{"type":"string","example":"byteplus:dreamina-seedance-2-5-260628","uniqueKey":"attempts.items.[INDEX].model_key.oneOf.0","typeLabel":"string"},{"type":"null","example":"byteplus:dreamina-seedance-2-5-260628","uniqueKey":"attempts.items.[INDEX].model_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"attempts.items.[INDEX].model_key","typeLabel":"string | null"},"status":{"type":"string","enum":["running","completed","failed","cancelled"],"uniqueKey":"attempts.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"Why a failed attempt failed, in a few words","example":"real person in the reference images","uniqueKey":"attempts.items.[INDEX].reason","typeLabel":"string"},"reason_code":{"type":"string","enum":["content_privacy","content_policy","quota","rate_limit","provider_error","timeout","expired","prompt_too_long"],"uniqueKey":"attempts.items.[INDEX].reason_code","typeLabel":"enum\u003cstring>"},"references_uploaded":{"type":"integer","description":"Reference files taken into the provider's asset library","uniqueKey":"attempts.items.[INDEX].references_uploaded","typeLabel":"integer"},"resubmitted":{"type":"boolean","description":"The provider refused the first submit and got the task again (with uploaded references)","uniqueKey":"attempts.items.[INDEX].resubmitted","typeLabel":"boolean"},"started_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"attempts.items.[INDEX].started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"attempts.items.[INDEX].started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"attempts.items.[INDEX].started_at","typeLabel":"string\u003cdate-time> | null"},"ended_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"attempts.items.[INDEX].ended_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"attempts.items.[INDEX].ended_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"attempts.items.[INDEX].ended_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"attempts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"attempts","typeLabel":"object[]"},"tool":{"type":"string","description":"Internal tool id (e.g. `tool_2001a2b3c4d5` for video), not the `tool_key`. Do not compare it against `GET /tools` keys.","example":"tool_2001a2b3c4d5","isRequired":true,"uniqueKey":"tool","typeLabel":"string"},"input":{"type":"object","description":"The request body as submitted (model, prompt, ...)","isRequired":true,"uniqueKey":"input","typeLabel":"object"},"output":{"oneOf":[{"type":"object","description":"Canonical output envelope. Present only when the job is completed.","properties":{"version":{"type":"string","const":"v1","uniqueKey":"output.oneOf.0.version","typeLabel":"string"},"outputs":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"Stable varg-hosted URL (s3.varg.ai)","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].url","typeLabel":"string"},"file_id":{"type":"string","description":"The file record for this output — use with /files and /lineage","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].file_id","typeLabel":"string"},"media_type":{"type":"string","example":"video/mp4","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].media_type","typeLabel":"string"},"size_bytes":{"type":"integer","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].size_bytes","typeLabel":"integer"},"thumbnail_url":{"oneOf":[{"type":"string","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].thumbnail_url.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].thumbnail_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.oneOf.0.outputs.items.[INDEX].thumbnail_url","typeLabel":"string | null"},"data":{"description":"Inline structured result (no file). Used by `video/analyze` and transcription.","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].data","typeLabel":"any"},"raw":{"description":"Provider-specific extra data","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].raw","typeLabel":"any"}},"uniqueKey":"output.oneOf.0.outputs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"output.oneOf.0.outputs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"output.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"output.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output","typeLabel":"object | null"},"error":{"oneOf":[{"type":"string","description":"Human-readable failure message. `null` unless the job failed or was cancelled.","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human-readable failure message. `null` unless the job failed or was cancelled.","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | null"},"progress_message":{"oneOf":[{"type":"string","example":"stitching 3/8 (40%)","isRequired":true,"uniqueKey":"progress_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"stitching 3/8 (40%)","isRequired":true,"uniqueKey":"progress_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"progress_message","typeLabel":"string | null"},"progress":{"oneOf":[{"type":"number","description":"Fraction 0..1","isRequired":true,"uniqueKey":"progress.oneOf.0","typeLabel":"number"},{"type":"null","description":"Fraction 0..1","isRequired":true,"uniqueKey":"progress.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"progress","typeLabel":"number | null"},"progress_metadata":{"oneOf":[{"type":"object","isRequired":true,"uniqueKey":"progress_metadata.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"progress_metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"progress_metadata","typeLabel":"object | null"},"step_state":{"oneOf":[{"type":"object","description":"Multi-step pipeline jobs only: the current step and each step's\nstatus, intermediate output and cost. `null` for ordinary jobs.\n","properties":{"current_step":{"oneOf":[{"type":"string","example":"extend","uniqueKey":"step_state.oneOf.0.current_step.oneOf.0","typeLabel":"string"},{"type":"null","example":"extend","uniqueKey":"step_state.oneOf.0.current_step.oneOf.1","typeLabel":"null"}],"uniqueKey":"step_state.oneOf.0.current_step","typeLabel":"string | null"},"steps":{"type":"object","additionalProperties":{"type":"object","properties":{"status":{"type":"string","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.status","typeLabel":"string"},"output_url":{"oneOf":[{"type":"string","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.output_url.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.output_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"step_state.oneOf.0.steps.additionalProperties.output_url","typeLabel":"string | null"},"cost":{"oneOf":[{"type":"integer","description":"Cents","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.cost.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Cents","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.cost.oneOf.1","typeLabel":"null"}],"uniqueKey":"step_state.oneOf.0.steps.additionalProperties.cost","typeLabel":"integer | null"}},"uniqueKey":"step_state.oneOf.0.steps.additionalProperties","typeLabel":"object"},"uniqueKey":"step_state.oneOf.0.steps","typeLabel":"object"}},"isRequired":true,"uniqueKey":"step_state.oneOf.0","typeLabel":"object"},{"type":"null","description":"Multi-step pipeline jobs only: the current step and each step's\nstatus, intermediate output and cost. `null` for ordinary jobs.\n","properties":{"current_step":{"oneOf":[{"type":"string","example":"extend"},{"type":"null","example":"extend"}]},"steps":{"type":"object","additionalProperties":{"type":"object","properties":{"status":{"type":"string"},"output_url":{"oneOf":[{"type":"string"},{"type":"null"}]},"cost":{"oneOf":[{"type":"integer","description":"Cents"},{"type":"null","description":"Cents"}]}}}}},"isRequired":true,"uniqueKey":"step_state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"step_state","typeLabel":"object | null"},"estimated_duration_ms":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"estimated_duration_ms.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"estimated_duration_ms.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"estimated_duration_ms","typeLabel":"integer | null"},"estimated_cost_cents":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"estimated_cost_cents.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"estimated_cost_cents.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"estimated_cost_cents","typeLabel":"integer | null"},"actual_cost_cents":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"actual_cost_cents.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"actual_cost_cents.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"actual_cost_cents","typeLabel":"integer | null"},"pricing":{"type":"object","description":"Structured pricing. 1 credit = 1 cent = $0.01.","properties":{"estimated":{"oneOf":[{"type":"integer","description":"Reserved at creation (cents)","uniqueKey":"pricing.estimated.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Reserved at creation (cents)","uniqueKey":"pricing.estimated.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.estimated","typeLabel":"integer | null"},"actual":{"oneOf":[{"type":"integer","description":"Charged at completion (cents). 0 for cache hits.","uniqueKey":"pricing.actual.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Charged at completion (cents). 0 for cache hits.","uniqueKey":"pricing.actual.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.actual","typeLabel":"integer | null"},"billing":{"oneOf":[{"type":"string","uniqueKey":"pricing.billing.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"pricing.billing.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.billing","typeLabel":"string | null"},"cached":{"oneOf":[{"type":"boolean","description":"true when the result came from cache (actual = 0)","uniqueKey":"pricing.cached.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"true when the result came from cache (actual = 0)","uniqueKey":"pricing.cached.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.cached","typeLabel":"boolean | null"},"billed_units":{"oneOf":[{"type":"object","example":{"images":1},"uniqueKey":"pricing.billed_units.oneOf.0","typeLabel":"object"},{"type":"null","example":{"images":1},"uniqueKey":"pricing.billed_units.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.billed_units","typeLabel":"object | null"},"pricing_id":{"oneOf":[{"type":"string","description":"The pinned pricing rule this job was charged under","uniqueKey":"pricing.pricing_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The pinned pricing rule this job was charged under","uniqueKey":"pricing.pricing_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.pricing_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"pricing","typeLabel":"object"},"provider":{"oneOf":[{"type":"string","example":"fal","isRequired":true,"uniqueKey":"provider.oneOf.0","typeLabel":"string"},{"type":"null","example":"fal","isRequired":true,"uniqueKey":"provider.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"provider","typeLabel":"string | null"},"provider_model":{"oneOf":[{"type":"string","example":"fal:flux_schnell","isRequired":true,"uniqueKey":"provider_model.oneOf.0","typeLabel":"string"},{"type":"null","example":"fal:flux_schnell","isRequired":true,"uniqueKey":"provider_model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"provider_model","typeLabel":"string | null"},"provider_status":{"oneOf":[{"type":"string","description":"The provider's raw status string","isRequired":true,"uniqueKey":"provider_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"The provider's raw status string","isRequired":true,"uniqueKey":"provider_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"provider_status","typeLabel":"string | null"},"provider_job_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"provider_job_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"provider_job_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"provider_job_id","typeLabel":"string | null"},"completed_by_provider_model_id":{"oneOf":[{"type":"string","description":"Provider model route that completed the job","isRequired":true,"uniqueKey":"completed_by_provider_model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Provider model route that completed the job","isRequired":true,"uniqueKey":"completed_by_provider_model_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"completed_by_provider_model_id","typeLabel":"string | null"},"last_attempt_provider_model_id":{"oneOf":[{"type":"string","description":"Provider model route of the most recent attempt","isRequired":true,"uniqueKey":"last_attempt_provider_model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Provider model route of the most recent attempt","isRequired":true,"uniqueKey":"last_attempt_provider_model_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"last_attempt_provider_model_id","typeLabel":"string | null"},"workspace_id":{"oneOf":[{"type":"string","description":"Folder the outputs are filed into (see `X-Workspace-Id`)","isRequired":true,"uniqueKey":"workspace_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Folder the outputs are filed into (see `X-Workspace-Id`)","isRequired":true,"uniqueKey":"workspace_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"workspace_id","typeLabel":"string | null"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"started_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"started_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"completed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"completed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","description":"Present on creation responses when the request was adjusted (for example a resolution fallback)","items":{"type":"string","uniqueKey":"warnings.items.[INDEX]","typeLabel":"string"},"uniqueKey":"warnings","typeLabel":"string[]"},"urls":{"type":"object","description":"Lifecycle URLs (present on creation responses)","properties":{"self":{"type":"string","uniqueKey":"urls.self","typeLabel":"string"},"status":{"type":"string","uniqueKey":"urls.status","typeLabel":"string"},"refresh":{"type":"string","uniqueKey":"urls.refresh","typeLabel":"string"},"cancel":{"type":"string","uniqueKey":"urls.cancel","typeLabel":"string"},"retry":{"type":"string","uniqueKey":"urls.retry","typeLabel":"string"},"confirm":{"type":"string","uniqueKey":"urls.confirm","typeLabel":"string"},"rerun":{"type":"string","uniqueKey":"urls.rerun","typeLabel":"string"}},"uniqueKey":"urls","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"job_a1b2c3d4e5f6","status":"queued","stage":"queued","attempts":[{"n":1,"provider":"byteplus","model_key":"byteplus:dreamina-seedance-2-5-260628","status":"running","reason":"real person in the reference images","reason_code":"content_privacy","references_uploaded":123,"resubmitted":true,"started_at":"2023-11-07T05:31:56Z","ended_at":"2023-11-07T05:31:56Z"}],"tool":"tool_2001a2b3c4d5","input":{},"output":{"version":"v1","outputs":[{"url":"\u003cstring>","file_id":"\u003cstring>","media_type":"video/mp4","size_bytes":123,"thumbnail_url":"\u003cstring>","data":"\u003cunknown>","raw":"\u003cunknown>"}]},"error":"\u003cstring>","progress_message":"stitching 3/8 (40%)","progress":123,"progress_metadata":{},"step_state":{"current_step":"extend","steps":{}},"estimated_duration_ms":123,"estimated_cost_cents":123,"actual_cost_cents":123,"pricing":{"estimated":123,"actual":123,"billing":"\u003cstring>","cached":true,"billed_units":{"images":1},"pricing_id":"\u003cstring>"},"provider":"fal","provider_model":"fal:flux_schnell","provider_status":"\u003cstring>","provider_job_id":"\u003cstring>","completed_by_provider_model_id":"\u003cstring>","last_attempt_provider_model_id":"\u003cstring>","workspace_id":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","started_at":"2023-11-07T05:31:56Z","completed_at":"2023-11-07T05:31:56Z","warnings":["\u003cstring>"],"urls":{"self":"\u003cstring>","status":"\u003cstring>","refresh":"\u003cstring>","cancel":"\u003cstring>","retry":"\u003cstring>","confirm":"\u003cstring>","rerun":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"b997afd7-8af6-477b-870d-bcb597650146":{"description":"Job created and queued. Poll `urls.self` until terminal.","headers":{"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["id","status","stage","attempts","tool","input","output","error","progress_message","progress","progress_metadata","step_state","estimated_duration_ms","estimated_cost_cents","actual_cost_cents","pricing","provider","provider_model","provider_status","provider_job_id","completed_by_provider_model_id","last_attempt_provider_model_id","workspace_id","created_at","started_at","completed_at"],"properties":{"id":{"type":"string","example":"job_a1b2c3d4e5f6","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"status":{"type":"string","enum":["queued","running","awaiting_confirmation","completed","failed","cancelled"],"description":"The status only moves forward: `queued` → `running` → `completed`,\n`failed` or `cancelled`. Everything a running job goes through —\nsending to the provider, uploading references, switching to another\nprovider — is a `stage` of `running`; a job never goes back to\n`queued`. (Older API builds also reported `submitting`; treat it as\n`running`.)\n\n`awaiting_confirmation` (multi-step pipelines only): the job finished a\nstep that asks for review and waits for `POST /jobs/{id}/confirm`. It\nis not terminal.\n","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"stage":{"oneOf":[{"type":"string","enum":["queued","submitting","uploading_references","rendering","retrying","finalizing",null],"description":"What the job is doing right now. `null` once the job is terminal, and\nwhile the job is `awaiting_confirmation`.\n- `queued` — waiting for a slot; no attempt yet\n- `submitting` — being sent to the provider\n- `uploading_references` — the provider is taking the reference files\n into its asset library (`progress_message` shows `n/m`)\n- `rendering` — the provider accepted the task and is generating\n- `retrying` — an attempt failed (the provider refused, failed or rate\n limited it); the job waits for its next attempt, usually on another\n provider. See `attempts`.\n- `finalizing` — the result is being saved and billed\n","isRequired":true,"uniqueKey":"stage.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["queued","submitting","uploading_references","rendering","retrying","finalizing",null],"description":"What the job is doing right now. `null` once the job is terminal, and\nwhile the job is `awaiting_confirmation`.\n- `queued` — waiting for a slot; no attempt yet\n- `submitting` — being sent to the provider\n- `uploading_references` — the provider is taking the reference files\n into its asset library (`progress_message` shows `n/m`)\n- `rendering` — the provider accepted the task and is generating\n- `retrying` — an attempt failed (the provider refused, failed or rate\n limited it); the job waits for its next attempt, usually on another\n provider. See `attempts`.\n- `finalizing` — the result is being saved and billed\n","isRequired":true,"uniqueKey":"stage.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stage","typeLabel":"enum\u003cstring> | null"},"attempts":{"type":"array","description":"Every provider tried for this job, oldest first. `provider` / `provider_model` are the newest one.","items":{"type":"object","description":"One provider tried for this job. A job can have several — when a\nprovider refuses or fails, the job moves on to the next one. Reference\nuploads and a resubmit at the same provider are part of one attempt.\n","properties":{"n":{"type":"integer","example":1,"uniqueKey":"attempts.items.[INDEX].n","typeLabel":"integer"},"provider":{"oneOf":[{"type":"string","example":"byteplus","uniqueKey":"attempts.items.[INDEX].provider.oneOf.0","typeLabel":"string"},{"type":"null","example":"byteplus","uniqueKey":"attempts.items.[INDEX].provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"attempts.items.[INDEX].provider","typeLabel":"string | null"},"model_key":{"oneOf":[{"type":"string","example":"byteplus:dreamina-seedance-2-5-260628","uniqueKey":"attempts.items.[INDEX].model_key.oneOf.0","typeLabel":"string"},{"type":"null","example":"byteplus:dreamina-seedance-2-5-260628","uniqueKey":"attempts.items.[INDEX].model_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"attempts.items.[INDEX].model_key","typeLabel":"string | null"},"status":{"type":"string","enum":["running","completed","failed","cancelled"],"uniqueKey":"attempts.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"Why a failed attempt failed, in a few words","example":"real person in the reference images","uniqueKey":"attempts.items.[INDEX].reason","typeLabel":"string"},"reason_code":{"type":"string","enum":["content_privacy","content_policy","quota","rate_limit","provider_error","timeout","expired","prompt_too_long"],"uniqueKey":"attempts.items.[INDEX].reason_code","typeLabel":"enum\u003cstring>"},"references_uploaded":{"type":"integer","description":"Reference files taken into the provider's asset library","uniqueKey":"attempts.items.[INDEX].references_uploaded","typeLabel":"integer"},"resubmitted":{"type":"boolean","description":"The provider refused the first submit and got the task again (with uploaded references)","uniqueKey":"attempts.items.[INDEX].resubmitted","typeLabel":"boolean"},"started_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"attempts.items.[INDEX].started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"attempts.items.[INDEX].started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"attempts.items.[INDEX].started_at","typeLabel":"string\u003cdate-time> | null"},"ended_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"attempts.items.[INDEX].ended_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"attempts.items.[INDEX].ended_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"attempts.items.[INDEX].ended_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"attempts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"attempts","typeLabel":"object[]"},"tool":{"type":"string","description":"Internal tool id (e.g. `tool_2001a2b3c4d5` for video), not the `tool_key`. Do not compare it against `GET /tools` keys.","example":"tool_2001a2b3c4d5","isRequired":true,"uniqueKey":"tool","typeLabel":"string"},"input":{"type":"object","description":"The request body as submitted (model, prompt, ...)","isRequired":true,"uniqueKey":"input","typeLabel":"object"},"output":{"oneOf":[{"type":"object","description":"Canonical output envelope. Present only when the job is completed.","properties":{"version":{"type":"string","const":"v1","uniqueKey":"output.oneOf.0.version","typeLabel":"string"},"outputs":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"Stable varg-hosted URL (s3.varg.ai)","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].url","typeLabel":"string"},"file_id":{"type":"string","description":"The file record for this output — use with /files and /lineage","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].file_id","typeLabel":"string"},"media_type":{"type":"string","example":"video/mp4","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].media_type","typeLabel":"string"},"size_bytes":{"type":"integer","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].size_bytes","typeLabel":"integer"},"thumbnail_url":{"oneOf":[{"type":"string","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].thumbnail_url.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].thumbnail_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.oneOf.0.outputs.items.[INDEX].thumbnail_url","typeLabel":"string | null"},"data":{"description":"Inline structured result (no file). Used by `video/analyze` and transcription.","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].data","typeLabel":"any"},"raw":{"description":"Provider-specific extra data","uniqueKey":"output.oneOf.0.outputs.items.[INDEX].raw","typeLabel":"any"}},"uniqueKey":"output.oneOf.0.outputs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"output.oneOf.0.outputs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"output.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"output.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output","typeLabel":"object | null"},"error":{"oneOf":[{"type":"string","description":"Human-readable failure message. `null` unless the job failed or was cancelled.","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human-readable failure message. `null` unless the job failed or was cancelled.","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | null"},"progress_message":{"oneOf":[{"type":"string","example":"stitching 3/8 (40%)","isRequired":true,"uniqueKey":"progress_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"stitching 3/8 (40%)","isRequired":true,"uniqueKey":"progress_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"progress_message","typeLabel":"string | null"},"progress":{"oneOf":[{"type":"number","description":"Fraction 0..1","isRequired":true,"uniqueKey":"progress.oneOf.0","typeLabel":"number"},{"type":"null","description":"Fraction 0..1","isRequired":true,"uniqueKey":"progress.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"progress","typeLabel":"number | null"},"progress_metadata":{"oneOf":[{"type":"object","isRequired":true,"uniqueKey":"progress_metadata.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"progress_metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"progress_metadata","typeLabel":"object | null"},"step_state":{"oneOf":[{"type":"object","description":"Multi-step pipeline jobs only: the current step and each step's\nstatus, intermediate output and cost. `null` for ordinary jobs.\n","properties":{"current_step":{"oneOf":[{"type":"string","example":"extend","uniqueKey":"step_state.oneOf.0.current_step.oneOf.0","typeLabel":"string"},{"type":"null","example":"extend","uniqueKey":"step_state.oneOf.0.current_step.oneOf.1","typeLabel":"null"}],"uniqueKey":"step_state.oneOf.0.current_step","typeLabel":"string | null"},"steps":{"type":"object","additionalProperties":{"type":"object","properties":{"status":{"type":"string","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.status","typeLabel":"string"},"output_url":{"oneOf":[{"type":"string","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.output_url.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.output_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"step_state.oneOf.0.steps.additionalProperties.output_url","typeLabel":"string | null"},"cost":{"oneOf":[{"type":"integer","description":"Cents","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.cost.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Cents","uniqueKey":"step_state.oneOf.0.steps.additionalProperties.cost.oneOf.1","typeLabel":"null"}],"uniqueKey":"step_state.oneOf.0.steps.additionalProperties.cost","typeLabel":"integer | null"}},"uniqueKey":"step_state.oneOf.0.steps.additionalProperties","typeLabel":"object"},"uniqueKey":"step_state.oneOf.0.steps","typeLabel":"object"}},"isRequired":true,"uniqueKey":"step_state.oneOf.0","typeLabel":"object"},{"type":"null","description":"Multi-step pipeline jobs only: the current step and each step's\nstatus, intermediate output and cost. `null` for ordinary jobs.\n","properties":{"current_step":{"oneOf":[{"type":"string","example":"extend"},{"type":"null","example":"extend"}]},"steps":{"type":"object","additionalProperties":{"type":"object","properties":{"status":{"type":"string"},"output_url":{"oneOf":[{"type":"string"},{"type":"null"}]},"cost":{"oneOf":[{"type":"integer","description":"Cents"},{"type":"null","description":"Cents"}]}}}}},"isRequired":true,"uniqueKey":"step_state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"step_state","typeLabel":"object | null"},"estimated_duration_ms":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"estimated_duration_ms.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"estimated_duration_ms.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"estimated_duration_ms","typeLabel":"integer | null"},"estimated_cost_cents":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"estimated_cost_cents.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"estimated_cost_cents.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"estimated_cost_cents","typeLabel":"integer | null"},"actual_cost_cents":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"actual_cost_cents.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"actual_cost_cents.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"actual_cost_cents","typeLabel":"integer | null"},"pricing":{"type":"object","description":"Structured pricing. 1 credit = 1 cent = $0.01.","properties":{"estimated":{"oneOf":[{"type":"integer","description":"Reserved at creation (cents)","uniqueKey":"pricing.estimated.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Reserved at creation (cents)","uniqueKey":"pricing.estimated.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.estimated","typeLabel":"integer | null"},"actual":{"oneOf":[{"type":"integer","description":"Charged at completion (cents). 0 for cache hits.","uniqueKey":"pricing.actual.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Charged at completion (cents). 0 for cache hits.","uniqueKey":"pricing.actual.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.actual","typeLabel":"integer | null"},"billing":{"oneOf":[{"type":"string","uniqueKey":"pricing.billing.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"pricing.billing.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.billing","typeLabel":"string | null"},"cached":{"oneOf":[{"type":"boolean","description":"true when the result came from cache (actual = 0)","uniqueKey":"pricing.cached.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"true when the result came from cache (actual = 0)","uniqueKey":"pricing.cached.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.cached","typeLabel":"boolean | null"},"billed_units":{"oneOf":[{"type":"object","example":{"images":1},"uniqueKey":"pricing.billed_units.oneOf.0","typeLabel":"object"},{"type":"null","example":{"images":1},"uniqueKey":"pricing.billed_units.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.billed_units","typeLabel":"object | null"},"pricing_id":{"oneOf":[{"type":"string","description":"The pinned pricing rule this job was charged under","uniqueKey":"pricing.pricing_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The pinned pricing rule this job was charged under","uniqueKey":"pricing.pricing_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"pricing.pricing_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"pricing","typeLabel":"object"},"provider":{"oneOf":[{"type":"string","example":"fal","isRequired":true,"uniqueKey":"provider.oneOf.0","typeLabel":"string"},{"type":"null","example":"fal","isRequired":true,"uniqueKey":"provider.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"provider","typeLabel":"string | null"},"provider_model":{"oneOf":[{"type":"string","example":"fal:flux_schnell","isRequired":true,"uniqueKey":"provider_model.oneOf.0","typeLabel":"string"},{"type":"null","example":"fal:flux_schnell","isRequired":true,"uniqueKey":"provider_model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"provider_model","typeLabel":"string | null"},"provider_status":{"oneOf":[{"type":"string","description":"The provider's raw status string","isRequired":true,"uniqueKey":"provider_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"The provider's raw status string","isRequired":true,"uniqueKey":"provider_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"provider_status","typeLabel":"string | null"},"provider_job_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"provider_job_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"provider_job_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"provider_job_id","typeLabel":"string | null"},"completed_by_provider_model_id":{"oneOf":[{"type":"string","description":"Provider model route that completed the job","isRequired":true,"uniqueKey":"completed_by_provider_model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Provider model route that completed the job","isRequired":true,"uniqueKey":"completed_by_provider_model_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"completed_by_provider_model_id","typeLabel":"string | null"},"last_attempt_provider_model_id":{"oneOf":[{"type":"string","description":"Provider model route of the most recent attempt","isRequired":true,"uniqueKey":"last_attempt_provider_model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Provider model route of the most recent attempt","isRequired":true,"uniqueKey":"last_attempt_provider_model_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"last_attempt_provider_model_id","typeLabel":"string | null"},"workspace_id":{"oneOf":[{"type":"string","description":"Folder the outputs are filed into (see `X-Workspace-Id`)","isRequired":true,"uniqueKey":"workspace_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Folder the outputs are filed into (see `X-Workspace-Id`)","isRequired":true,"uniqueKey":"workspace_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"workspace_id","typeLabel":"string | null"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"started_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"started_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"completed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"completed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","description":"Present on creation responses when the request was adjusted (for example a resolution fallback)","items":{"type":"string","uniqueKey":"warnings.items.[INDEX]","typeLabel":"string"},"uniqueKey":"warnings","typeLabel":"string[]"},"urls":{"type":"object","description":"Lifecycle URLs (present on creation responses)","properties":{"self":{"type":"string","uniqueKey":"urls.self","typeLabel":"string"},"status":{"type":"string","uniqueKey":"urls.status","typeLabel":"string"},"refresh":{"type":"string","uniqueKey":"urls.refresh","typeLabel":"string"},"cancel":{"type":"string","uniqueKey":"urls.cancel","typeLabel":"string"},"retry":{"type":"string","uniqueKey":"urls.retry","typeLabel":"string"},"confirm":{"type":"string","uniqueKey":"urls.confirm","typeLabel":"string"},"rerun":{"type":"string","uniqueKey":"urls.rerun","typeLabel":"string"}},"uniqueKey":"urls","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"queued":{"title":"queued","value":{"id":"job_a1b2c3d4e5f6","status":"queued","stage":"queued","attempts":[],"tool":"tool_a1b2c3d4e5f6","input":{"model":"flux_schnell","prompt":"a cat astronaut"},"output":null,"error":null,"progress_message":null,"progress":null,"progress_metadata":null,"step_state":null,"estimated_duration_ms":8000,"estimated_cost_cents":4,"actual_cost_cents":null,"pricing":{"estimated":4,"actual":null,"billing":"metered","cached":null,"billed_units":null,"pricing_id":"ppr_abc123"},"provider":"fal","provider_model":"fal:flux_schnell","provider_status":null,"provider_job_id":null,"completed_by_provider_model_id":null,"last_attempt_provider_model_id":null,"workspace_id":null,"created_at":"2026-07-01T10:00:00Z","started_at":null,"completed_at":null,"urls":{"self":"https://api.varg.ai/v2/jobs/job_a1b2c3d4e5f6","status":"https://api.varg.ai/v2/jobs/job_a1b2c3d4e5f6/status","refresh":"https://api.varg.ai/v2/jobs/job_a1b2c3d4e5f6/refresh","cancel":"https://api.varg.ai/v2/jobs/job_a1b2c3d4e5f6/cancel","retry":"https://api.varg.ai/v2/jobs/job_a1b2c3d4e5f6/retry"}}}},"exampleType":"examples"}},"exampleType":"examples"},"75310d44-7d27-4867-96a3-7056a21f620d":{"description":"Body is not a JSON object (`invalid_request`)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"model_not_found","message":"Unknown model: flux-shnell","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"10ff9171-f413-4cc7-b695-98a97c09deb4":{"description":"Missing or invalid API key / JWT","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"unauthorized":{"title":"unauthorized","value":{"error":{"code":"unauthorized","message":"Invalid or missing API key or JWT"}}}},"exampleType":"examples"}},"exampleType":"examples"},"563359c8-c11d-406b-808e-a4c47547810c":{"description":"Account balance too low to reserve the estimated cost. `error.details` shows the shortfall and how much is held by running jobs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"insufficient":{"title":"insufficient","value":{"error":{"code":"insufficient_balance","message":"Insufficient balance to run this job","details":{"needed_cents":120,"available_cents":40,"reserved_cents":300,"total_cents":340,"held_jobs":2,"job_id":"job_a1b2c3d4e5f6"}}}}},"exampleType":"examples"}},"exampleType":"examples"},"9fd71a68-d1f4-4985-8d6f-d68407599c72":{"description":"An input references a blocked domain (`forbidden`)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"model_not_found","message":"Unknown model: flux-shnell","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"774c96dc-09b5-460c-a804-70cea7c6aed2":{"description":"Unknown model (`model_not_found`), tool (`tool_not_found`) or folder (`workspace_not_found`)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"model":{"title":"model","value":{"error":{"code":"model_not_found","message":"Unknown model: flux-shnell"}}}},"exampleType":"examples"}},"exampleType":"examples"},"f924c9c7-2d29-42c5-abd7-0032798a4c70":{"description":"Request body failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"invalid":{"title":"invalid","value":{"error":{"code":"invalid_request","message":"Body validation failed (text: Required)"}}}},"exampleType":"examples"}},"exampleType":"examples"},"f2f3e1ab-c743-494c-a024-87ad54cfe525":{"description":"Rate limit exceeded (sliding window per API key)","headers":{"Retry-After":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"model_not_found","message":"Unknown model: flux-shnell","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"11b2a39d-1078-4581-a29a-9ddf97aeaea3":{"description":"No active pricing rule for this model","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"model_not_found","message":"Unknown model: flux-shnell","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c13fd0ff-12c7-44c9-806d-968e1ae74c2d":{"bearerAuth":{"type":"http","scheme":"bearer","description":"varg API key (`varg_...`). Get one at [app.varg.ai](https://app.varg.ai)\nor run `bunx vargai login`. App sessions may alternatively send a\nSupabase JWT.\n","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"6415ef2b-ead3-41a4-9bec-7b332113d6a8":{"url":"https://api.varg.ai/v2"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"varg API key (`varg_...`). Get one at [app.varg.ai](https://app.varg.ai)\nor run `bunx vargai login`. App sessions may alternatively send a\nSupabase JWT.\n","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"varg API key (`varg_...`). Get one at [app.varg.ai](https://app.varg.ai)\nor run `bunx vargai login`. App sessions may alternatively send a\nSupabase JWT.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"vargai","siteName":"varg","title":"Run an ffmpeg operation - varg","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-20T16:27:17.553Z","originalFileLocation":"api-reference/generation/run-an-ffmpeg-operation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Media processing via ffmpeg. One endpoint, four operation modes selected by the model field: | Model | Operation | Fields | |---|---|---| | rendi_ffmpeg | Generic command | command, input_files, output_files | | rendi_ffmpeg_trim | Trim | url, start, end or duration, precise | | rendi_ffmpeg_resize | Resize | url, width/height, fit | | rendi_ffmpeg_slice | Slice into segments | video_url, every/at/count/ranges, codec, thumbnails | Generic commands use placeholder references, e.g. -i {{in_1}} -t 5 {{out_1}} with input_files mapping in_1 to a URL and output_files mapping out_1 to an output filename.\">\u003cmeta data-mint-head name=\"application-name\" content=\"varg\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run an ffmpeg operation - varg\">\u003cmeta data-mint-head property=\"og:description\" content=\"Media processing via ffmpeg. One endpoint, four operation modes selected by the model field: | Model | Operation | Fields | |---|---|---| | rendi_ffmpeg | Generic command | command, input_files, output_files | | rendi_ffmpeg_trim | Trim | url, start, end or duration, precise | | rendi_ffmpeg_resize | Resize | url, width/height, fit | | rendi_ffmpeg_slice | Slice into segments | video_url, every/at/count/ranges, codec, thumbnails | Generic commands use placeholder references, e.g. -i {{in_1}} -t 5 {{out_1}} with input_files mapping in_1 to a URL and output_files mapping out_1 to an output filename.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"varg\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vargai.mintlify.app/_mintlify/api/og/v2?division=Generation\u0026amp;title=Run+an+ffmpeg+operation\u0026amp;description=Media+processing+via+ffmpeg.+One+endpoint%2C+four+operation+modes+selected%0Aby+the+%60model%60+field%3A%0A%0A%7C+Model+%7C+Operation+%7C+Fields+%7C%0A%7C---%7C---%7C---%7C%0A%7C+%60rendi_ffmpeg%60+%7C+\u0026amp;theme=8e4322200b2c6ec3222c2f2d\u0026amp;signature=57cb35e439c85756d0d057c35d5610031fae191cc71147aea64d2457ad5b4be2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Run an ffmpeg operation - varg\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Media processing via ffmpeg. One endpoint, four operation modes selected by the model field: | Model | Operation | Fields | |---|---|---| | rendi_ffmpeg | Generic command | command, input_files, output_files | | rendi_ffmpeg_trim | Trim | url, start, end or duration, precise | | rendi_ffmpeg_resize | Resize | url, width/height, fit | | rendi_ffmpeg_slice | Slice into segments | video_url, every/at/count/ranges, codec, thumbnails | Generic commands use placeholder references, e.g. -i {{in_1}} -t 5 {{out_1}} with input_files mapping in_1 to a URL and output_files mapping out_1 to an output filename.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vargai.mintlify.app/_mintlify/api/og/v2?division=Generation\u0026amp;title=Run+an+ffmpeg+operation\u0026amp;description=Media+processing+via+ffmpeg.+One+endpoint%2C+four+operation+modes+selected%0Aby+the+%60model%60+field%3A%0A%0A%7C+Model+%7C+Operation+%7C+Fields+%7C%0A%7C---%7C---%7C---%7C%0A%7C+%60rendi_ffmpeg%60+%7C+\u0026amp;theme=8e4322200b2c6ec3222c2f2d\u0026amp;signature=57cb35e439c85756d0d057c35d5610031fae191cc71147aea64d2457ad5b4be2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"varg\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/generation/run-an-ffmpeg-operation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.varg.ai/#organization\",\"name\":\"varg\",\"url\":\"https://docs.varg.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vargai/zXqiSRlI6Ucs30SP/logo/light.svg?fit=max\u0026auto=format\u0026n=zXqiSRlI6Ucs30SP\u0026q=85\u0026s=0cceec4fdf0144f327c9e64745254c58\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.varg.ai#website\",\"name\":\"varg\",\"url\":\"https://docs.varg.ai\",\"publisher\":{\"@id\":\"https://docs.varg.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation#webpage\",\"url\":\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation\",\"name\":\"Run an ffmpeg operation\",\"description\":\"Media processing via ffmpeg. One endpoint, four operation modes selected by the model field: | Model | Operation | Fields | |---|---|---| | rendi_ffmpeg | Generic command | command, input_files, output_files | | rendi_ffmpeg_trim | Trim | url, start, end or duration, precise | | rendi_ffmpeg_resize | Resize | url, width/height, fit | | rendi_ffmpeg_slice | Slice into segments | video_url, every/at/count/ranges, codec, thumbnails | Generic commands use placeholder references, e.g. -i {{in_1}} -t 5 {{out_1}} with input_files mapping in_1 to a URL and output_files mapping out_1 to an output filename.\",\"dateModified\":\"2026-10-20T16:27:17.553Z\",\"isPartOf\":{\"@id\":\"https://docs.varg.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Generation\",\"item\":\"https://docs.varg.ai/api-reference/generation/generate-an-image\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run an ffmpeg operation\",\"item\":\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation#apireference\",\"headline\":\"Run an ffmpeg operation\",\"name\":\"Run an ffmpeg operation\",\"description\":\"Media processing via ffmpeg. One endpoint, four operation modes selected by the model field: | Model | Operation | Fields | |---|---|---| | rendi_ffmpeg | Generic command | command, input_files, output_files | | rendi_ffmpeg_trim | Trim | url, start, end or duration, precise | | rendi_ffmpeg_resize | Resize | url, width/height, fit | | rendi_ffmpeg_slice | Slice into segments | video_url, every/at/count/ranges, codec, thumbnails | Generic commands use placeholder references, e.g. -i {{in_1}} -t 5 {{out_1}} with input_files mapping in_1 to a URL and output_files mapping out_1 to an output filename.\",\"url\":\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.varg.ai/api-reference/generation/run-an-ffmpeg-operation#webpage\"},\"dateModified\":\"2026-10-20T16:27:17.553Z\",\"publisher\":{\"@id\":\"https://docs.varg.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.varg.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"varg\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"varg","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/vargHQ/sdk"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/VAecJay7R9"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"varg API","href":"/api"},{"title":"OpenAPI spec","href":"/api/openapi"},{"title":"Folders","href":"/api/folders"},{"title":"Render API","href":"/render-api/index"}]},{"group":"Presets","pages":[{"title":"Presets","href":"/api/presets"},{"title":"List presets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /presets","href":"/api-reference/presets/list-presets"},{"title":"Get preset filter axes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /presets/filters","href":"/api-reference/presets/get-preset-filter-axes"},{"title":"Get a preset","deprecated":null,"version":null,"openapi":"/openapi.yaml get /presets/{id}","href":"/api-reference/presets/get-a-preset"},{"title":"Apply presets to a request body","deprecated":null,"version":null,"openapi":"/openapi.yaml post /presets/apply","href":"/api-reference/presets/apply-presets-to-a-request-body"},{"title":"Recommend presets for an intent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /presets/recommend","href":"/api-reference/presets/recommend-presets-for-an-intent"}]},{"group":"Generation","pages":[{"title":"Generate an image","deprecated":null,"version":null,"openapi":"/openapi.yaml post /image","href":"/api-reference/generation/generate-an-image"},{"title":"Generate a video","deprecated":null,"version":null,"openapi":"/openapi.yaml post /video","href":"/api-reference/generation/generate-a-video"},{"title":"Analyze a video","deprecated":null,"version":null,"openapi":"/openapi.yaml post /video/analyze","href":"/api-reference/generation/analyze-a-video"},{"title":"Generate speech (TTS)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /speech","href":"/api-reference/generation/generate-speech-tts"},{"title":"Generate music","deprecated":null,"version":null,"openapi":"/openapi.yaml post /music","href":"/api-reference/generation/generate-music"},{"title":"Transcribe audio","description":"Transcribe an audio file by URL (`whisper`, `groq_whisper_large_v3_turbo`, ...).","deprecated":null,"version":null,"openapi":"/openapi.yaml post /transcription","href":"/api-reference/generation/transcribe-audio"},{"title":"Run an ffmpeg operation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /ffmpeg","href":"/api-reference/generation/run-an-ffmpeg-operation"},{"title":"Render TSX to video","description":"Submit varg TSX code and get back a rendered video (or image frames).\nNo local setup needed — the render runs in the cloud, generating AI\nassets and stitching them together.\n\nBilling: a flat stitching fee (~5 credits) plus each AI sub-generation\nbilled as its own job. Sub-generation assets are linked to the render\njob, so partial work is recoverable even if the render fails.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /render","href":"/api-reference/generation/render-tsx-to-video"},{"title":"Run a custom pipeline","deprecated":null,"version":null,"openapi":"/openapi.yaml post /pipeline","href":"/api-reference/generation/run-a-custom-pipeline"}]},{"group":"Tools","pages":[{"title":"List tools","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tools","href":"/api-reference/tools/list-tools"},{"title":"Get tool metadata","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tools/{tool_key}","href":"/api-reference/tools/get-tool-metadata"},{"title":"Call a tool generically","deprecated":null,"version":null,"openapi":"/openapi.yaml post /tools/{tool_key}/call","href":"/api-reference/tools/call-a-tool-generically"},{"title":"List a tool's models","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tools/{tool_key}/models","href":"/api-reference/tools/list-a-tools-models"},{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models","href":"/api-reference/tools/list-models"}]},{"group":"Jobs","pages":[{"title":"List jobs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs","href":"/api-reference/jobs/list-jobs"},{"title":"Get a job","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs/{id}","href":"/api-reference/jobs/get-a-job"},{"title":"Get job status (lightweight)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs/{id}/status","href":"/api-reference/jobs/get-job-status-lightweight"},{"title":"Get job pricing breakdown","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs/{id}/price","href":"/api-reference/jobs/get-job-pricing-breakdown"},{"title":"Refresh a job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/refresh","href":"/api-reference/jobs/refresh-a-job"},{"title":"Cancel a job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/cancel","href":"/api-reference/jobs/cancel-a-job"},{"title":"Retry a failed job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/retry","href":"/api-reference/jobs/retry-a-failed-job"},{"title":"Get what a job and its run were charged","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs/{id}/cost","href":"/api-reference/jobs/get-what-a-job-and-its-run-were-charged"},{"title":"Approve, retry or reject a paused job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/confirm","href":"/api-reference/jobs/approve-retry-or-reject-a-paused-job"},{"title":"Re-run a finished pipeline job from a later step","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/rerun","href":"/api-reference/jobs/re-run-a-finished-pipeline-job-from-a-later-step"}]},{"group":"Files","pages":[{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files","href":"/api-reference/files/upload-a-file"},{"title":"List files","deprecated":null,"version":null,"openapi":"/openapi.yaml get /files","href":"/api-reference/files/list-files"},{"title":"Import a file by URL","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files/import","href":"/api-reference/files/import-a-file-by-url"},{"title":"Probe a URL's media metadata","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files/probe","href":"/api-reference/files/probe-a-urls-media-metadata"},{"title":"Check for an existing file by hash","deprecated":null,"version":null,"openapi":"/openapi.yaml get /files/check","href":"/api-reference/files/check-for-an-existing-file-by-hash"},{"title":"Get file metadata","deprecated":null,"version":null,"openapi":"/openapi.yaml get /files/{id}","href":"/api-reference/files/get-file-metadata"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /files/{id}","href":"/api-reference/files/delete-a-file"},{"title":"Rate or comment on a file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files/{id}/feedback","href":"/api-reference/files/rate-or-comment-on-a-file"},{"title":"List feedback for a file","deprecated":null,"version":null,"openapi":"/openapi.yaml get /files/{id}/feedback","href":"/api-reference/files/list-feedback-for-a-file"},{"title":"Remove your rating on a file","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /files/{id}/feedback","href":"/api-reference/files/remove-your-rating-on-a-file"},{"title":"Start a large file upload","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files/upload-session","href":"/api-reference/files/start-a-large-file-upload"},{"title":"Upload bytes to an upload session","deprecated":null,"version":null,"openapi":"/openapi.yaml put /files/upload/{session_id}","href":"/api-reference/files/upload-bytes-to-an-upload-session"},{"title":"List files with lineage","deprecated":null,"version":null,"openapi":"/openapi.yaml get /resources/files","href":"/api-reference/files/list-files-with-lineage"},{"title":"Get a file with lineage","deprecated":null,"version":null,"openapi":"/openapi.yaml get /resources/files/{id}","href":"/api-reference/files/get-a-file-with-lineage"},{"title":"Rename a file","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /resources/files/{id}","href":"/api-reference/files/rename-a-file"},{"title":"Favorite or unfavorite a file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /resources/files/{id}/favorite","href":"/api-reference/files/favorite-or-unfavorite-a-file"},{"title":"Resolve a file to the job that created it","deprecated":null,"version":null,"openapi":"/openapi.yaml post /lineage","href":"/api-reference/lineage/resolve-a-file-to-the-job-that-created-it"}]},{"group":"Folders","pages":[{"title":"List folders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workspaces","href":"/api-reference/folders/list-folders"},{"title":"Create a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workspaces","href":"/api-reference/folders/create-a-folder"},{"title":"Get a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workspaces/{id}","href":"/api-reference/folders/get-a-folder"},{"title":"Rename a folder or change its slug","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /workspaces/{id}","href":"/api-reference/folders/rename-a-folder-or-change-its-slug"},{"title":"List files in a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workspaces/{id}/files","href":"/api-reference/folders/list-files-in-a-folder"},{"title":"Add files to a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workspaces/{id}/files","href":"/api-reference/folders/add-files-to-a-folder"},{"title":"Remove a file from a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /workspaces/{id}/files/{file_id}","href":"/api-reference/folders/remove-a-file-from-a-folder"}]},{"group":"Templates","pages":[{"title":"Browse and search templates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates","href":"/api-reference/templates/browse-and-search-templates"},{"title":"List template tags","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates/tags","href":"/api-reference/templates/list-template-tags"},{"title":"Get a template","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates/{id}","href":"/api-reference/templates/get-a-template"},{"title":"Increment the use counter","deprecated":null,"version":null,"openapi":"/openapi.yaml post /templates/{id}/use","href":"/api-reference/templates/increment-the-use-counter"},{"title":"Render a template to video","deprecated":null,"version":null,"openapi":"/openapi.yaml post /templates/{id}/render","href":"/api-reference/templates/render-a-template-to-video"},{"title":"Publish a document as a template","deprecated":null,"version":null,"openapi":"/openapi.yaml post /templates","href":"/api-reference/templates/publish-a-document-as-a-template"},{"title":"Withdraw a template","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /templates/{id}","href":"/api-reference/templates/withdraw-a-template"},{"title":"List your templates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates/my","href":"/api-reference/templates/list-your-templates"},{"title":"List your favorite templates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates/favorites","href":"/api-reference/templates/list-your-favorite-templates"},{"title":"Toggle favorite","deprecated":null,"version":null,"openapi":"/openapi.yaml post /templates/{id}/favorite","href":"/api-reference/templates/toggle-favorite"}]},{"group":"Pricing \u0026 Billing","pages":[{"title":"Estimate a price without creating a job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /estimate","href":"/api-reference/pricing/estimate-a-price-without-creating-a-job"},{"title":"Get the price catalog (public)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /pricing","href":"/api-reference/pricing/get-the-price-catalog-public"},{"title":"Get balance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /billing/balance","href":"/api-reference/billing/get-balance"},{"title":"Get usage records","deprecated":null,"version":null,"openapi":"/openapi.yaml get /billing/usage","href":"/api-reference/billing/get-usage-records"},{"title":"Get transaction ledger","deprecated":null,"version":null,"openapi":"/openapi.yaml get /billing/transactions","href":"/api-reference/billing/get-transaction-ledger"}]},{"group":"Analytics","pages":[{"title":"Spend summary","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/summary","href":"/api-reference/analytics/spend-summary"},{"title":"Spend over time","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/timeseries","href":"/api-reference/analytics/spend-over-time"},{"title":"Spend breakdown","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/breakdown","href":"/api-reference/analytics/spend-breakdown"},{"title":"List charges or runs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/activity","href":"/api-reference/analytics/list-charges-or-runs"},{"title":"Files generated over time","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/files","href":"/api-reference/analytics/files-generated-over-time"},{"title":"Analytics definitions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/meta","href":"/api-reference/analytics/analytics-definitions"}]},{"group":"Account","pages":[{"title":"Get the authenticated account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /me","href":"/api-reference/account/get-the-authenticated-account"},{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api-keys","href":"/api-reference/account/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api-keys","href":"/api-reference/account/create-an-api-key"},{"title":"Rename an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /api-keys/{id}","href":"/api-reference/account/rename-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /api-keys/{id}","href":"/api-reference/account/revoke-an-api-key"},{"title":"Reveal an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api-keys/{id}/reveal","href":"/api-reference/account/reveal-an-api-key"},{"title":"List who an API key is shared with","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api-keys/{id}/shares","href":"/api-reference/account/list-who-an-api-key-is-shared-with"},{"title":"Share an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api-keys/{id}/shares","href":"/api-reference/account/share-an-api-key"},{"title":"Remove someone from an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /api-keys/{id}/shares/{userId}","href":"/api-reference/account/remove-someone-from-an-api-key"},{"title":"Get a connection's team binding","deprecated":null,"version":null,"openapi":"/openapi.yaml get /me/connection","href":"/api-reference/account/get-a-connections-team-binding"},{"title":"Set a connection's team binding","deprecated":null,"version":null,"openapi":"/openapi.yaml put /me/connection","href":"/api-reference/account/set-a-connections-team-binding"}]}]}]},"basePath":"","title":"Run an ffmpeg operation - varg","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DX1Meug0.js","utils-B_OMIQVC.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChxhRPMa.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CuKvD8Iv.js","snippetPresets-C5d7p2hp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CfHcE8m4.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C1zZV314.js","shallow-CmQhqCJn.js","getApiPlaygroundDisplay-YRo9s1O7.js","CodeSnippet-RN1MTdfk.js","CodeSnippets-DKLPHxJA.js","Page-BAvA99GL.js","getPastedJson-bz0M41mU.js","icon-CsmhpPrv.js","MethodPill-CNGsVE77.js","DuplicateIcon-DilfU_Z2.js","createIcon-BdsYzQck.js","DynamicMarkdown-CbqEDjbV.js","SectionHeading-O6hXpFCN.js","axios-vUo_bRtp.js","Markdown-nKm-uidQ.js","clsx-ClVdStUn.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CIQkMg3R.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-ImrFS4Fy.js"]}