> ## 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 Creatomate

> Move Creatomate RenderScript and templates to Rendermate: media, elements and tracks as documents, modifications, AI voice-overs, renders, webhooks and hosting, step by step.

A Creatomate video is RenderScript: JSON elements on numbered tracks, sent with each render request
or saved as a template that `modifications` fill in. A Rendermate video is a
[document](https://rendermate.com/docs/documents.md): the same timeline as JSX nodes, versioned like a git repository and
rendered on Rendermate's GPUs. This guide moves a Creatomate 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. A Creatomate element reads its `source`
from a URL, so import each one 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 those you uploaded to Creatomate's media library, 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`. Font
files for the families your `font_family` values name move the same way.

***

## (2) How do I rebuild RenderScript 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 a template's RenderScript, which the template editor shows as
JSON. 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 RenderScript map onto a document?

| Creatomate | | Rendermate |
| - | - | - |
| `width`, `height` | → | `canvas.width`, `canvas.height` |
| `frame_rate` | → | `canvas.frameRate`: `{numerator: 30, denominator: 1}` |
| `duration` | → | `canvas.duration`, in seconds |
| `elements` | → | The `<timeline>` element's child nodes |
| An element's `name` | → | The node's `id` |
| `time` and `duration` | → | `common.start` and `common.duration`, in seconds |
| `track` | → | `common.order` keys: a higher track gets a later key |
| `fill_color` on the top level or a full-frame shape | → | A `<fill>` node under everything else |

### How do elements map?

| Creatomate element | | Rendermate node |
| - | - | - |
| `video` with `trim_start` | → | `<media>` with an asset from `assets.media` and `sourceIn` |
| `image` | → | `<media>` with an asset from `assets.images` |
| `audio` with `volume` | → | `<audio>` with `gain` |
| `text` with `font_family`, `font_size`, `fill_color` | → | `<text>` with `paragraph` content and a style's `fontId`, `fontSize`, `color` |
| `x_alignment` on text | → | The paragraph's `align` |
| `shape` | → | `<shape>` |
| `composition` | → | Its elements, with the composition's `time` added to theirs (see below) |
| `fit: "cover"` or `"contain"` | → | `fit="cover"` or `fit="contain"` |
| `opacity` | → | `common.opacity`, from 0 to 1 |
| `x_scale`, `y_scale`, `z_rotation` | → | `common.transform` with `scaleX`, `scaleY` and `rotate` |

Here is a title over a video, as RenderScript and as a document's nodes:

```json Creatomate theme={null}
{
  "output_format": "mp4",
  "width": 1920,
  "height": 1080,
  "elements": [
    { "name": "Background-Video", "type": "video", "track": 1,
      "source": "https://…/video.mp4", "trim_start": 2, "duration": 8 },
    { "name": "Title", "type": "text", "track": 2, "time": 0, "duration": 4,
      "text": "Hello World", "font_family": "Montserrat", "font_weight": "700",
      "font_size": "64 px", "fill_color": "#ffffff", "x_alignment": "50%",
      "y": "55%", "height": null }
  ]
}
```

```jsx Rendermate theme={null}
export const assets = {
  fonts: [{id: "montserrat", family: "Montserrat", weight: 700, style: "normal", source: {type: "uri", uri: "asset://fonts/Montserrat-Bold.ttf"}}],
  media: [{id: "video", source: {type: "uri", uri: "asset://launch/video.mp4"}}],
};

// Inside <timeline>:
<media
  id="Background-Video"
  common={{start: 0, duration: 8, order: "a0"}}
  assetId="video"
  destination={{x: 0, y: 0, width: 1920, height: 1080}}
  fit="cover"
  sampling={{filter: "linear", mipmap: "linear"}}
  sourceIn={2}
/>
<text
  id="Title"
  common={{start: 0, duration: 4, order: "a1"}}
  content={{
    type: "paragraph",
    text: "Hello World",
    position: {x: 0, y: 560},
    width: 1920,
    align: "center",
    style: {fontId: "montserrat", fontSize: 64, color: "#ffffff"},
  }}
/>
```

### How do tracks become paint order?

Creatomate draws elements in track order, so track 1 is the bottom layer. In a document, siblings
paint in `common.order` key order, so give track 1 the lowest key, such as `"a0"`, and each higher
track a later key. An element with a `z_index` is drawn above every element without one; give it a
key after all of theirs. [How do order keys work?](https://rendermate.com/docs/documents.md#how-do-order-keys-work) explains the
keys.

Elements that share a track also play one after another. Write each one's `common.start` as the
previous element's `start` plus its `duration`, or put them in a `sequence` node, whose children play
one after another.

### How do percentages and anchors become pixels?

A Creatomate element's `x` and `y` place its anchor, by default its center (`x_anchor` and
`y_anchor` of `50%`), and a percentage counts from the composition's size. A document places a
`media` node in a `destination` rectangle in pixels, and a `text` node at a `position` in pixels,
both measured from the canvas's top-left corner. On a 1920×1080 canvas, an element with `x: "50%"`,
`y: "50%"`, `width: "40%"` and `height: "40%"` is 768×432 pixels with its top-left corner at 576,
324\. `vmin` is a percentage of the canvas's shorter side, so `5 vmin` at 1920×1080 is 54 pixels.

### What do null, "media", "end" and "fr" timings become?

Write every `time` and `duration` as seconds:

| Creatomate | | Rendermate |
| - | - | - |
| `"time": null` | → | The previous node's `start` plus its `duration` on that track, or a `sequence` node |
| `"time": "end"` | → | The canvas's `duration` minus the node's `duration` |
| `"duration": "media"` | → | The file's own length, in seconds |
| `"duration": null` | → | The rest of its track or composition: the canvas's `duration` minus the node's `start` |
| `"duration": "1 fr"` | → | The canvas's `duration` divided by the shares on the track |

### How do compositions become one timeline?

A composition's elements count their `time` from the composition's start. In a document every node's
`start` counts from the start of the video, so add the composition's `time`: an element with
`time: 1` in a composition at 12 seconds has `common.start: 13`. Compositions that share a track play
one after another, like any elements on one track.

### How do animations and keyframes become Doc.keys?

A keyframed property becomes `Doc.keys([seconds, value, easing], …)`, timed from the node's own
`start` as in Creatomate. Two things differ:

* **Easing sits on the other keyframe.** In Creatomate, a keyframe's `easing` shapes the move
  towards it. In a document, it shapes the move away from it, towards the next one: move each
  `easing` to the keyframe before it.
* **The default is linear.** Creatomate eases with `quadratic-in-out` when a keyframe names none;
  write `"easeInOutQuad"` to keep that motion.

| Creatomate | | Rendermate |
| - | - | - |
| A `fade` animation over 1 second at the start | → | `common.opacity`: `Doc.keys([0, 0], [1, 1])` |
| A `fade` with `reversed: true` at the end | → | `common.opacity` keyframes from 1 to 0 over the node's last second |
| A `scale` or `slide` animation | → | `common.transform` keyframes on `scaleX`, `scaleY`, `translateX` or `translateY` |
| `transition: true` between two elements | → | Overlap the two nodes and fade in the later one's `common.opacity` |
| `quadratic-out`, `cubic-in-out`, `sinusoid-in` | → | `"easeOutQuad"`, `"easeInOutCubic"`, `"easeInSine"` |
| `exponential-*`, `back-*` | → | `"easeOutExpo"`, `"easeOutBack"` and their `In` and `InOut` forms |

***

## (3) How do I replace templates and 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 Creatomate element's `name`, and a modification such as
`"Title": "Hello"` or `"Title.fill_color": "#ff0000"` 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 AI voice-overs, generated media and subtitles?

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`:

| Creatomate | | Rendermate model |
| - | - | - |
| An `audio` element with an ElevenLabs or OpenAI `provider` | → | A speech model, such as `elevenlabs/v4` or `assemblyai/tts-1`, with the text as its prompt and `voice` as a param |
| A `video` element with a generative `provider` | → | A video model, such as `bytedance/seedance-2.5` |
| A text element with `transcript_source` (auto subtitles) | → | A transcription model, such as `assemblyai/universal-2`, then `text` nodes |
| Background music | → | `elevenlabs/music-v2.5` |

```bash theme={null}
curl https://api.rendermate.com/v1/generations \
  -H "Authorization: Bearer $RENDERMATE_API_KEY" \
  --json '{ "model": "assemblyai/tts-1", "prompt": "Welcome to the launch.", "output": "launch/voice.mp3" }'
```

A transcript has every word with its start and end time; write each line as a `text` node starting
at its first word. [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?

| Creatomate | | Rendermate |
| - | - | - |
| `POST /v2/renders` | → | `create_export` (`POST /v1/exports`) with the document and a version |
| `GET /v2/renders/{id}` | → | `get_export` (`GET /v1/exports/{id}`) |
| `status`: `succeeded` or `failed` | → | The export's status, and webhooks `export.succeeded` and `export.failed` |
| `webhook_url`, or the project's default webhook | → | [Webhooks](https://rendermate.com/docs/webhooks.md) |
| `metadata` | → | Your own record of the export's `id` |
| The render's `url` | → | The export's `download_url` |
| `snapshot_time` and `snapshot_url` | → | `get_frame` (`POST /v1/documents/{id}/frames`) at that time |
| Sharing the render's file | → | 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 store 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/renders` to `create_export` in one release.

### (B) One template at a time

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

1. Rebuild it as a document.
2. Compare a frame of your Creatomate 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.