Highlight reel from raw footage
Upload a folder of raw clips and let Tellers pick the best moments and assemble them into a polished highlight reel — no manual editing required.
With the CLI
The fastest path: two commands.
# 1. Upload your raw footage folder
tellers upload ./raw-footage --in-app-path interviews
# 2. Ask Tellers to compile the best moments
tellers "From the footage in interviews/, create a 90-second highlight reel. \
Pick the most energetic and visually interesting moments. \
Generate a music track and sync the cuts to the beats."With the API
For programmatic pipelines — upload all clips, collect the asset IDs, then send a single generation prompt referencing them.
import os, time, uuid
import requests # pip install requests
API_KEY = os.environ["TELLERS_API_KEY"]
BASE = "https://api.tellers.ai"
HEADERS = {"x-api-key": API_KEY}
def upload_file(path: str, folder: str = "uploads", file_type: str = "video") -> str:
"""Upload a local file to your Tellers library and return its asset ID."""
resp = requests.post(f"{BASE}/users/assets/uploads", headers=HEADERS, json=[{
"upload_id": str(uuid.uuid4()),
"content_length": os.path.getsize(path),
"file_type": file_type, # "video", "audio", "image", ...
"multipart": False, # one presigned URL for the whole file
"source_file": {
"sourceName": "local",
"sourceUrl": None,
"sourceIconUrl": None,
"authors": [],
"creationDatetime": None,
"additionDatetime": int(time.time()),
"inAppPath": [folder],
"title": os.path.basename(path),
"description": None,
"keywords": [],
},
}])
resp.raise_for_status()
upload = resp.json()[0]
# PUT the bytes straight to storage. The presigned URL carries its own auth.
with open(path, "rb") as f:
requests.put(upload["presigned_put_url"], data=f).raise_for_status()
return upload["asset_id"]
def run_agent(message: str) -> dict:
"""Send a prompt to the Tellers agent and wait until its turn ends."""
resp = requests.post(f"{BASE}/agent/messages", headers=HEADERS, json={
"message": message,
"no_interaction": True, # run to the end without asking follow-up questions
# "llm_model": "gpt-6.1-terra", # optional, see "Available models"
})
resp.raise_for_status()
chat_id = resp.json()["chat_id"]
# Check every 10 seconds until the agent is done.
while True:
resp = requests.get(f"{BASE}/agent/chat/{chat_id}/result", headers=HEADERS)
resp.raise_for_status()
result = resp.json()
if result["status"] != "progressing":
return result # status is "done" or "error"
time.sleep(10)
# 1. Upload each clip
clips_dir = "./raw-footage"
asset_ids = []
for filename in sorted(os.listdir(clips_dir)):
if filename.lower().endswith((".mp4", ".mov")):
asset_id = upload_file(os.path.join(clips_dir, filename), folder="raw-footage")
asset_ids.append(asset_id)
print(f"Uploaded {filename} → {asset_id}")
# 2. Generate the highlight reel
result = run_agent(
f"Using asset IDs [{', '.join(asset_ids)}]: create a 90-second highlight reel. "
"Pick the most energetic and visually interesting moments. "
"Generate a music track and sync the cuts to the beats."
)
if result["status"] == "error":
raise RuntimeError(result["message"])
print(result["message"]) # the agent's summary
print("Projects:", result["projects"]) # project IDs it created or edited
for asset in result["assets"]: # assets it generated or used
print(asset["type"], asset["id"])Install dependencies: pip install requests, and set TELLERS_API_KEY to your API key. See Upload a file for more detail on the upload step.