Skip to main content
Each example is a complete POST /v1/renders body with a video background and a text overlay. Only fields that differ from their defaults are shown (font_family: "Inter", text_color: "#ffffff", text_align: "center" are all defaults). See the element field reference for every default.
duration is required on text elements. Omitting it produces a zero-length window — the text will not appear in the render. The API returns 422 if duration is missing.
Every text overlay sets three groups of fields: x and y refer to the center anchor of the text box.

Minimal text

The required fields on a text element are text and duration. Centered on frame; visible from 1 s to 5 s.

Stroke (outline only, no fill)

Glyph outline with no fill — set stroke: true together with stroke_color and stroke_width. Top-center; visible from 0.5 s to 4.5 s.

Fill + stroke

White text with a colored stroke and fill — set stroke_color and stroke_width without stroke: true. Lower-third; visible from 2 s to 7 s.

Background

Solid color box behind the full text block. Bottom-center; visible from 1 s to 5 s.

Drop shadow

Text with a built-in drop shadow. Upper-center; visible from 0.5 s to 5.5 s.

Font controls

Bold italic with custom letter spacing and line height. Left-aligned block on the left edge; visible from 2 s to 8 s.

Stroke

Custom outline around each glyph. Both stroke_color and stroke_width must be set. Slightly below center; visible from 1 s to 4 s.

Rotation

Tilted text using z_rotation. Offset to the lower-left; visible from 3 s to 8 s.

Shorthand animation preset

Use the animation_preset string for renderer animation presets like typewriter. Bottom-center caption bar; visible from 0 s to 6 s.