API reference

Blitframe renders a composition, the description of a video's layers and how they move, to MP4, HLS or image frames. A composition can come from After Effects, from your own code or from an AI agent.

Every endpoint has a page in the API reference with its fields and a request in nine languages. Try it sends the request from your browser with your API key.

Authentication

An API key identifies your workspace. Create one in the console, and send it on every request:

Authorization: Bearer blitframe_...

How it works

Object What it is
Project The place where one piece of motion graphics lives: its composition, its files and every saved version of them. Its headVersionId is the current version, which edits and renders use unless you name another.
Version A snapshot of every file of a project. Each edit saves a new one.
Render The job that makes the finished output from one version: an MP4, an HLS stream or image frames.
  1. POST /v1/projects creates an empty project.
  2. POST /v1/projects/{projectId}/versions edits the project: the files you send are saved as a new version. Send the composition, a file named data.json, and the files it uses.
  3. The response says whether the version is renderable. If it is not, problems lists what to fix. Send the fix in another edit.
  4. POST /v1/renders with the projectId queues a render.
  5. GET /v1/renders/{renderId} returns the render: its status and, once it has succeeded, the links to its output. Send the Prefer: wait=50 header to have the response held until the render finishes, for up to 50 seconds. Or have a webhook tell you.

Quickstart: Code walks through these steps. The composition format lists everything a composition can hold.

To make Use
One-off videos that swap text or pictures, such as one per row of a data sheet POST /v1/projects/{projectId}/renders/batch. See many videos from a data sheet.
The same video in another form that you keep editing, such as in Spanish or vertical for phones POST /v1/projects/{projectId}/variations. See Variations.

Conventions

Topic Rule
Format JSON bodies with case-sensitive camelCase fields and values (an unknown or repeated field, or an unknown query parameter, is 400 invalid_request), ISO 8601 times. Ids are UUIDs, except render link ids and library font slugs.
Enums camelCase strings. Webhook event types are dotted, such as render.succeeded.
Lists { "items": [...], "next": "..." }. Pass next as before for the next page (as after for project files, variations and library fonts). next is null on the last page. limit sets the page size, 1 to 1,000.
Errors { "error": { "code": "...", "message": "..." } }. Have your code check code, not message. See errors.
Retries Send an Idempotency-Key header when you create a project, variation or upload, edit, import a ZIP or render, and the same key when you retry. See retrying safely.
Rate limit Requests per minute per workspace, set by your plan. Over it, you get 429 with a Retry-After header. See limits.

AI agents

AI agents use the same operations through the MCP server at /mcp. An agent signs in with your Code Artworks account and needs no API key. See Quickstart: AI Agent and MCP for agents.

API keys

Layers

Feedback

Fonts

Problem reports

Projects

Renders

Uploads

Workspace

Webhooks

Models

Models lists every object the requests send and the responses return, field by field.