> ## Documentation Index
> Fetch the complete documentation index at: https://rendermate.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate from Bannerbear

> Move Bannerbear video, movie, animation and image templates to Rendermate: layers as nodes, modifications, transcription, AI tools, renders, webhooks and hosting, step by step.

A Bannerbear video starts from a template designed in its editor, with named layers that
`modifications` change for each render, over an input video or a series of frames. A Rendermate
video is a [document](https://rendermate.com/docs/documents.md): a timeline of JSX nodes, versioned like a git repository and
rendered on Rendermate's GPUs. This guide moves a Bannerbear integration over in the order you'd do
it: media first, then each template, then rendering and delivery.

***

## (1) How do I move my media to Rendermate?

Every file a document uses is a file in your workspace. Bannerbear reads `input_media_url`,
`image_url`, `asset_url` and `soundtrack_url` from URLs, so import each file with `import_asset`
(`POST /v1/imports`):

```bash theme={null}
curl https://api.rendermate.com/v1/imports \
  -H "Authorization: Bearer $RENDERMATE_API_KEY" \
  --json '{ "url": "https://my-bucket.s3.amazonaws.com/video.mp4", "name": "launch/video.mp4" }'
```

For files on your computer, such as the images and fonts your templates use, the [CLI](https://rendermate.com/docs/cli.md) keeps
a folder in step with one in your workspace:

```bash theme={null}
rendermate login
rendermate sync ./media
```

A document then refers to each file as `asset://<name>`, such as `asset://launch/video.mp4`.

***

## (2) How do I rebuild a template as a document?

### (A) Let your coding agent migrate it

Connect your agent to `https://api.rendermate.com/mcp` ([Claude Code](https://rendermate.com/docs/mcp/claude-code.md),
[Cursor](https://rendermate.com/docs/mcp/cursor.md)) and give it the template: its layers as Bannerbear's API returns them (a
V5 template's `config.objects`, or a V2 template's `available_modifications`) and an image of it. It writes the document with `create_document`
and `edit_document` and checks each moment with `get_frame`, following the mapping below.

### (B) Write the documents with the API

Create a document with `POST /v1/documents`, read its `jsx` with `GET /v1/documents/{id}`, and
commit your nodes with `POST /v1/documents/{id}/versions`.
[How do I edit a document?](https://rendermate.com/docs/documents.md#how-do-i-edit-a-document) shows the request. An empty
document is 10 seconds of 1920×1080 at 30 fps; set its `canvas` in the same edit.

### How does a template map onto a document?

| Bannerbear | | Rendermate |
| - | - | - |
| The template's `width` and `height` | → | `canvas.width`, `canvas.height` |
| An animation template's `frame_rate` | → | `canvas.frameRate`: `{numerator: 30, denominator: 1}` |
| The video's length | → | `canvas.duration`, in seconds |
| A layer's `name` | → | The node's `id` |
| A layer's `left`, `top`, `width`, `height` | → | A node's rectangle in the same pixels, from the top-left corner |
| Layer order, bottom to top | → | `common.order` keys: `"a0"` paints under `"a1"` |

[How do order keys work?](https://rendermate.com/docs/documents.md#how-do-order-keys-work) explains the keys.

### How do layers map?

| Bannerbear layer | | Rendermate node |
| - | - | - |
| `text` with `font_family`, `color`, `text_align_h` | → | `<text>` with `paragraph` content, a style's `fontId` and `color`, and `align` |
| A text layer's `background` | → | A `<shape>` rectangle under the text |
| `image` or `rectangle_image_container` with `image_url` | → | `<media>` with an asset from `assets.images`, `fit="cover"` |
| `rectangle` | → | `<shape>` with a `rect` geometry and a `paint` |
| `circle` | → | `<shape>` with a `circle` geometry |
| `svg_shape` | → | `<shape>` with a `path` geometry in SVG path syntax |
| `lottie` | → | `<lottie>` with an asset from `assets.lotties` |
| `hide: true` | → | Leave the node out, or a visibility condition such as `{show && <text … />}` |
| `shift_x`, `shift_y` | → | Added to the node's pixels, or `common.transform` with `translateX` and `translateY` |

### How do the video build packs map?

Each build pack is a layout of nodes over the input video:

| Bannerbear | | Rendermate |
| - | - | - |
| **Overlay**: `input_media_url` under the template | → | A `<media>` node for the video under the template's nodes, all running the whole `canvas.duration` |
| **Multi Overlay**: `frames` | → | One set of overlay nodes per frame, each starting where the last ends |
| `frame_durations` | → | Each frame's `common.duration`; without them, the video's length divided by the number of frames |
| **Transcribe** | → | A transcription model, then `text` nodes (step 4) |
| `trim_start_time` | → | The video node's `sourceIn`, in seconds |
| `trim_end_time` or `trim_to_length_in_seconds` | → | `canvas.duration` and the video node's `common.duration` |
| `zoom` and `zoom_factor` on an image | → | `common.transform` keyframes on `scaleX` and `scaleY`, with `common.origin` at the zoom's side |

### How do movies map?

A `POST /v2/movies` request plays its `inputs` one after another. In a document, put a `<media>`
node per input in a `sequence` node, whose children play one after another, or write each node's
`start` as the previous one's `start` plus its `duration`:

| Bannerbear | | Rendermate |
| - | - | - |
| An input's `asset_url` | → | A `<media>` node with that file as an asset |
| `trim_to_length_in_seconds` | → | The node's `common.duration` |
| An image input, 5 seconds by default | → | A `<media>` node from `assets.images` with `common.duration: 5` |
| `transition: "fade"` | → | Overlap two nodes and fade in the later one's `common.opacity` |
| `transition: "slideleft"` and the other slides | → | `common.transform.translateX` or `translateY` keyframes on the later node |
| `soundtrack_url` | → | An `<audio>` node running the whole `canvas.duration` |

### How do animation keyframes become Doc.keys?

A V5 animation template's `keyframes` give each object `delay`, `duration` and target values in
milliseconds. In a document, keyframe the value itself, in seconds from the node's `start`:
`Doc.keys([seconds, value, easing], …)`.

| Bannerbear | | Rendermate |
| - | - | - |
| `opacity` from 0 to 1, `delay: 500`, `duration: 1000` | → | `common.opacity`: `Doc.keys([0.5, 0], [1.5, 1])` |
| `left`, `top` | → | `common.transform.translateX` and `translateY`, as the difference from the node's pixels |
| `scale` | → | `common.transform.scaleX` and `scaleY` |
| `easing: "easeInOutQuad"`, `"easeOutCubic"`, `"easeOutBack"` | → | The same names: `"easeInOutQuad"`, `"easeOutCubic"`, `"easeOutBack"` |
| `"linear"` | → | `"linear"` |

A keyframe's easing shapes the move to the next keyframe, so put it on the first of the two.

***

## (3) How do I replace modifications?

Your code writes the values into the JSX. Keep your template as a JSX string with placeholders, such
as `{{TITLE}}`, replace them, and send the result:

* **One video per record:** call `create_document` with the filled-in `jsx`.
* **A change to one video:** commit an `edits` replacement, such as the title's text, on the version
  you read.

Keep each node's `id` the same as the layer's `name`, and a modification such as
`{"name": "title", "text": "Hello"}` tells you which node and field to replace. Every edit is a new
version that stays readable, with its author and message, and
[`list_versions`](https://rendermate.com/docs/mcp/tools/documents#list_versions) shows the history.

***

## (4) How do I move transcription and AI tools?

Call the model through `create_generation` (`POST /v1/generations`), at the provider's own price.
Its output is saved as an asset, ready for a document's `assets`:

| Bannerbear | | Rendermate model |
| - | - | - |
| The Transcribe build pack, or `subtitle_video` | → | A transcription model, such as `assemblyai/universal-2`, then `text` nodes |
| `generate_voiceover` | → | A speech model, such as `elevenlabs/v4` or `assemblyai/tts-1` |
| `generate_ai_video` | → | A video model, such as `bytedance/seedance-2.5` |
| `remove_bg` | → | A background removal model, `bytedance/rvm` |

A transcript has every word with its start and end time; write each line as a `text` node starting
at its first word. To review a transcript before it shows, as with `approval_required`, have your
code check the words before writing the nodes, or commit an `edits` correction to a `text` node
afterwards. [Models](https://rendermate.com/docs/models.md) lists every model, with its inputs and params.

***

## (5) How do I render, get notified and host the video?

| Bannerbear | | Rendermate |
| - | - | - |
| `POST /v2/videos`, `/v2/movies` or `/v5/animations` | → | `create_export` (`POST /v1/exports`) with the document and a version |
| `GET /v2/videos/{uid}` | → | `get_export` (`GET /v1/exports/{id}`) |
| `status`: `completed` or `failed` | → | The export's status, and webhooks `export.succeeded` and `export.failed` |
| `webhook_url`, or a project webhook | → | [Webhooks](https://rendermate.com/docs/webhooks.md) |
| `metadata` | → | Your own record of the export's `id` |
| `video_url`, `movie_url` | → | The export's `download_url` |
| `POST /v2/images` from a template | → | `get_frame` (`POST /v1/documents/{id}/frames`) at one moment of a document, as `jpg`, `png` or `webp` |
| `gif_preview_url` | → | `get_frame` at the moments you want to show |
| Files on Bannerbear's CDN, or signed URLs | → | A link (`create_link`): a page, an embed and HLS playback |

Exporting a version again reuses what was already rendered. `export.succeeded`'s `data` has the
`download_url`; copy the file from there to your own storage if you keep renders today.

A link plays one fixed version, or follows `latest`, so it plays each new version as you commit it.
It can autoplay, show controls, expire and ask for a password, and its pages can be on
[your own domain](https://rendermate.com/docs/custom-domains.md).

***

## (6) How do I switch over?

### (A) All at once

For a few templates, rebuild each one as a document, check it with `get_frame`, and switch your code
from `POST /v2/videos` to `create_export` in one release.

### (B) One template at a time

For a larger integration, keep rendering with Bannerbear while you move one template over:

1. Rebuild it as a document.
2. Compare a frame of your Bannerbear render with `get_frame` at the same time.
3. Switch the code that renders it to `create_export`, and its webhook handler to
   `export.succeeded`.
4. Move on to the next.

***

## Next steps

* [Documents](https://rendermate.com/docs/documents.md): every node, keyframes, assets and errors.
* [Webhooks](https://rendermate.com/docs/webhooks.md): verify and handle `export.succeeded`.
* [Models](https://rendermate.com/docs/models.md): every model `create_generation` can call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.