# Revid AI Public API Guide (v3)

> Complete reference for the Revid public REST API: authentication, all endpoints, the workflow-driven render payload, status polling, webhooks, and working examples.

- Canonical URL: https://www.revid.ai/llm/revid-ai-api-guide.md
- Parent index: https://www.revid.ai/faq-for-llms.md
- Base URL: `https://www.revid.ai`
- Postman docs: https://documenter.getpostman.com/view/36975521/2sBXcGEfaB
- OpenAPI spec: https://www.revid.ai/postman/revid-public-v3-render.openapi.json
- Live machine-readable docs: `GET https://www.revid.ai/api/public/v3/render` (returns the master documentation as JSON)
- Last updated: September 2026

## Authentication

Get your API key at https://www.revid.ai/account. Send it with any of these headers:

- `Authorization: Bearer <REVID_API_KEY>`
- `key: <REVID_API_KEY>`
- `x-api-key: <REVID_API_KEY>`
- `x-revid-api-key: <REVID_API_KEY>`

Requests consume credits from your account. `POST /api/public/v3/calculate-credits` works **without** a key for cost estimation.

## Client identification

Send a descriptive `User-Agent` header identifying your integration, for example `User-Agent: my-app/1.0`.

- Requests sent with the default signature of some HTTP libraries (known examples, not an exhaustive list: Python's standard-library client `Python-urllib/*` and `libwww-perl/*`) are rejected by our edge protection in front of the API with `HTTP 403` and the plain-text body `error code: 1010`. They never reach the API, so the response is not the usual JSON error and the API key plays no part in it.
- If you get that response, set an explicit descriptive `User-Agent` and retry.
- The same applies when downloading the media URLs the API returns (`cdn.revid.ai`).

## Endpoints

| Method | Path | Purpose |
|---|---|---|
| GET | `/api/public/v3/render` | Master docs / field definitions (JSON) |
| POST | `/api/public/v3/render` | **Create a video** (returns `pid`) |
| GET | `/api/public/v3/status?pid=<pid>` | Render status; includes `videoUrl` when done |
| POST | `/api/public/v3/episodes` | **Make a series episode** (Series Maker on Autopilot): a new series from a prompt, or a series' next episode with `seriesId`; same characters and places every time. Returns a `runId` |
| GET | `/api/public/v3/episode-status?runId=<runId>` | Series episode progress (plan, references, scenes, assembly); the project `pid` to export when done |
| GET | `/api/public/v3/episode-series` | Your series, for `seriesId` |
| POST | `/api/public/v3/cancel-episode` | Stop a series episode still being made |
| GET | `/api/public/v3/me` | Account info for the API key |
| GET | `/api/public/v3/projects?limit=10` | List your projects |
| GET | `/api/public/v3/search-viral-videos?query=...` | Search viral videos/posts across 7 platforms — transcripts, engagement data, URLs (0 credits, rate limited per plan) |
| POST | `/api/public/v3/upload` | Get a one-time PUT link for a local image, video or audio file and its public `cdn.revid.ai` URL, to use as a media or reference URL (no credits) |
| POST | `/api/public/v3/calculate-credits` | Estimate credits for a payload (no key needed) |
| POST | `/api/public/v3/export-video` | Export an mp4 for an existing project: `resolution` (`720p`/`1080p`/`4k`, 4k +10 credits), `frameRate` (30/60), `compression` (`low`/`medium`/`high`) |
| POST | `/api/public/v3/rename-project` | Rename a project |
| POST | `/api/public/v3/duplicate-project` | Copy a project under a new id (no credits) |
| POST | `/api/public/v3/delete-project` | Delete a project; its public page goes offline |
| GET/POST | `/api/public/v3/project-visibility` | Read or set the public page: `public`, `unlisted` or `private` |
| GET | `/api/public/v3/voices` | Narration voices with labels, for `voice.voiceId` (no key needed) |
| GET | `/api/public/v3/presets` | Visual, motion graphics and caption presets (no key needed) |
| GET | `/api/public/v3/music-tracks` | Background music library for `music.trackName` (no key needed) |
| POST | `/api/public/v3/publish-now` | Publish to connected social channels |
| POST | `/api/public/v3/add-to-queue` | Schedule a video for publishing at `scheduledTime`, or the next open queue slot |
| GET/POST/DELETE | `/api/public/v3/consistent-characters` | List / create / delete consistent characters |
| POST | `/api/public/v3/voice-clone` | Clone a voice from a public sample URL |
| POST | `/api/public/v3/buy-credit-pack` | Trigger supported auto top-up credit packs |

## The render payload

`POST /api/public/v3/render` takes a workflow-driven JSON body. Only `workflow` is required; each workflow has its own required source fields:

| Workflow | Required fields | What it does |
|---|---|---|
| `script-to-video` (alias `voiceover-to-video`) | `source.text` | Narrated video from your exact script |
| `prompt-to-video` | `source.prompt` | AI writes script + builds everything |
| `article-to-video` | `source.url` | Video from an article/blog/post URL |
| `music-to-video` | `source.url` | Music video from Spotify/Suno/SoundCloud/file |
| `lyrics-to-video` | `source.text` (lyrics) or `source.prompt` (song description) | Revid generates the song, then its music video |
| `song-ad` | `source.prompt`, `source.text` or `media.provided[]` | Singing product ad: original jingle, performer, product B-roll |
| `audio-to-video` | `source.url` | Visuals over a podcast/interview audio |
| `avatar-to-video` | `source.text`, `avatar.url` | Talking-avatar video |
| `static-background-video` | `source.text` or `source.url` | Narration over a static/gameplay background |
| `motion-transfer` | `source.url`, `media.provided[]` | Face swap on an existing video |
| `character-swap` | `source.url`, one photo per person (`media.provided[]` and/or `characterIds`) | Replace every person in a video, moves and audio kept |
| `caption-video` | `source.url` | Add AI captions to an existing video |
| `video-to-clips` | `source.url` | Cut a long YouTube video into short captioned clips |
| `ad-generator` | `source.prompt` or `media.provided[]` | UGC-style video ad |

Main payload sections (all optional beyond the requirements above):

- `aspectRatio`: `portrait` | `feed` | `landscape` | `square` | `9:16` | `4:5` | `16:9` | `1:1` | `auto`
- `media`: `type` (`moving-image`/`ai-video`/`motion-graphics`/`stock-video`/`custom`), `quality` (`standard`/`pro`/`ultra`), `imageModel` (`cheap`/`good`/`ultra`), `videoModel` (`base`/`pro`/`ultra`/`veo3`/`sora2`; motion-graphics: `base` (Sonnet 5.5) at 2 credits/s, `pro` (Opus 5.5) at 3 credits/s or `ultra` (Opus 5.5 at maximum effort) at 5 credits/s, 15s minimum; `veo3`/`sora2` map to `pro`), `animation` (`none`/`soft`/`dynamic`/`depth`), `density` (`low`/`medium`/`high`), `maxItems`, `mediaPreset` (style slug, e.g. `PIXAR`), `provided[]`, `useOnlyProvided`, `useProvidedInOrder`, `backgroundVideo`, `turnImagesIntoVideos`, `applyStyleTransfer`
- `voice`: `enabled`, `voiceId`, `speed`, `stability`, `language`, `enhanceAudio`
- `captions`: `enabled`, `preset`, `position` (`top`/`middle`/`bottom`), `autoCrop`
- `music`: `enabled`, `trackName`, `audioUrl`, `soundWave`, `syncWith` (`beats`/`lyrics`), `generateMusic`, `generationMusicPrompt`, `enableLyricsLipSync`
- `avatar`: `enabled`, `url`, `removeBackground`
- `options`: `targetDuration` (seconds, up to 1800), `summarizationPreference` (`summarize`/`summarizeIfLong`/`no-summarization`), `outputCount`, `nsfwFilter`, `addStickers`, `soundEffects`, `language`, `useWholeAudio`, `hasToGenerateCover`, `watermark`
- `characterIds[]`: consistent character IDs
- `render`: `resolution` (`720p`/`1080p`/`4k`), `frameRate` (30/60), `compression`
- `webhookUrl`: called when generation completes
- `advanced.customCreationParams`: expert passthrough

## Example: script to video

```bash
curl -X POST "https://www.revid.ai/api/public/v3/render" \
  -H "Content-Type: application/json" \
  -H "key: <REVID_API_KEY>" \
  -H "User-Agent: my-app/1.0" \
  -d '{
    "workflow": "script-to-video",
    "source": {
      "text": "Three surprising AI productivity tips.\n\nTip one: let an agent draft, you edit.\n\nTip two: automate the boring 80 percent."
    },
    "aspectRatio": "portrait",
    "media": { "type": "moving-image", "quality": "pro", "animation": "soft" },
    "voice": { "enabled": true },
    "captions": { "enabled": true, "position": "bottom" },
    "webhookUrl": "https://example.com/revid-webhook"
  }'
```

Response: `{ "success": 1, "pid": "<project-id>", "workflow": "script-to-video", ... }`

## Example: prompt to video

```bash
curl -X POST "https://www.revid.ai/api/public/v3/render" \
  -H "Content-Type: application/json" \
  -H "key: <REVID_API_KEY>" \
  -H "User-Agent: my-app/1.0" \
  -d '{
    "workflow": "prompt-to-video",
    "source": { "prompt": "A cinematic 30-second launch video for a coffee brand, warm tones, energetic pacing", "durationSeconds": 30 },
    "media": { "type": "ai-video", "videoModel": "pro" }
  }'
```

## Polling for completion

```bash
curl "https://www.revid.ai/api/public/v3/status?pid=<pid>" -H "key: <REVID_API_KEY>" -H "User-Agent: my-app/1.0"
```

Poll until the response contains `videoUrl`. For production, prefer `webhookUrl` over polling.

## Making a series (Series Maker)

For recurring characters, places and props across episodes, use Series Maker instead of a single render. One call makes a whole episode on the server: the plan (story, cast, shot list), one reference image per character, place and prop, every scene clip, then the episode assembled in the editor with music, captions and the series outro.

```bash
curl -X POST "https://www.revid.ai/api/public/v3/episodes" \
  -H "key: <REVID_API_KEY>" -H "Content-Type: application/json" -H "User-Agent: my-app/1.0" \
  -d '{
    "prompt": "Mochi, a grumpy orange cat, runs a tiny bakery in Paris. Every morning something goes wrong before opening.",
    "style": "cartoon",
    "ratio": "9:16",
    "videoModel": "pro",
    "durationSeconds": 60
  }'
```

Poll `GET /api/public/v3/episode-status?runId=<runId>` every 30 to 60 seconds (a whole episode usually takes 10 to 30 minutes). When `status` is `done`, export the `pid` with `POST /api/public/v3/export-video` and poll `/api/public/v3/status?pid=<pid>` for `videoUrl`. For the next episode, send `{ "prompt": "...", "seriesId": "<seriesId>" }`: the series keeps its cast, places, style, ratio, model and language.

Cost: 16 credits per reference image, and per 5 s of scene clip 15 (`low`), 50 (`pro`) or 100 (`ultra`). The run never spends more than `maxCredits` (default 2500): it checks the approved plan's estimate first and stops with status `needs_attention` when it does not fit.

## Got questions? Quick answers

**How do I know what a render will cost?**
POST the same payload to `/api/public/v3/calculate-credits` first — no API key required.

**Where are the always-current field definitions?**
`GET https://www.revid.ai/api/public/v3/render` returns the live master documentation, and the OpenAPI spec is at https://www.revid.ai/postman/revid-public-v3-render.openapi.json

**Is there a simpler way for agents than raw HTTP?**
Yes — the MCP server (https://www.revid.ai/llm/revid-ai-mcp-server.md) and the CLI (https://www.revid.ai/llm/revid-ai-cli.md) wrap this API with agent-friendly ergonomics.

## Related pages

- For AI agents (recipes + decision guide): https://www.revid.ai/llm/revid-ai-for-ai-agents.md
- MCP server: https://www.revid.ai/llm/revid-ai-mcp-server.md
- CLI: https://www.revid.ai/llm/revid-ai-cli.md
- Credit costs: https://www.revid.ai/llm/revid-ai-credit-costs.md
