/revid:revid-api-foundationsfrom revid
Installs the Revid MCP server and documents the render_video / get_project_status / export_video tools, workflow discriminator, and response envelope. Load once at session start; other skills build on this.
Ships in revid. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Everything every other skill in this library depends on. Read this once.
What changed: Skills now talk to Revid through the Revid MCP server (
https://www.revid.ai/api/mcp) instead of constructing raw HTTPS requests. The JSON shape is identical to the public API — only the transport changed. The HTTPS endpoints still exist as a fallback (see § Direct HTTPS fallback).
Always — but transparently. Other skills assume the agent already knows:
Add this once to your agent's MCP config (Claude Code, Cursor, OpenClaw, Codex, Gemini CLI — any MCP-capable client):
{
"mcpServers": {
"revid": {
"url": "https://www.revid.ai/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_REVID_API_KEY"
}
}
}
}
Get a key at https://www.revid.ai/account. Any of these headers also works:
x-revid-api-key, x-api-key, key.
That's the entire setup. No SDK, no per-skill env var, no polling glue.
tool: render_video
args: { workflow: "<one-of-10>", source: { … }, … }
↓
{ ok: true, data: { pid: "p_…", … } }
↓
tool: get_project_status
args: { pid: "p_…" }
↓ (call again every ~5–8 s until status === "ready")
{ ok: true, data: { status: "ready", videoUrl: "https://cdn.revid.ai/v/…mp4" } }
↓ (optional, to force a fresh export)
tool: export_video
args: { pid: "p_…", fileName: "demo.mp4" }
That's the entire contract. Skills only differ in the body of render_video.
| Tool | Purpose |
|---|---|
render_video | Start a render. Returns pid. |
get_project_status | Poll a pid until status === "ready". |
export_video | Force a fresh mp4 export from an existing pid. |
calculate_credits | Estimate credit cost without rendering. No API key required. |
list_projects | List the user's recent renders. |
rename_project | Rename an existing project. |
clone_voice | Clone a custom voice from a sample URL (Elite plan). |
list_characters / create_character / delete_character | Manage saved consistent characters / avatars. |
schedule_publish | Queue the rendered mp4 into the next publishing slot. |
publish_now | Publish the rendered mp4 immediately to a connected channel. |
buy_credit_pack | Trigger an auto-top-up purchase. |
The 11 content-skill SKILL.md files in this catalog wrap only
render_video + get_project_status (+ export_video when needed).
| Workflow | Use when input is… |
|---|---|
script-to-video | Already-written script (text). |
prompt-to-video | A one-liner idea — the API writes the script. |
article-to-video | Any URL with text content (blog/product/news). |
avatar-to-video | A script + an avatar image (talking-head). |
ad-generator | A product description — AI writes ad hooks. |
audio-to-video | A voice/music recording you want visualized. |
music-to-video | A music URL + visuals. |
motion-transfer | A reference image animated with motion from a clip. |
caption-video | An existing video that needs captions. |
static-background-video | A voiceover over a fixed background. |
Pick the workflow that matches the input shape, not the output you want.
The same script-to-video workflow can produce a Reel, a YouTube short, or a
LinkedIn square — that's just aspectRatio.
Each workflow expects one of these source.* fields:
| Workflow | Field |
|---|---|
script-to-video | source.text |
prompt-to-video | source.prompt (+ optional source.stylePrompt, source.durationSeconds) |
article-to-video | source.url (+ optional source.scrapingPrompt) |
ad-generator | source.prompt (the product description) |
avatar-to-video | source.text (script) + top-level avatar.url |
music-to-video / caption-video / motion-transfer | source.url |
static-background-video | source.text + media.backgroundVideo |
If you put text in the wrong field, render_video returns ok: false with a
schema error.
aspectRatio — pick from the consumer surface:
"9:16""1:1""16:9"voice.enabled — true for narrated content; false for music-only or
caption-only outputs.
captions.enabled — keep true by default. Most short-form watches happen
on mute.
music.enabled — true for promo / ad / story content; false for
talking-head where the avatar voice should breathe.
render.resolution — "1080p" is the right default. Use "720p" for
cheap previews; "4k" only when downstream needs it.
media.quality / media.videoModel — start at "pro". Bump to
"ultra" / "veo3" / "sora2" only when the cost is justified. Call
calculate_credits first with the same payload to get a price estimate
without spending.
webhookUrl — pass it whenever the caller can receive webhooks. Skips
polling entirely.
Every MCP tool returns:
{
"ok": true,
"status": 200,
"endpoint": "/api/public/v3/render",
"method": "POST",
"data": { /* the public-API response body */ }
}
For render_video, success looks like:
{ "ok": true, "data": { "success": 1, "pid": "p_…", "workflow": "…" } }
Failure:
{ "ok": false, "status": 422, "error": "human-readable string" }
Skills should always check ok === true and data.success === 1 before
proceeding.
After render_video, call get_project_status until data.status === "ready":
function waitForRevid(pid, opts = { timeoutMs: 600_000 }):
deadline = now() + opts.timeoutMs
delay = 5_000 # ms
loop while now() < deadline:
res = mcp.call("get_project_status", { pid })
if not res.ok:
throw Error(res.error or "status check failed")
body = res.data
if body.status == "ready":
return body # body.videoUrl present
if body.status == "failed":
throw Error(body.error or "render failed")
sleep(delay)
if body.progress > 30: delay = 8_000
throw TimeoutError("pid $pid not ready after $opts.timeoutMs ms")
In production prefer setting webhookUrl in render_video and skip polling.
The two most common errors every skill must handle:
scrape failed / 403 from source URL — the page is JS-only or blocks
bots. Either pre-scrape it yourself and switch to script-to-video, or pass
source.scrapingPrompt with the manual title + body.insufficient_credits — drop media.quality / videoModel /
render.resolution and retry, or call buy_credit_pack.The MCP server is a thin wrapper around the public API. If your agent runtime can't load MCP servers, the same payload works as a raw POST:
POST https://www.revid.ai/api/public/v3/render
Content-Type: application/json
key: <REVID_API_KEY>
<the render_video payload>
It returns { "success": 1, "pid": "p_…" }. Poll
GET https://www.revid.ai/api/public/v3/status?pid=p_… with the same key header.
Each examples/run.sh in this repo uses this fallback path so you can smoke-test
without an MCP-capable client.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tmakersas/revid-skills --plugin revid13 skills in this plugin
/revidMake, edit, export and post AI videos with Revid (revid.ai) through the Revid MCP server. Use whenever the user wants a short-form or long-form video made (from an idea, a script, a URL, an article, a PDF, a tweet, a product page, their own clips, or a song), wants to find what is going viral on TikTok, YouTube, Instagram or X before making something, wants to edit or re-export an existing Revid project, generate a standalone AI image or clip, make a series episode, or publish and schedule a finished video to connected social accounts. Covers setup (hosted MCP with OAuth, or an API key), the 36 tools, credits, polling and the rules for publishing. Routes to the more specific revid-* skills when one fits./revid-article-to-shortTurn any news article or long-form post URL into a 30–60 second 9:16 short with stock visuals, narration, and captions. Use when the user shares a link and wants an edited summary, not a talking-head. Calls the Revid MCP server (render_video → get_project_status)./revid-blog-to-avatar-videoTurn a blog post URL into a talking-head avatar video — the avatar reads a summarized script of the post against a clean background. Use when the user wants a personal/expert delivery vs an edited promo. Calls the Revid MCP server (render_video → get_project_status)./revid-news-to-daily-shortGenerate a daily news short on a topic Revid researches itself. Use for a recurring "news of the day in <niche>" channel — the user only supplies the topic; Revid fetches fresh news, writes the script, and produces the video. Calls the Revid MCP server (render_video → get_project_status)./revid-pdf-to-videoTurn a PDF (whitepaper, ebook chapter, slide deck export, research paper) into a short summary video. Use when the source is a PDF URL or a PDF the agent can upload to public storage first. Calls the Revid MCP server (render_video → get_project_status)./revid-product-description-to-adTurn a product description (free-form text — no URL needed) into a punchy 15–30 second AI-generated ad with hooks, CTA, and visuals. Use when the user pastes copy or specs but doesn't have a live page to scrape. Calls the Revid MCP server (render_video → get_project_status).Other plugins' skills for the same job