Zvid
v0.1.0Zvid: render videos & images from JSON; manage templates, projects, webhooks & credits.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_render Create video render
Queue a video render. Provide either a full project JSON as `payload` or a `template` ID (optionally with `variables`). Returns a jobId to poll with get_render. Credits are reserved up front. For NEW creative content do not hand-compose the payload: run plan_creative_video (or find_matching_examples) first and adapt a library example via start_from_example, then validate_project_json before rendering.
| Parameter | Type | Description |
|---|---|---|
overrides | object | Optional output overrides applied on top of the payload/template. |
payload | object | Full Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r… |
template | string | Template ID, e.g. "tpl_AbC123..." (20 chars after the prefix) |
variables | object | Template variable values, keyed by variable name. |
webhookUrl | string | Optional per-job webhook URL notified on render.completed / render.failed. |
create_image_render Create image render
Queue a still-image render (PNG/JPEG) from a project JSON or an image-type template. Overrides support snapshotTime, quality and transparent. Returns a jobId to poll with get_render. For NEW creative stills, first run find_matching_examples with type: "image" and adapt a library example via start_from_example instead of composing from scratch.
| Parameter | Type | Description |
|---|---|---|
overrides | object | Optional output overrides applied on top of the payload/template. |
payload | object | Full Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r… |
template | string | Template ID, e.g. "tpl_AbC123..." (20 chars after the prefix) |
variables | object | Template variable values, keyed by variable name. |
webhookUrl | string | Optional per-job webhook URL notified on render.completed / render.failed. |
get_render Get render status
Get a render job's state (waiting|active|completed|failed), progress (0-100), and — when completed — the output url and thumbnailUrl.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Render job ID (UUID) returned when the render was created |
list_renders List renders
List this account's render jobs, newest first. Optionally filter by type (video|image).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (default 20, max 100) |
page | integer | Page number (default 1) |
type | string |
get_project_schema Get project JSON Schema
Get the JSON Schema (draft 2020-12) for a Zvid render payload — element types, required fields, enums, defaults, min/max bounds and URL restrictions — plus notes for cross-field rules the schema cannot express (timing checks, plan limits, sanitizer rules). Use target: "render-request" for the full request envelope (payload XOR template + variables/overrides/webhookUrl). Derived from the backend validation code, which always wins over docs.
| Parameter | Type | Description |
|---|---|---|
target | string | What to describe: "project" (the payload object, default) or "render-request" (the full POST body) |
validate_project_json Validate project JSON
Validate a Zvid project payload BEFORE rendering (free, no credits). Returns { valid, errors: [{field, message}], warnings }. Warnings include LAYOUT LINT — overlapping texts, x/y ignored by position presets, boxes extending off-canvas, padding that will get cut off, low text contrast — treat every layout warning as a fix-before-render item. Local validation mirrors the backend rules; set remote: true to ALSO run the payload through the live API validator (POST /api/render/validate/api-key — resolves templates and applies your plan's real limits).
| Parameter | Type | Description |
|---|---|---|
payload * | object | The project JSON to validate (the `payload` you would pass to create_render) |
kind | string | Validate as a bare "project" payload (default) or as a full "render-request" body |
remote | boolean | Also validate server-side against your account's actual plan limits (default true; set false only for offline diagnostics) |
list_supported_elements List supported elements
List every element type a Zvid project supports (visuals: IMAGE, VIDEO, GIF, SVG, TEXT; plus AUDIO items, SUBTITLE and SCENE) with a summary and required fields. Use get_element_docs for full per-type docs and examples.
get_element_docs Get element docs
Get concise docs for one element type — required fields, every supported field with constraints, gotchas, and a valid example. Types: IMAGE, VIDEO, GIF, SVG, TEXT, AUDIO, SUBTITLE, SCENE (case-insensitive).
| Parameter | Type | Description |
|---|---|---|
element * | string | Element type, e.g. "TEXT", "IMAGE", "VIDEO", "GIF", "SVG", "AUDIO", "SUBTITLE", "SCENE" |
get_example_payload Get example payload
Get one of five GENERIC starter payloads for a common flow: promo-video (10s scene-based hook/value/CTA with scrim + flex-centered card), template-render (variables), still-image (transparent PNG, single html card), subtitles (karaoke captions), webhook-flow (per-job webhookUrl). These are schema scaffolds, NOT the designed library — for premium creative work use find_matching_examples / start_from_example first and fall back here only when no library example fits. Omit `name` to list all examples.
| Parameter | Type | Description |
|---|---|---|
name | string | Example name; omit to get every example |
plan_creative_video Plan a professional creative video
Turn a brief into a plan-aware storyboard, style/layout direction, scene recipes and anti-repetition rules BEFORE authoring JSON — plus libraryCandidates: concrete published examples ranked against the brief with an adapt-vs-assemble decision. Follow that decision: adapt the top example via start_from_example, or assemble from the returned design-template/canvas-preset/shape modules. Modes: consistent reuses a stable seed; fresh produces a new direction; explore returns 2-5 materially different directions.
| Parameter | Type | Description |
|---|---|---|
brief * | string | What the video should communicate, for whom, and the desired outcome. |
aspectRatio | string | |
brand | object | Optional brand tokens that remain stable across creative variations. |
duration | number | |
exploreCount | integer | |
motionIntensity | string | |
preferredMedia | string | |
recentAssetSlugs | array | Recently used creative-library slugs to exclude from fresh/explore results. |
style | string | Style pack id or auto. Built-ins: adaptive-modern, modern-saas, bold-commerce, editorial-data, social-kinetic, luxury-minimal. |
variationMode | string | |
variationSeed | Optional reproducible seed. Reuse it for the same composition; change or omit it for a fresh direction. |
find_matching_examples Find matching library examples
Match a brief against the ENTIRE published examples library (hundreds of professionally designed, render-ready projects) and return ranked candidates with thumbnails/previews plus a decision: "adapt-example" (strong match — call start_from_example), "adapt-or-assemble", or "assemble-similar" (compose from the returned design-template/canvas-preset/shape modules). Use this before authoring any project JSON by hand; matching runs over full metadata with category synonyms, so it finds examples the plain search_creative_library query cannot.
| Parameter | Type | Description |
|---|---|---|
brief * | string | What to create, for whom, and the goal — same brief you would give plan_creative_video. |
aspectRatio | string | |
duration | number | Target video duration in seconds (soft signal). |
excludePremium | boolean | Set true on free-plan accounts to skip premium examples (their content is plan-gated). |
excludeSlugs | array | Recently used example slugs to exclude (anti-repetition). |
includeParts | boolean | Include design-template/canvas-preset/shape modules for assembly. Default: automatic (included unless a strong example match exists). |
limit | integer | |
type | string | Restrict to video examples, still-image examples, or both. |
variationMode | string | fresh (default) rotates which comparable top candidate leads, so repeated identical briefs vary; "consistent" keeps ranking deterministic. |
variationSeed | Optional reproducible seed for the rotation; omit for a new pick per request. |
render_from_example Render an adapted library example
The EASIEST premium render path: pick a library example and supply new VARIABLE VALUES (copy, media URLs, colors) — the server fetches the example, saves it as a template, dry-runs your variables, and queues the render, keeping the example's designed layout/animations fully intact. Use start_from_example first to see the variable names and defaults. Provide only declared variables; unknown names are reported. Spends credits like create_render; returns jobId + the created templateId for reuse.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Library example slug to render |
name | string | Output/job name (letters, digits, spaces, _ and - only) |
overrides | object | Optional output overrides applied on top of the payload/template. |
variables | object | New values for the example's declared variables (see start_from_example adaptationMap.variables). Omitted variables keep their defaults. |
start_from_example Start from a library example
Fetch a library example's complete render-ready project JSON plus an ADAPTATION MAP (declared variables with defaults, text slots with current copy, media slots, scene/timing summary, fonts) and the adaptation contract. This is the premium-quality path: keep the example's layout and animations, swap copy/media/brand. When adaptationMap.recommendedWorkflow is "template-render" (variables/condition/iterate present), save the payload with create_template and render with variables instead of editing placeholders inline. Premium examples need a paid plan — if locked, free alternatives are suggest…
| Parameter | Type | Description |
|---|---|---|
slug * | string | Example slug from find_matching_examples, plan_creative_video libraryCandidates, or search_creative_library |
search_creative_library Search the creative library
Search curated complete project examples, animated Design Studio templates, canvas motion presets, or shapes. NOTE: the server search is a plain AND-of-substrings over title/slug/description — use short single-word queries here, and prefer find_matching_examples when matching a brief to examples (it ranks the whole library with category synonyms). Inspect preview/thumbnail metadata before choosing. For fresh/explore work, exclude recent slugs returned by plan_creative_video.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
limit | integer | |
offset | integer | |
query | string | Short search text (server max 80 chars; only the first 4 whitespace-separated terms are ANDed) |
get_creative_asset Get a creative-library asset
Get metadata and, by default, the full JSON content for one creative-library item. Examples are complete projects — when you intend to ADAPT one, prefer start_from_example (it also returns an adaptation map and contract). Design templates/canvas presets/shapes are reusable modules and must be composed into a project.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
slug * | string | |
includeContent | boolean |
list_stock_providers List configured stock-media providers
List the stock providers currently available for image, video, GIF and audio searches.
search_stock_media Search stock media
Search server-configured stock image, video, GIF or music providers. Results contain preview and full-quality src URLs suitable for Zvid payloads plus dimensions/duration and attribution metadata.
| Parameter | Type | Description |
|---|---|---|
type * | string | |
page | integer | |
perPage | integer | |
provider | string | |
query | string |
repair_project_json Repair project JSON
Attempt conservative auto-fixes on an invalid project payload (wrong-case type, clamped numbers, format conflicts like transparent+jpg, swapped begin/end timings, unknown fields, empty/impossible elements) and explain every change. Returns the repaired payload plus its validation result — problems that need real input (e.g. missing media URLs) are left as errors.
| Parameter | Type | Description |
|---|---|---|
payload * | object | The (possibly invalid) project JSON to repair |
create_bulk_render Create bulk render
Queue N renders from one template/payload and a list of per-item variable sets (max 500 items, plan-limited). Validation is best-effort per item: valid items queue, invalid ones are reported in itemErrors. Returns bulkId + jobIds.
| Parameter | Type | Description |
|---|---|---|
items * | array | One entry per render; each item's variables merge over the base variables. |
kind | string | What the payload/template renders |
name | string | Name for the bulk batch |
overrides | object | Optional output overrides applied on top of the payload/template. |
payload | object | Full Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r… |
template | string | Template ID, e.g. "tpl_AbC123..." (20 chars after the prefix) |
variables | Base variables applied to every item | |
webhookUrl | string | Optional per-job webhook URL notified on render.completed / render.failed. |
get_bulk_render Get bulk render
Get a bulk render batch by ID (blk_...) including its jobs' states.
| Parameter | Type | Description |
|---|---|---|
bulkId * | string | Bulk render ID, e.g. "blk_..." |
list_bulk_renders List bulk renders
List this account's bulk render batches.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (default 20, max 100) |
page | integer | Page number (default 1) |
list_templates List templates
List this account's render templates (id, name, description).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (default 20, max 100) |
page | integer | Page number (default 1) |
get_template Get template
Get a template by ID including its full project JSON (inspect it to discover the variables it expects).
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Template ID, e.g. "tpl_AbC123..." (20 chars after the prefix) |
create_template Create template
Create a reusable template from complete project JSON. Read get_project_schema first; every placeholder must have a safe default and video-template scenes need explicit durations. The backend validates the template against this account's plan before saving it. This is also the render path for adapted library examples that use variables/condition/iterate: create_template -> preview_template -> create_render { template, variables }.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
payload * | object | Full Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r… |
description | string |
update_template Update template
Rename a template, change its description, and/or replace its project JSON. Get the current template first so fields are not accidentally lost; replacement JSON is fully validated before saving.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Template ID, e.g. "tpl_AbC123..." (20 chars after the prefix) |
description | string | |
name | string | |
payload | object | Full Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r… |
delete_template Archive template
Archive an active template owned by this account. Archived templates cannot be rendered or updated, so call this only when the user explicitly asks to remove it.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Template ID, e.g. "tpl_AbC123..." (20 chars after the prefix) |
duplicate_template Duplicate template
Create an editable copy of an owned template, including archived templates. The copy is active and counts against the account's template quota.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Template ID, e.g. "tpl_AbC123..." (20 chars after the prefix) |
preview_template Preview template (dry run)
Resolve a template's variables and validate the result WITHOUT rendering or spending credits. Use this to check variable values before create_render.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Template ID, e.g. "tpl_AbC123..." (20 chars after the prefix) |
overrides | object | Optional output overrides applied on top of the payload/template. |
variables | object | Template variable values, keyed by variable name. |
list_projects List projects
List editor draft projects saved on this account.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (default 20, max 100) |
page | integer | Page number (default 1) |
get_project Get project
Get a draft project (prj_...) including its project JSON.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project ID, e.g. "prj_..." |
create_project Create project
Save a new editor draft project. It becomes editable at https://zvid.io/editor?project=<id>.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
payload * | object | Full Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r… |
update_project Update project
Rename a draft project and/or replace its project JSON.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project ID, e.g. "prj_..." |
name | string | |
payload | object | Full Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r… |
delete_project Delete project
Permanently delete a draft project.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project ID, e.g. "prj_..." |
list_webhooks List webhooks
List webhook endpoints registered on this account, plus usage vs plan limit.
create_webhook Create webhook
Register a webhook endpoint for render events. The response includes the signing secret (whsec_...) shown in full only here and on get_webhook — deliveries are signed with HMAC-SHA256 in the X-Zvid-Signature header.
| Parameter | Type | Description |
|---|---|---|
events * | array | Events to subscribe to |
url * | string | HTTPS endpoint to deliver events to |
description | string |
get_webhook Get webhook
Get a webhook endpoint (whk_...) including its signing secret and failure state.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | Webhook ID, e.g. "whk_..." |
update_webhook Update webhook
Update a webhook's url, events, description, or enable/disable it.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | Webhook ID, e.g. "whk_..." |
description | string | |
events | array | |
status | string | |
url | string |
delete_webhook Delete webhook
Delete a webhook endpoint.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | Webhook ID, e.g. "whk_..." |
test_webhook Send test webhook
Queue a signed test event delivery to a webhook endpoint.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | Webhook ID, e.g. "whk_..." |
list_webhook_deliveries List webhook deliveries
List recent delivery attempts for a webhook endpoint (status, attempts, response codes).
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | Webhook ID, e.g. "whk_..." |
limit | integer | Items per page (default 20, max 100) |
page | integer | Page number (default 1) |
get_credits Get credit balance
Get the account's credit balance (total balance, subscription credits, and add-on credit pack balance).
get_usage_stats Get usage stats
Get render/credit usage statistics for a timeframe (e.g. 7d, 30d, 90d).
| Parameter | Type | Description |
|---|---|---|
timeframe | string | Timeframe like "30d" (default) |