Render
renderQueue a render of the head of a project's variation (projectId, with variation or main) or of one version (versionId) as mp4, hls or frames; give exactly one of projectId and versionId. The answer's sourceVersionId is the version it pinned and versionId the version rendered. replacements change text, fonts, images or video by layer for this video only, leaving the project as it is: they are checked when queued, and versionId stays null until the render's own version is made from them (seconds); render that versionId again to reproduce the video. warnings are versionId's: what renders differently, such as text cut off at the frame's edge. This answer and get_render show the replacements as sent; lists, statuses, cancels, batches and webhooks leave them out. A version longer or larger than the plan allows is refused with plan_limit, a codec, encoding setting or 3D model the plan does not include with plan_feature, and a render that does not fit in the workspace's storage with storage_limit. Render seconds are charged when queued and refunded if it fails, unless the balance has been reset since, it is an hls render that had started streaming, or it ended render_time_limit (its frames took longer than the render seconds it costs); a render Blitframe stopped is always refunded. A request over 1 MB must arrive within two minutes (too_slow), and a workspace sends one at a time: two more wait their turn, and another is refused with large_body_busy; send it again after the seconds its message gives. Then call get_render with waitSeconds until its status is succeeded, failed or cancelled.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Download file name for the MP4. Defaults to the project and version names. | |
| size | No | The size of the video or frames, if not the composition's: the composition is drawn at its own size and scaled to fit, with black bars when the shape differs. Even for mp4 and hls. Every plan, within its size limit (plan_limit otherwise). | |
| audio | No | Audio for this render only; overrides the version's soundtrack. | |
| codec | No | Video codec for mp4 and hls: hevc (H.265) and av1 are smaller at the same quality but play on fewer devices, need a plan with advanced encoding (plan_feature otherwise), and HTML ads need h264. Not with frames. | h264 |
| format | No | Output format; frames needs frames. | mp4 |
| frames | No | The frames to render, required for format frames: a range (start, end) or a list (at), at most 1,000 frames. | |
| quality | No | Bitrate for the video's size and frame rate: high follows YouTube's recommended upload bitrates up to 8K (Blitframe's own figure above), low is half, medium three quarters, extraHigh one and a half. Ignored for frames and when encoding.rateControl is vbr, cbr or cqp, and the render then reports quality null. | high |
| encoding | No | Encoder settings for mp4 and hls, passed to the engine as given, on a plan with advanced encoding (plan_feature otherwise); without them the quality level sets the bitrate. Not with frames. | |
| projectId | No | Render this project's head version, from list_projects. An empty project cannot render (version_not_renderable). | |
| variation | No | With projectId: the variation whose head to render, from list_variations; default main. Not with versionId. | |
| versionId | No | Render this version, from list_versions or a headVersionId. | |
| posterFrame | No | mp4 and hls: the frame the poster shows, from 0; default the middle frame. Not with frames. | |
| replacements | No | Change layers for this render only, by layer id: text and font keep the text's style; an image is fitted into the size its asset declares, and a video is stretched to that size. No files, data.json or soundtrack changes; audio.path must be in the version. | |
| idempotencyKey | No | Makes a retry safe: for 24 hours the same request with the same key returns the same render without a second charge, even if the head has moved since. No '/', not starting with 'render-link:'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| size | No | ||
| audio | Yes | ||
| codec | No | ||
| error | Yes | ||
| format | Yes | ||
| frames | Yes | ||
| output | Yes | ||
| status | Yes | ||
| quality | Yes | ||
| encoding | No | ||
| playback | No | ||
| warnings | Yes | ||
| createdAt | Yes | ||
| projectId | Yes | ||
| startedAt | Yes | ||
| variation | No | ||
| versionId | Yes | ||
| finishedAt | Yes | ||
| posterFrame | No | ||
| replacements | No | ||
| chargedSeconds | Yes | ||
| cancelRequested | Yes | ||
| refundedSeconds | Yes | ||
| sourceVersionId | Yes |