chat_validate
Validate a txtreel conversation
Checks a txtreel conversation (script or messages) without rendering anything. It is fast and free.
On success returns { ok: true, durationSeconds, messageCount, conversation } where "conversation" is the fully-resolved object (all defaults applied).
On failure returns { ok: false, errors: string[] } — one message per problem; when the input was a script, errors are prefixed with the offending line number. Videos longer than the server limit are rejected here too.
Conversation script format (one event per line):
them: hey, you up?
me: yeah why
[pause 1.5] wait 1.5 s
--- Today 9:41 PM date/time separator
me: [photo URL] caption a photo (URL, local file path, or an uploaded photo's number)
[them reacts ❤️] reaction on my last message
[read] they read my messages
=== everything above is already on screen at the start
=== scroll 3 same, but open on the oldest message and skim down in 3 s
# comment
"Name: text" also means "them" when Name matches contact.name (e.g. contact.name "Sam" lets you write "Sam: omg" instead of "them: omg"). A literal "\n" inside a message becomes a line break. Lines starting with # are comments.
Photos: "me: [photo https://example.com/image.jpg] optional caption" (https URLs only; local file paths are not available). "=== scroll 3" opens on the oldest message of a longer history and skims down to the live part in 3 s. With keyboard true (the default), the newest messages stay above the area where the Reels caption sits.
ParametersspeedthemescriptsoundscontactendHoldautoReadkeyboardmessagesplatformstartTimestatusBar+1 more
chat_render_video
Render a txtreel video
Render a txtreel conversation (script or messages) to an MP4 and wait for it to finish. This queues a render, waits for it, and returns once it is done (or after failing/timing out). A short render (a handful of messages) typically takes 20-60 seconds.
Returns a public link to the MP4; the file is deleted after 24 hours. If txtreel is busy or you hit the rate limit, the result is an error with the message.
Conversation script format (one event per line):
them: hey, you up?
me: yeah why
[pause 1.5] wait 1.5 s
--- Today 9:41 PM date/time separator
me: [photo URL] caption a photo (URL, local file path, or an uploaded photo's number)
[them reacts ❤️] reaction on my last message
[read] they read my messages
=== everything above is already on screen at the start
=== scroll 3 same, but open on the oldest message and skim down in 3 s
# comment
"Name: text" also means "them" when Name matches contact.name (e.g. contact.name "Sam" lets you write "Sam: omg" instead of "them: omg"). A literal "\n" inside a message becomes a line break. Lines starting with # are comments.
Photos: "me: [photo https://example.com/image.jpg] optional caption" (https URLs only; local file paths are not available). "=== scroll 3" opens on the oldest message of a longer history and skims down to the live part in 3 s. With keyboard true (the default), the newest messages stay above the area where the Reels caption sits.
ParametersspeedthemescriptsoundscontactendHoldautoReadkeyboardmessagesplatformstartTimestatusBar+1 more
chat_screenshot
Screenshot a txtreel conversation
Render a single frame of a txtreel conversation (script or messages) to a PNG and return it as an image. Defaults to the last frame — pass "frame" to capture an earlier moment (30 fps).
Returns the PNG as image content, plus a text line with the PNG's URL (expires after 24 hours).
Conversation script format (one event per line):
them: hey, you up?
me: yeah why
[pause 1.5] wait 1.5 s
--- Today 9:41 PM date/time separator
me: [photo URL] caption a photo (URL, local file path, or an uploaded photo's number)
[them reacts ❤️] reaction on my last message
[read] they read my messages
=== everything above is already on screen at the start
=== scroll 3 same, but open on the oldest message and skim down in 3 s
# comment
"Name: text" also means "them" when Name matches contact.name (e.g. contact.name "Sam" lets you write "Sam: omg" instead of "them: omg"). A literal "\n" inside a message becomes a line break. Lines starting with # are comments.
Photos: "me: [photo https://example.com/image.jpg] optional caption" (https URLs only; local file paths are not available). "=== scroll 3" opens on the oldest message of a longer history and skims down to the live part in 3 s. With keyboard true (the default), the newest messages stay above the area where the Reels caption sits.
ParametersframespeedthemescriptsoundscontactendHoldautoReadkeyboardmessagesplatformstartTime+2 more
reddit_render_video
Render a Reddit thread video
Render a Reddit thread (script, or post+comments) to an MP4 and wait for it to finish. This queues a render, waits for it, and returns once it is done (or after failing/timing out). A short render typically takes 20-60 seconds.
Returns a public link to the MP4; the file is deleted after 24 hours. If txtreel is busy or you hit the rate limit, the result is an error with the message.
If the thread is invalid, this returns an error result with the validation messages (script errors are prefixed with the offending line number) instead of rendering.
Reddit thread script format (post + nested comments):
title: AITA for not going to my sister's wedding?
body: First paragraph of the post (optional, one line per paragraph)
body: Second paragraph
[photo URL] a photo in the post (URL, file path or uploaded photo's number)
sleepy_joe: A top-level comment
> OP: A reply by the post's author (blue OP label)
>> sleepy_joe [2.1K 3h]: A reply to that reply, with its votes and age
[91 more replies] collapsed replies under the comment above
[pause 2] wait 2 s
# comment
The video is a screen recording of a thread on mobile reddit.com in iOS Safari: the page is laid out once and the view scrolls from block to block, holding each one long enough to read. The title is on screen from frame 0. Scores and ages left out of the script are generated (decreasing down the thread, never older than the post).
ParameterspostspeedthemescriptendHoldcommentsstatusBarsubreddit
reddit_screenshot
Screenshot a Reddit thread
Render a single frame of a Reddit thread (script, or post+comments) to a PNG and return it as an image. Defaults to the last frame — pass "frame" to capture an earlier moment (30 fps).
Returns the PNG as image content, plus a text line with the PNG's URL (expires after 24 hours).
If the thread is invalid, this returns an error result with the validation messages instead of an image.
Reddit thread script format (post + nested comments):
title: AITA for not going to my sister's wedding?
body: First paragraph of the post (optional, one line per paragraph)
body: Second paragraph
[photo URL] a photo in the post (URL, file path or uploaded photo's number)
sleepy_joe: A top-level comment
> OP: A reply by the post's author (blue OP label)
>> sleepy_joe [2.1K 3h]: A reply to that reply, with its votes and age
[91 more replies] collapsed replies under the comment above
[pause 2] wait 2 s
# comment
The video is a screen recording of a thread on mobile reddit.com in iOS Safari: the page is laid out once and the view scrolls from block to block, holding each one long enough to read. The title is on screen from frame 0. Scores and ages left out of the script are generated (decreasing down the thread, never older than the post).
ParameterspostframespeedthemescriptendHoldcommentsstatusBarsubreddit
lockscreen_render_video
Render a lock screen notification video
Render an iOS lock screen with notifications to an MP4 and wait for it to finish: a wallpaper, the big clock, and cards from imessage, whatsapp, instagram, chatgpt, claude, reddit, mail, phone, facetime, notes, reminders that land one by one at the seconds you set. This queues a render, waits for it, and returns once it is done (or after failing/timing out). A short render (3-5 notifications) typically takes 20-60 seconds.
Returns a public link to the MP4; the file is deleted after 24 hours. If txtreel is busy or you hit the rate limit, the result is an error with the message.
If the input is invalid, this returns an error result with the validation messages instead of rendering.
Lock screen format (an iOS 26 lock screen with notifications):
The video starts on a lock screen (wallpaper, big clock, date, padlock). Like the chat videos, the 9:16 video is the iPhone screen cut below the status bar and above the flashlight and camera buttons. Each notification is a Liquid Glass card from one app (imessage, whatsapp, instagram, chatgpt, claude, reddit, mail, phone, facetime, notes, reminders) with a bold title (usually the sender), a body of up to 4 lines, and a see-through time such as "now" or "2m ago". A card lands at its "at" second (seconds from the start of the video), growing out of the bottom of the screen (or out of the card already there) as on iOS 26; at 0 it is already there. While cards are on screen the lower half of the wallpaper darkens, as on the phone. At least one notification is required. The video ends "endHold" seconds (default 2) after the last card has settled.
Wallpaper and avatars are https image URLs or data: URIs (local file paths are not available). "wallpaper" also takes one of Apple's iOS 26 wallpapers by name ("sky", "shadow", "halo", "dusk", "yellow", "pink", "azure", "purple"); without one, "sky" (the iOS 26 default) is drawn, in its light or dark version with "theme". "avatar" on a notification shows the contact's photo with the ap
ParametersdimdatetimethemecamerasoundscarrierdisplayendHoldpadlockclockSizestatusBar+10 more
lockscreen_screenshot
Screenshot a lock screen with notifications
Render a single frame of an iOS lock screen with notifications to a PNG and return it as an image. Defaults to the last frame — pass "frame" to capture an earlier moment (30 fps).
Returns the PNG as image content, plus a text line with the PNG's URL (expires after 24 hours).
If the input is invalid, this returns an error result with the validation messages instead of an image.
Lock screen format (an iOS 26 lock screen with notifications):
The video starts on a lock screen (wallpaper, big clock, date, padlock). Like the chat videos, the 9:16 video is the iPhone screen cut below the status bar and above the flashlight and camera buttons. Each notification is a Liquid Glass card from one app (imessage, whatsapp, instagram, chatgpt, claude, reddit, mail, phone, facetime, notes, reminders) with a bold title (usually the sender), a body of up to 4 lines, and a see-through time such as "now" or "2m ago". A card lands at its "at" second (seconds from the start of the video), growing out of the bottom of the screen (or out of the card already there) as on iOS 26; at 0 it is already there. While cards are on screen the lower half of the wallpaper darkens, as on the phone. At least one notification is required. The video ends "endHold" seconds (default 2) after the last card has settled.
Wallpaper and avatars are https image URLs or data: URIs (local file paths are not available). "wallpaper" also takes one of Apple's iOS 26 wallpapers by name ("sky", "shadow", "halo", "dusk", "yellow", "pink", "azure", "purple"); without one, "sky" (the iOS 26 default) is drawn, in its light or dark version with "theme". "avatar" on a notification shows the contact's photo with the app icon as a small badge. "display": "stack" folds the cards like iOS 26 does (the newest card, the next one or two as one-line rows under it, the rest counted as "+3 from WhatsApp and Messages"); "list" shows every card.
ParametersdimdatetimeframethemecamerasoundscarrierdisplayendHoldpadlockclockSize+11 more