Render links
View as MarkdownA render link is a web page that plays a project's video. You share its address, and anyone who has it can watch, with no account. This page explains how to create and manage one.
Use a render link when the video may change, or may not be watched:
- It stays up to date. A link follows its project: after you edit the project, the same link plays the new version. You don't send a new link.
- It renders only when watched. A version that has no video yet is rendered when someone first presses Play, so a video nobody watches costs nothing. See What the page plays.
Render links need a plan that includes them (pricing). The free trial does not. On a plan without them, creating a link returns 403 plan_feature and existing links stop playing.
Create a link
A render link belongs to one project.
The example needs your API key and a project. See Get an API key and Create a project. Replace the project id at the top of the example with your project's id.
This request creates a link with the default settings. An AI agent can create one too:
PROJECT_ID="3f1c9a52-7d4e-4b8a-9c61-2e5f0a7b8d13"
curl -s -X POST $BLITFRAME/projects/$PROJECT_ID/render-links \
-H "Authorization: Bearer $BLITFRAME_API_KEY" -H "Content-Type: application/json" -d '{}' | jq -r .url
import os, requests
project_id = "3f1c9a52-7d4e-4b8a-9c61-2e5f0a7b8d13"
response = requests.post(
f"{os.environ['BLITFRAME']}/projects/{project_id}/render-links",
headers={"Authorization": f"Bearer {os.environ['BLITFRAME_API_KEY']}"},
json={},
)
link = response.json()
print(link["url"])
const projectId = "3f1c9a52-7d4e-4b8a-9c61-2e5f0a7b8d13";
const response = await fetch(`${process.env.BLITFRAME}/projects/${projectId}/render-links`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.BLITFRAME_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({}),
});
const link = await response.json();
console.log(link.url);
const projectId = "3f1c9a52-7d4e-4b8a-9c61-2e5f0a7b8d13";
const response = await fetch(`${process.env.BLITFRAME}/projects/${projectId}/render-links`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.BLITFRAME_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({}),
});
const link = await response.json();
console.log(link.url);
<?php
$projectId = "3f1c9a52-7d4e-4b8a-9c61-2e5f0a7b8d13";
$ch = curl_init(getenv("BLITFRAME") . "/projects/$projectId/render-links");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("BLITFRAME_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => "{}",
]);
$response = curl_exec($ch);
$link = json_decode($response, true);
echo $link["url"], "\n";
require "net/http"
require "json"
project_id = "3f1c9a52-7d4e-4b8a-9c61-2e5f0a7b8d13"
uri = URI("#{ENV["BLITFRAME"]}/projects/#{project_id}/render-links")
headers = { "Authorization" => "Bearer #{ENV["BLITFRAME_API_KEY"]}", "Content-Type" => "application/json" }
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
http.post(uri.request_uri, "{}", headers)
end
link = JSON.parse(response.body)
puts link["url"]
package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
"strings"
)
func main() {
projectID := "3f1c9a52-7d4e-4b8a-9c61-2e5f0a7b8d13"
url := os.Getenv("BLITFRAME") + "/projects/" + projectID + "/render-links"
request, err := http.NewRequest("POST", url, strings.NewReader("{}"))
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer "+os.Getenv("BLITFRAME_API_KEY"))
request.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
var link map[string]any
if err := json.NewDecoder(response.Body).Decode(&link); err != nil {
panic(err)
}
fmt.Println(link["url"])
}
using System.Net.Http.Json;
using System.Text.Json.Nodes;
var api = Environment.GetEnvironmentVariable("BLITFRAME");
var projectId = "3f1c9a52-7d4e-4b8a-9c61-2e5f0a7b8d13";
var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new("Bearer", Environment.GetEnvironmentVariable("BLITFRAME_API_KEY"));
var response = await http.PostAsync($"{api}/projects/{projectId}/render-links", JsonContent.Create(new { }));
var link = await response.Content.ReadFromJsonAsync<JsonNode>();
Console.WriteLine((string?)link?["url"]);
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Example {
public static void main(String[] args) throws Exception {
String projectId = "3f1c9a52-7d4e-4b8a-9c61-2e5f0a7b8d13";
URI uri = URI.create(System.getenv("BLITFRAME") + "/projects/" + projectId + "/render-links");
HttpRequest request = HttpRequest.newBuilder(uri)
.header("Authorization", "Bearer " + System.getenv("BLITFRAME_API_KEY"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString("{}"))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
JsonNode link = new ObjectMapper().readTree(response.body());
System.out.println(link.get("url").asText());
}
}
A successful response (201 Created) means the link was created. It contains the page's address in url, which is what you share, and the link's id, which you need to revoke it:
{
"id": "q3Zb0yHn4t7mTq2cV9xL1w",
"projectId": "5405…",
"versionId": null,
"variation": "main",
"quality": "high",
"url": "https://app.codeartworks.com/blitframe/r/q3Zb0yHn4t7mTq2cV9xL1w",
"createdAt": "2026-11-05T10:00:00+00:00"
}
POST / takes these fields, all optional:
| Field | Values | Default |
|---|---|---|
quality |
low, medium, high or extraHigh, as for renders |
high |
versionId |
A version's id. The link then always plays that version |
null |
variation |
Without versionId: the variation whose head the link follows |
main |
- Without
versionId, the link follows the project's head, the version the project is at now. After an edit, the link plays the new version. - With
versionId, the link is pinned: it keeps playing that version. The version can be the one a render with replacements made. - A project can have up to 50 links. Creating one more returns
409 too_many_render_links.
What the page plays
The page has no video of its own. It plays a render from your workspace: the newest succeeded MP4 or HLS render of the link's version at the link's quality. Only a plain render counts, one created with:
- codec
h264and noencoding - no
audioand noname - your plan's current watermark setting
To share one video of a batch, leave name off that render. Then create a link with the render's versionId and quality.
If there is no such render yet, the page shows a Play button, and the video is rendered when a visitor asks for it:
- Opening the page renders nothing.
- The first visitor to press Play queues one HLS render. Your workspace is charged its render seconds. Later visitors wait for that same render instead of starting another.
After you edit a project that a link follows, the next press of Play renders the new version, and your workspace is charged for that render too. To avoid that, pin the link with versionId.
The page shows only the video and its poster. Search engines do not index it.
If the page says the video is not available, see When the video is not available.
List and revoke
| Method | Path | Does |
|---|---|---|
GET |
/ |
The workspace's links, newest first. Pass next as before for the next page, up to limit (default 50). |
GET |
/ |
The project's links, newest first |
DELETE |
/ |
Revoke a link, so that its page stops working. Returns 204. |
- On a plan without render links, you can still list and revoke them.
- A revoked link's page answers
404. The renders the link made stay in your workspace. - Deleting the project removes its links.
- Deleting a variation removes the links that follow its head. Links pinned to one of its versions keep playing.
Details
When the video is not available
If a render the page started fails or is cancelled, the next press of Play tries again. After two such renders of the same version and quality since the link was created, Play stops rendering and the page says the video is not available.
To fix it, do one of these:
- Render the version yourself at the link's quality, as a plain render (What the page plays). The page picks that render up.
- Edit the project, if the link follows its head. The link then plays the new version.
- Create a new link.
The page also says the video is not available when:
- the project has no version yet,
- the version cannot be rendered, or is over your plan limits,
- your workspace cannot render, such as when it is out of render seconds.
Refused requests
| When | Answer |
|---|---|
variation with versionId, or an unknown quality |
400 invalid_request |
A versionId that is not a version of this project |
404 not_found |
A variation the project doesn't have |
404 not_found |