{
  "components": {
    "schemas": {
      "AIVideoPayload": {
        "description": "The body of POST /ai-video/generate, stored in jobs.payload of AI video jobs.",
        "properties": {
          "aspect": {
            "type": "string"
          },
          "duration": {
            "type": "integer"
          },
          "model": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "src_url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AssetsCacheRequest": {
        "description": "Re-hosts a remote file that may expire (e.g. an image from Replicate or a WhatsApp media link).",
        "properties": {
          "ttl_hours": {
            "description": "hours to keep the copy (number or numeric string): default 6, max 48",
            "type": "integer"
          },
          "url": {
            "description": "http(s) URL of the file to copy",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "AudioConfig": {
        "description": "Mixes voiceovers over music (music is ducked and normalized).",
        "properties": {
          "finish_delay": {
            "description": "seconds of music after the last voiceover with durationMode \"match_voiceover\" (default 3)",
            "type": "number"
          },
          "loudness": {
            "$ref": "#/components/schemas/Loudness",
            "description": "normalize the final mix to this loudness (measured over the whole video, set in one straight gain)"
          },
          "music": {
            "description": "one track or an array of tracks",
            "oneOf": [
              {
                "$ref": "#/components/schemas/AudioTrack"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/AudioTrack"
                },
                "type": "array"
              }
            ]
          },
          "voiceTempo": {
            "description": "speed of the voiceovers, 0.5-2 (default 1), pitch kept; the silences set by start stay as they are",
            "type": "number"
          },
          "voiceover": {
            "$ref": "#/components/schemas/AudioTrack",
            "description": "one narration track"
          },
          "voiceovers": {
            "description": "several narration tracks, played in sequence",
            "items": {
              "$ref": "#/components/schemas/AudioTrack"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "AudioExtractRequest": {
        "description": "Extracts the audio track of a video.",
        "properties": {
          "format": {
            "description": "\"mp3\" (default) | \"aac\" (alias \"m4a\") | \"wav\"",
            "type": "string"
          },
          "url": {
            "description": "http(s) URL of the video",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "AudioTrack": {
        "description": "One music or voiceover file.",
        "properties": {
          "crossfade": {
            "description": "alias for transition",
            "type": "number"
          },
          "duck": {
            "description": "music: turned down while the voiceover speaks",
            "type": "boolean"
          },
          "gain": {
            "description": "volume multiplier (default 1.0)",
            "type": "number"
          },
          "loop": {
            "description": "loop until the video ends",
            "type": "boolean"
          },
          "repeats": {
            "description": "play N times (with durationMode \"match_music\" this sets the length)",
            "type": "integer"
          },
          "src": {
            "description": "URL of the audio file (mp3, wav, m4a...)",
            "type": "string"
          },
          "start": {
            "description": "seconds of silence before this track starts",
            "type": "number"
          },
          "transition": {
            "description": "crossfade seconds between repeats",
            "type": "number"
          },
          "trimStart": {
            "description": "seconds into the file where the track starts playing (start is when it begins on the timeline)",
            "type": "number"
          },
          "volume": {
            "description": "alias for gain",
            "type": "number"
          }
        },
        "required": [
          "src"
        ],
        "type": "object"
      },
      "BackgroundSource": {
        "description": "One of: a single image/video/color (src or color), a list of images spread over the duration (slidesImages), or explicit slides.",
        "properties": {
          "audioGain": {
            "description": "volume of that audio on top of the normalized level (default 1.0)",
            "type": "number"
          },
          "color": {
            "description": "solid color, e.g. \"#101010\"",
            "type": "string"
          },
          "fit": {
            "description": "\"cover\" (crop to fill) | \"contain\" (fit inside)",
            "type": "string"
          },
          "flip": {
            "description": "legacy alias for hflip",
            "type": "boolean"
          },
          "hflip": {
            "description": "mirror horizontally",
            "type": "boolean"
          },
          "keepAudio": {
            "description": "mix the background video's own audio into the render",
            "type": "boolean"
          },
          "playbackRate": {
            "description": "video speed multiplier, e.g. 2.0 = double speed",
            "type": "number"
          },
          "slideFadeSeconds": {
            "description": "legacy: fade of this many seconds between slides",
            "type": "number"
          },
          "slideTransition": {
            "$ref": "#/components/schemas/SlideTransition",
            "description": "transition between slides"
          },
          "slides": {
            "description": "explicit slides, played in order",
            "items": {
              "$ref": "#/components/schemas/SlideConfig"
            },
            "type": "array"
          },
          "slidesAutoFromCaptions": {
            "description": "with slidesImages: switch image at every caption item instead",
            "type": "boolean"
          },
          "slidesImages": {
            "description": "images spread evenly over the video duration",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "slidesLoop": {
            "description": "repeat the slides until the video duration is filled",
            "type": "boolean"
          },
          "src": {
            "description": "URL of the image or video",
            "type": "string"
          },
          "trimStart": {
            "description": "video only: start the file at this second (it plays to the end, then loops from its start)",
            "type": "number"
          },
          "type": {
            "description": "\"image\" | \"video\" | \"color\"; empty = image, or color when only color is set",
            "type": "string"
          },
          "vflip": {
            "description": "mirror vertically",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "CaptionItem": {
        "properties": {
          "length": {
            "type": "number"
          },
          "start": {
            "type": "number"
          },
          "text": {
            "type": "string"
          },
          "words": {
            "description": "Words are the item's word timings (seconds from the item's start), for a preset that lights words as they are spoken; without them the words are spread evenly over the item.",
            "items": {
              "$ref": "#/components/schemas/CaptionWord"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "CaptionLine": {
        "description": "One line of edited captions.",
        "properties": {
          "end": {
            "type": "number"
          },
          "start": {
            "description": "source seconds",
            "type": "number"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "start",
          "end",
          "text"
        ],
        "type": "object"
      },
      "CaptionStyle": {
        "properties": {
          "align": {
            "description": "\"top\" | \"center\" | \"bottom\"",
            "type": "string"
          },
          "color": {
            "description": "#RRGGBB, default #FFFFFF",
            "type": "string"
          },
          "fontFamily": {
            "type": "string"
          },
          "fontSize": {
            "description": "pixels",
            "type": "integer"
          },
          "marginV": {
            "description": "vertical margin in pixels",
            "type": "integer"
          },
          "maxCharsPerLine": {
            "type": "integer"
          },
          "maxLines": {
            "type": "integer"
          },
          "outline": {
            "description": "border width, default 2",
            "type": "integer"
          },
          "preset": {
            "description": "animated look: karaoke | highlight | single | boxed | clean | neon",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CaptionWord": {
        "description": "One word of a caption and when it is said, from the item's start.",
        "properties": {
          "e": {
            "type": "number"
          },
          "s": {
            "type": "number"
          },
          "w": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CaptionsConfig": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CaptionItem"
            },
            "type": "array"
          },
          "style": {
            "$ref": "#/components/schemas/CaptionStyle"
          }
        },
        "type": "object"
      },
      "Chapter": {
        "properties": {
          "start": {
            "type": "number"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ChromaKey": {
        "description": "Turns the pixels close to a color transparent (a green screen): ffmpeg colorkey, an RGB distance (see buildChromaKeyFilter in the renderer).",
        "properties": {
          "blend": {
            "description": "default 0.10",
            "type": "number"
          },
          "color": {
            "description": "the color to remove, e.g. \"#00FF00\"",
            "type": "string"
          },
          "similarity": {
            "description": "default 0.25",
            "type": "number"
          }
        },
        "type": "object"
      },
      "Clip": {
        "properties": {
          "aspect": {
            "type": "string"
          },
          "center_x": {
            "description": "CenterX is the horizontal position of the vertical crop (0..1), so an edit keeps the framing.",
            "type": "number"
          },
          "description": {
            "type": "string"
          },
          "duration": {
            "type": "number"
          },
          "end": {
            "type": "number"
          },
          "feedback": {
            "description": "Feedback is the owner's rating from POST /media/{id}/clips/{index}/feedback: 1 good, -1 bad, 0 or absent unrated.",
            "type": "integer"
          },
          "hashtags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "hook": {
            "type": "string"
          },
          "hook_end": {
            "type": "number"
          },
          "hook_start": {
            "description": "HookStart and HookEnd are the source seconds of the opening line when the clip starts with a hook (options.hook_montage); Start and End are the rest of the clip, and Duration counts both.",
            "type": "number"
          },
          "index": {
            "type": "integer"
          },
          "kept": {
            "description": "Kept lists the source seconds the clip plays when its pauses were removed (options.remove_silences); absent = Start to End in one piece.",
            "items": {
              "items": {
                "type": "number"
              },
              "type": "array"
            },
            "type": "array"
          },
          "key": {
            "type": "string"
          },
          "layout": {
            "description": "Layout is the split layout the clip was rendered with (\"gaming\" or \"two_speakers\"); empty for the single crop, also when options.layout asked for one and this clip fell back.",
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "replay_score": {
            "type": "number"
          },
          "score": {
            "type": "number"
          },
          "scores": {
            "$ref": "#/components/schemas/ClipScores",
            "description": "Scores breaks the AI part of the score down (speech-driven clips only)."
          },
          "size": {
            "type": "integer"
          },
          "split": {
            "description": "Split is the panel geometry of a split clip (media.SplitLayout), so an edit renders the same panels without asking the vision model again.",
            "type": "object"
          },
          "start": {
            "type": "number"
          },
          "thumbnail": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "transcript": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "visual_reason": {
            "type": "string"
          },
          "visual_score": {
            "description": "Set only when visual options are on.",
            "type": "number"
          }
        },
        "type": "object"
      },
      "ClipEditRequest": {
        "description": "Re-renders one clip of a finished clips job with changes. Fields left out keep the clip as it was.",
        "properties": {
          "caption_style": {
            "description": "a style from GET /media/caption-styles, or \"none\" for no captions",
            "type": "string"
          },
          "center_x": {
            "description": "horizontal position of the vertical crop, 0 (left) to 1 (right)",
            "type": "number"
          },
          "end": {
            "description": "source seconds; up to 30 s after the clip's end (3 to 180 s long)",
            "type": "number"
          },
          "hook_title": {
            "description": "show the title in a box for the first seconds",
            "type": "boolean"
          },
          "lines": {
            "description": "caption text by line, replacing what was said (each line keeps its time)",
            "items": {
              "$ref": "#/components/schemas/CaptionLine"
            },
            "type": "array"
          },
          "remove_silences": {
            "description": "cut the pauses and the \"um\"s out",
            "type": "boolean"
          },
          "start": {
            "description": "source seconds; up to 30 s before the clip's start",
            "type": "number"
          },
          "title": {
            "description": "the clip title (and the title box, with hook_title)",
            "type": "string"
          },
          "webhook_url": {
            "description": "POSTed {id, status, output_url, result} (or error) when it finishes",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ClipFeedbackRequest": {
        "description": "Rates one clip of a finished clips job.",
        "properties": {
          "rating": {
            "description": "1 = good clip, -1 = bad clip, 0 = clear the rating",
            "type": "integer"
          }
        },
        "required": [
          "rating"
        ],
        "type": "object"
      },
      "ClipScores": {
        "description": "Rates a clip 0-100 on what makes a short work: a strong first seconds (hook), a complete idea (flow), something worth watching (value) and fit with what is performing now (trend).",
        "properties": {
          "flow": {
            "type": "integer"
          },
          "hook": {
            "type": "integer"
          },
          "trend": {
            "type": "integer"
          },
          "value": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ClipSegment": {
        "description": "A caller-chosen clip range in seconds.",
        "properties": {
          "end": {
            "type": "number"
          },
          "start": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "CropRect": {
        "description": "A rectangle in the pixels of a file: x, y its top-left corner.",
        "properties": {
          "h": {
            "type": "integer"
          },
          "w": {
            "type": "integer"
          },
          "x": {
            "type": "integer"
          },
          "y": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DubbedVideo": {
        "description": "The result of dub.",
        "properties": {
          "duration": {
            "type": "number"
          },
          "from": {
            "type": "string"
          },
          "height": {
            "type": "integer"
          },
          "key": {
            "type": "string"
          },
          "language": {
            "description": "ISO 639-1 of the new speech",
            "type": "string"
          },
          "lines": {
            "description": "passages voiced",
            "type": "integer"
          },
          "size": {
            "type": "integer"
          },
          "subtitles_url": {
            "description": "SubtitlesURL is an .srt of the new speech, timed to the dubbed video.",
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "voice": {
            "type": "string"
          },
          "width": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "EditStyleParams": {
        "description": "Are the knobs of an edit style (a preset, or one learned from reference videos).",
        "properties": {
          "broll_every": {
            "description": "seconds between cutaways (0: 25)",
            "type": "number"
          },
          "callouts": {
            "description": "keywords, numbers and names popping up big as they are said",
            "type": "boolean"
          },
          "captions": {
            "description": "a caption style; \"\" = the best for the format",
            "type": "string"
          },
          "cards": {
            "description": "Cards is the share of the edited video on black cards with the sentence said written on them (0 to 0.5).",
            "type": "number"
          },
          "change_every": {
            "description": "seconds of one framing before the next sentence gets a new one (3 to 20)",
            "type": "number"
          },
          "coverage": {
            "description": "Coverage is the share of the edited video under cutaways (0 to 0.9): one every 2 to 3 seconds instead of one every BRollEvery.",
            "type": "number"
          },
          "director": {
            "description": "Director is the look the editing director is briefed on (\"hardcopy\").",
            "type": "string"
          },
          "emojis": {
            "description": "a 3D emoji pops above the caption now and then",
            "type": "boolean"
          },
          "fade_in": {
            "description": "FadeIn: a new part, and the picture after a card, fade up from black.",
            "type": "boolean"
          },
          "flashes": {
            "description": "white flash between parts",
            "type": "boolean"
          },
          "grade": {
            "description": "Grade is the colour of every shot: \"\" (as filmed) or \"noir\" (crushed blacks, contrast, vignette, grain, the reds kept).",
            "type": "string"
          },
          "motion_mix": {
            "description": "MotionMix is the share of a covered style's cutaways that are animations when the job asks for motion_broll (0 to 0.8; the rest stock footage). 0: with motion_broll every cutaway is an animation.",
            "type": "number"
          },
          "music": {
            "description": "Music is the mood of the music library the style plays when the job asks for no music (\"\": none).",
            "type": "string"
          },
          "music_duck": {
            "type": "string"
          },
          "music_gain": {
            "description": "MusicGain is the music under the voice, linear (0: 0.12); MusicDuck \"light\" lowers it only a little while someone speaks (\"\": a lot).",
            "type": "number"
          },
          "punch_in": {
            "description": "zoom of the second framing on cuts (1 = none, up to 1.3)",
            "type": "number"
          },
          "push_in": {
            "description": "slow zoom on the strongest lines",
            "type": "boolean"
          },
          "push_speed": {
            "description": "PushSpeed is a slow push in (or out, in turn) on every shot and cutaway, in zoom per second (0: none; 0.003 = 0.3% a second).",
            "type": "number"
          },
          "shake": {
            "description": "the frame shakes on impacts",
            "type": "boolean"
          },
          "sounds": {
            "description": "\"none\" | \"title\" | \"some\" | \"lots\"",
            "type": "string"
          },
          "whips": {
            "description": "a new part slides in with motion blur (instead of a flash)",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "EditedVideo": {
        "description": "The result of auto_edit.",
        "properties": {
          "animated_broll": {
            "description": "Animated is how many of the cutaways were animations made for the video (motion_broll).",
            "type": "integer"
          },
          "broll": {
            "description": "cutaways to the B-roll",
            "type": "integer"
          },
          "callouts": {
            "description": "keywords that popped up",
            "type": "integer"
          },
          "cards": {
            "description": "Cards is how many black cards with the sentence said the edit shows (the cinematic styles).",
            "type": "integer"
          },
          "cuts": {
            "type": "integer"
          },
          "denoised": {
            "description": "Denoised: the room's noise was reduced under the voice.",
            "type": "boolean"
          },
          "duration": {
            "type": "number"
          },
          "emojis": {
            "description": "Emojis, Whips and Shakes count those effects.",
            "type": "integer"
          },
          "facecam": {
            "type": "boolean"
          },
          "flashes": {
            "type": "integer"
          },
          "follows_face": {
            "description": "FollowsFace: the framing follows the speaker's face as it moves.",
            "type": "boolean"
          },
          "height": {
            "type": "integer"
          },
          "highlights": {
            "description": "Screen recordings: boxes with an arrow at what was talked about, and whether the speaker's camera (facecam_url) went in a corner.",
            "type": "integer"
          },
          "key": {
            "type": "string"
          },
          "light_url": {
            "description": "LightURL is a copy under 15 MB (720p) for messaging apps (WhatsApp takes videos up to 16 MB), when the video itself is bigger.",
            "type": "string"
          },
          "removed_seconds": {
            "description": "pauses and hesitations cut",
            "type": "number"
          },
          "retakes": {
            "description": "Retakes is how many abandoned lines were cut (the last take stays).",
            "type": "integer"
          },
          "shakes": {
            "type": "integer"
          },
          "size": {
            "type": "integer"
          },
          "sound_effects": {
            "type": "integer"
          },
          "source_seconds": {
            "description": "What the edit did, for the job page.",
            "type": "number"
          },
          "stock": {
            "description": "Stock credits the stock clips used (stock_broll): who made each one.",
            "items": {
              "$ref": "#/components/schemas/StockCredit"
            },
            "type": "array"
          },
          "style": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "whips": {
            "type": "integer"
          },
          "width": {
            "type": "integer"
          },
          "zooms": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "HeatmapPoint": {
        "description": "One bucket of YouTube's \"most replayed\" curve (0..1).",
        "properties": {
          "duration": {
            "type": "number"
          },
          "intensity": {
            "type": "number"
          },
          "start": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "ImageOverlay": {
        "description": "One image drawn over the base image.",
        "properties": {
          "opacity": {
            "description": "0-1, default overlay_opacity",
            "type": "number"
          },
          "url": {
            "description": "http(s) URL of the image",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "ImagesRenderRequest": {
        "description": "Composites a base image, optional overlay images or a color layer, and text into one image (thumbnails, covers, posts).",
        "properties": {
          "align": {
            "description": "\"left\" | \"center\" (default) | \"right\"",
            "type": "string"
          },
          "color": {
            "description": "color layer over the base, e.g. \"#000000\" (ignored when overlay images are sent)",
            "type": "string"
          },
          "fallback_url": {
            "description": "used when image_url fails to download",
            "type": "string"
          },
          "font_family": {
            "description": "font available on the server, e.g. \"Anton\" (default: system font)",
            "type": "string"
          },
          "fontsize": {
            "description": "pixels (default: 5% of the output height)",
            "type": "integer"
          },
          "format": {
            "description": "\"jpg\" (default) | \"png\"",
            "type": "string"
          },
          "height": {
            "description": "output height in pixels (default: base image height)",
            "type": "integer"
          },
          "image_url": {
            "description": "base image (http(s))",
            "type": "string"
          },
          "opacity": {
            "description": "opacity of the color layer, 0-1 (default 0.40)",
            "type": "number"
          },
          "overlay_image_url": {
            "description": "one image drawn over the base",
            "type": "string"
          },
          "overlay_images": {
            "description": "several images drawn over the base, in order (each scaled to cover the output)",
            "items": {
              "$ref": "#/components/schemas/ImageOverlay"
            },
            "type": "array"
          },
          "overlay_opacity": {
            "description": "default opacity of the overlay images, 0-1 (default 1)",
            "type": "number"
          },
          "quality": {
            "description": "jpg quality 1-100, default 85",
            "type": "integer"
          },
          "resize_mode": {
            "description": "\"cover\" crops to fill; anything else fits inside with white padding (default)",
            "type": "string"
          },
          "text": {
            "description": "text drawn over the image; \"\\n\" breaks lines",
            "type": "string"
          },
          "text_color": {
            "description": "hex color, default \"#FFFFFF\"",
            "type": "string"
          },
          "text_margin_bottom": {
            "description": "extra pixels from the bottom when vertical_align is \"bottom\"",
            "type": "integer"
          },
          "text_margin_top": {
            "description": "extra pixels from the top when vertical_align is \"top\"",
            "type": "integer"
          },
          "vertical_align": {
            "description": "\"top\" | \"center\" (default) | \"bottom\"",
            "type": "string"
          },
          "width": {
            "description": "output width in pixels (default: base image width)",
            "type": "integer"
          }
        },
        "required": [
          "image_url"
        ],
        "type": "object"
      },
      "Job": {
        "description": "Any asynchronous job (render, media, AI video). Responses also carry \"state\" (same as status) and \"artifactUrl\" (same as output_url) for older integrations.",
        "properties": {
          "created_at": {
            "type": "string"
          },
          "credit_cost": {
            "description": "CreditCost is what the job charged (read by GetJob only: GET /renders/{id} and GET /media/{id}; nil elsewhere). 0 for a free preview.",
            "type": "integer"
          },
          "duration": {
            "description": "seconds of output",
            "type": "number"
          },
          "ended_at": {
            "type": "string"
          },
          "expires_at": {
            "description": "when the output file is deleted",
            "type": "string"
          },
          "file_size": {
            "description": "bytes",
            "type": "integer"
          },
          "first_job": {
            "description": "FirstJob is set on creation when this is the account's first job of its own (activation metric; the example project does not count).",
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "message": {
            "description": "human-readable status or error",
            "type": "string"
          },
          "output_key": {
            "description": "storage key of the output",
            "type": "string"
          },
          "output_url": {
            "description": "the rendered file (signed /files link)",
            "type": "string"
          },
          "payload": {
            "description": "the request as received",
            "type": "object"
          },
          "phase": {
            "description": "current step",
            "type": "string"
          },
          "progress": {
            "description": "0-100",
            "type": "integer"
          },
          "result": {
            "description": "Result holds the structured output of media jobs (see MediaResult). Nil for other job kinds and in list responses.",
            "type": "object"
          },
          "source": {
            "description": "what made it: \"api\" | \"editor\" | \"media\" | \"motion\" | \"preview\" (AI video jobs have their own value)",
            "type": "string"
          },
          "started_at": {
            "type": "string"
          },
          "status": {
            "description": "\"queued\" | \"processing\" | \"completed\" | \"failed\" | \"cancelled\"",
            "type": "string"
          },
          "statusUrl": {
            "description": "StatusURL is set by handlers on creation so callers can poll the job.",
            "type": "string"
          },
          "thumbnail_url": {
            "description": "a JPEG frame of the output",
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "LearnedStyle": {
        "description": "The result of learn_style.",
        "properties": {
          "id": {
            "description": "use it as options.edit_style of auto_edit",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "params": {
            "$ref": "#/components/schemas/EditStyleParams",
            "description": "Are the knobs of an edit style (a preset, or one learned from reference videos)."
          },
          "references": {
            "description": "What one reference video showed.",
            "items": {
              "$ref": "#/components/schemas/StyleReading"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "LockedClip": {
        "description": "A moment the AI picked in a Free plan job but did not cut: what a paid plan would also have made. A paid account cuts them from the same download (POST /media/{id}/clips with these segments).",
        "properties": {
          "description": {
            "type": "string"
          },
          "end": {
            "type": "number"
          },
          "hashtags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "hook": {
            "type": "string"
          },
          "named": {
            "description": "Named is true when the AI wrote the title (kept when it is cut).",
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "start": {
            "type": "number"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "Loudness": {
        "description": "The target of the final mix, e.g. {lufs: -14, truePeak: -1.5} (what YouTube plays at).",
        "properties": {
          "lufs": {
            "description": "integrated loudness, -30 to -5 (default -14)",
            "type": "number"
          },
          "truePeak": {
            "description": "ceiling in dBTP, -9 to 0 (default -1.5)",
            "type": "number"
          }
        },
        "type": "object"
      },
      "LowerThird": {
        "description": "The name (and role) shown at the start of an edited video.",
        "properties": {
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "MediaClipsRequest": {
        "description": "Cuts clips from a finished media job without downloading the source again.",
        "properties": {
          "options": {
            "$ref": "#/components/schemas/MediaOptions",
            "description": "same options as POST /media type \"clips\""
          },
          "webhook_url": {
            "description": "POSTed {id, status, output_url, result} (or error) when it finishes",
            "type": "string"
          }
        },
        "type": "object"
      },
      "MediaDownload": {
        "properties": {
          "codec": {
            "type": "string"
          },
          "duration": {
            "type": "number"
          },
          "fps": {
            "type": "number"
          },
          "height": {
            "type": "integer"
          },
          "key": {
            "type": "string"
          },
          "provider": {
            "description": "scrapecreators | yt-dlp | direct | upload | cache",
            "type": "string"
          },
          "size": {
            "type": "integer"
          },
          "url": {
            "type": "string"
          },
          "width": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "MediaOptions": {
        "description": "Tunes the transcript/clips stages.",
        "properties": {
          "ai_music": {
            "description": "AIMusic has music made for the video (SunoBoard, a partner) when no music_src is given (auto_edit; +MusicCredits).",
            "type": "boolean"
          },
          "aspect": {
            "description": "\"9:16\" (default) | \"1:1\" | \"16:9\" | \"original\"",
            "type": "string"
          },
          "audio": {
            "description": "default true; false = pick clips without transcribing (no Whisper, no captions)",
            "type": "boolean"
          },
          "audio_offset": {
            "type": "number"
          },
          "audio_src": {
            "description": "AudioSrc replaces the clips' audio with this track (URL), starting at AudioOffset seconds.",
            "type": "string"
          },
          "avoid_logo": {
            "description": "AvoidLogo keeps the owner's static burned-in logo (found automatically) out of the vertical crop: the crop moves away from it, or the logo is blurred when the subject is too close to it.",
            "type": "boolean"
          },
          "broll": {
            "description": "BRoll are images or video clips (links) auto_edit cuts to for a few seconds now and then while the voice goes on. Up to 10.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "caption_language": {
            "description": "CaptionLanguage translates the captions (and the titles, hooks, descriptions and hashtags) into this language, ISO 639-1 (one of CaptionLanguages). \"\" = the spoken language.",
            "type": "string"
          },
          "caption_position": {
            "description": "CaptionPosition is where the captions sit: \"safe\" (default), \"top\", \"middle\" or \"bottom\".",
            "type": "string"
          },
          "caption_style": {
            "description": "CaptionStyle is the look of the burned-in captions: \"karaoke\" (default), \"highlight\", \"single\", \"boxed\", \"clean\" or \"neon\" (GET /media/caption-styles).",
            "type": "string"
          },
          "captions": {
            "description": "burn karaoke captions into clips",
            "type": "boolean"
          },
          "clean_audio": {
            "description": "CleanAudio is \"auto\" (default, sent as \"\" or \"auto\") or \"off\". auto: the voice gets a high-pass under it and, in a noisy room, noise reduction set to the room. auto_edit only.",
            "type": "string"
          },
          "clip_count": {
            "description": "default 5",
            "type": "integer"
          },
          "compose": {
            "description": "Compose \"shots\" makes each clip of the clean parts of its shots, joined with straight cuts: every frame of a crossfade, dissolve or fade between shots is left out (compilations, mixes). \"\" = the clip plays as it is in the video.",
            "type": "string"
          },
          "dub_language": {
            "description": "DubLanguage is the language type \"dub\" voices the video in, ISO 639-1 (one of DubLanguages). Required for dub.",
            "type": "string"
          },
          "dub_voice": {
            "description": "DubVoice is the new voice: \"auto\" (default: male or female by who speaks), \"male\", \"female\", \"male_deep\" or \"female_bright\".",
            "type": "string"
          },
          "edit_style": {
            "description": "EditStyle is the look of an auto_edit video: \"best-youtube\" (default), \"hyper\", \"clean\" or \"hardcopy\" (GET /media/edit-styles), a style the account learned (\"u-...\", GET /me/edit-styles) or a community style (\"cs-...\", GET /community-edit-styles).",
            "type": "string"
          },
          "facecam_position": {
            "description": "FacecamPosition is its corner: \"bottom-right\" (default), \"bottom-left\", \"top-right\" or \"top-left\".",
            "type": "string"
          },
          "facecam_url": {
            "description": "FacecamURL is the speaker's camera, recorded with the screen and as long as it (a link to the video file): an auto edit of a screen recording without a face shows it in a circle in a corner, cut with the same cuts. One video only (no sources).",
            "type": "string"
          },
          "hook_montage": {
            "description": "HookMontage opens each clip with its strongest line, a 2 to 6 second teaser from later in the same clip, then plays the clip; the teaser adds its length to the clip (default off; for clips picked from what is said, not with segments or visual_query).",
            "type": "boolean"
          },
          "hook_title": {
            "description": "HookTitle burns the clip title in a box at the top of the frame during its first seconds (default off).",
            "type": "boolean"
          },
          "language": {
            "description": "ISO-639-1 (\"pt\", \"en\"); \"\" = auto",
            "type": "string"
          },
          "layout": {
            "description": "Layout arranges vertical clips of a horizontal video: \"auto\" (default, one crop around the subject), \"gaming\" (the streamer's webcam on top, the game below) or \"two_speakers\" (the person on the left on top, the one on the right below). A clip where the webcam or the two people are not found falls back to \"auto\" with a warning.",
            "type": "string"
          },
          "lower_third": {
            "$ref": "#/components/schemas/LowerThird",
            "description": "LowerThird names the speaker at the start of an auto_edit video."
          },
          "max_height": {
            "description": "MaxHeight is the quality cap: 1080 (default) or lower. 1440 or 2160 (Business) also makes clips 1440p or 4K when the source has it, for the clips price again (charged only then). Videos up to 30 minutes; longer ones are fetched in 1080p.",
            "type": "integer"
          },
          "max_seconds": {
            "description": "default 60",
            "type": "integer"
          },
          "min_seconds": {
            "description": "default 20",
            "type": "integer"
          },
          "motion_broll": {
            "description": "MotionBRoll fills the B-roll with animated cutaways our motion designer makes from what is said there (kinetic type, numbers, icons, charts) instead of stock footage, when no broll is given; +3 credits for each one the edit uses. auto_edit only; not with stock_broll.",
            "type": "boolean"
          },
          "music": {
            "description": "Music, when no music_src (auto_edit): \"auto\" (the agent picks a track of the music library, free), \"none\" (default), \"ai\" (same as ai_music), the id of a library track or a mood of the library (\"rock energy\": one of its tracks; GET /media/music-library).",
            "type": "string"
          },
          "music_src": {
            "description": "MusicSrc is a music track for auto_edit, played under the voice and lowered while someone speaks.",
            "type": "string"
          },
          "niche_query": {
            "description": "search term for trend context (ScrapeCreators)",
            "type": "string"
          },
          "orientation": {
            "description": "\"vertical\" (default) | \"horizontal\" | \"square\" | \"original\"; wins over aspect",
            "type": "string"
          },
          "progress_bar": {
            "description": "ProgressBar draws a bar along the top that fills as the video plays (auto_edit).",
            "type": "boolean"
          },
          "reframe": {
            "description": "Reframe \"per_shot\" moves the vertical crop anchor at every shot change inside a clip (default: one anchor per clip).",
            "type": "string"
          },
          "reject_watermark": {
            "description": "RejectWatermark drops windows with burned-in third-party text or logos.",
            "type": "boolean"
          },
          "remove_silences": {
            "description": "RemoveSilences cuts the pauses (0.7 s or more with nothing said) and the hesitation sounds (\"um\", \"uh\") out of each clip; captions follow. Not with audio_src. Same price.",
            "type": "boolean"
          },
          "retakes": {
            "description": "Retakes is \"cut\" (default, sent as \"\" or \"cut\") or \"keep\". cut: a line the speaker abandoned and said again right after goes; the last take stays. auto_edit only.",
            "type": "string"
          },
          "screen_recording": {
            "description": "ScreenRecording is \"auto\" (default, sent as \"\" or \"auto\") or \"off\". auto: when the vision model sees a screen recording, the auto edit draws a box and an arrow at what each keyword on screen is about, and puts FacecamURL's face in a corner. off: neither.",
            "type": "string"
          },
          "segments": {
            "description": "Segments cuts exactly these ranges and skips automatic selection.",
            "items": {
              "$ref": "#/components/schemas/ClipSegment"
            },
            "type": "array"
          },
          "single_shot": {
            "description": "SingleShot keeps each clip inside one shot (no cut or crossfade inside).",
            "type": "boolean"
          },
          "stock_broll": {
            "description": "StockBRoll fills the B-roll from a stock library (Pexels) with clips that match what is said, when no broll is given. auto_edit only.",
            "type": "boolean"
          },
          "style_name": {
            "description": "StyleName names the style learn_style saves (default \"Style of \u003ctitle\u003e\").",
            "type": "string"
          },
          "topic": {
            "description": "Topic keeps only the moments about this subject (speech-driven clips); fewer clips come back when the video has fewer such moments.",
            "type": "string"
          },
          "visual_exclude": {
            "type": "string"
          },
          "visual_query": {
            "description": "VisualQuery picks windows by what is on screen (vision model over sampled frames); VisualExclude lists what must not be on screen.",
            "type": "string"
          },
          "vocabulary": {
            "description": "Vocabulary are names and words said in the video, as they are written (\"Kellen, Kevin, Renderster\"): the transcript and the captions spell them so (misheard ones are put right after the speech model).",
            "type": "string"
          },
          "watermark_allow": {
            "description": "WatermarkAllow lists the caller's own marks (e.g. the channel name) that reject_watermark must ignore. Marks present across the whole video are treated as the owner's branding automatically.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "MediaPart": {
        "description": "The stretch of the source video a job worked on (seconds of the whole video). A first part names the job doing the rest, and the rest names the first part; every time in both jobs (clips, locked moments) is a time of the whole video.",
        "properties": {
          "end": {
            "type": "number"
          },
          "first_job": {
            "description": "rest: the first part's job",
            "type": "string"
          },
          "rest_eta": {
            "description": "first part: seconds the rest is expected to take",
            "type": "integer"
          },
          "rest_job": {
            "description": "first part: the job doing the rest",
            "type": "string"
          },
          "start": {
            "type": "number"
          },
          "total": {
            "description": "the whole video's length",
            "type": "number"
          }
        },
        "type": "object"
      },
      "MediaPayload": {
        "description": "Stored in jobs.payload for media:job tasks.",
        "properties": {
          "options": {
            "$ref": "#/components/schemas/MediaOptions",
            "description": "clip and download options"
          },
          "sources": {
            "description": "Sources are more videos for type \"auto_edit\", edited after url as one video (each opens a new part; up to 9 links), or more references for \"learn_style\" (up to 2).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": {
            "description": "\"download\" (default) | \"transcript\" | \"clips\" | \"auto_edit\" | \"learn_style\" | \"dub\"",
            "type": "string"
          },
          "url": {
            "description": "link to the video (YouTube, TikTok, Instagram, X, Facebook, Vimeo..., or a direct .mp4/.mp3 URL); or send the file as multipart \"file\"",
            "type": "string"
          },
          "webhook_url": {
            "description": "POSTed {id, status, output_url, result} (or error) when it finishes",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "MediaPreviewRequest": {
        "description": "Looks up a link's metadata without creating a job.",
        "properties": {
          "url": {
            "description": "link to a video (YouTube, TikTok, Instagram, X, Facebook, direct file)",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "MediaResult": {
        "properties": {
          "clips": {
            "items": {
              "$ref": "#/components/schemas/Clip"
            },
            "type": "array"
          },
          "cost_usd": {
            "description": "OpenRouter spend reported by the API",
            "type": "number"
          },
          "download": {
            "$ref": "#/components/schemas/MediaDownload"
          },
          "dubbed": {
            "$ref": "#/components/schemas/DubbedVideo",
            "description": "Dubbed is the video dub made."
          },
          "edited": {
            "$ref": "#/components/schemas/EditedVideo",
            "description": "Edited is the video auto_edit made."
          },
          "learned_style": {
            "$ref": "#/components/schemas/LearnedStyle",
            "description": "LearnedStyle is the edit style learn_style saved."
          },
          "locked": {
            "description": "Locked are the moments a Free plan job found beyond its clips.",
            "items": {
              "$ref": "#/components/schemas/LockedClip"
            },
            "type": "array"
          },
          "part": {
            "$ref": "#/components/schemas/MediaPart",
            "description": "Part is set when the job covers only a stretch of the video: the first part of a long video, or the rest of it."
          },
          "platform": {
            "type": "string"
          },
          "rejected": {
            "description": "A window dropped by reject_watermark (or other filters).",
            "items": {
              "$ref": "#/components/schemas/RejectedClip"
            },
            "type": "array"
          },
          "resolution": {
            "description": "Resolution is the short side the clips were made (and paid) at when it is above 1080 (1440 or 2160); an edit keeps it.",
            "type": "integer"
          },
          "source": {
            "$ref": "#/components/schemas/MediaSource"
          },
          "transcript": {
            "$ref": "#/components/schemas/MediaTranscript"
          },
          "trends": {
            "items": {
              "$ref": "#/components/schemas/TrendItem"
            },
            "type": "array"
          },
          "trends_source": {
            "description": "TrendsSource is \"niche\" when Trends came from a search for the video's subject (the only kind used as reference).",
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "MediaSource": {
        "properties": {
          "author": {
            "type": "string"
          },
          "author_url": {
            "type": "string"
          },
          "chapters": {
            "items": {
              "$ref": "#/components/schemas/Chapter"
            },
            "type": "array"
          },
          "comments": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          },
          "duration": {
            "type": "number"
          },
          "heatmap": {
            "description": "One bucket of YouTube's \"most replayed\" curve (0..1).",
            "items": {
              "$ref": "#/components/schemas/HeatmapPoint"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "keywords": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "likes": {
            "type": "integer"
          },
          "platform": {
            "type": "string"
          },
          "provider": {
            "description": "who resolved the metadata",
            "type": "string"
          },
          "published_at": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "MediaTranscript": {
        "properties": {
          "has_words": {
            "type": "boolean"
          },
          "json_url": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "provider": {
            "description": "scrapecreators | whisper",
            "type": "string"
          },
          "segments": {
            "items": {
              "$ref": "#/components/schemas/TranscriptSegment"
            },
            "type": "array"
          },
          "srt_url": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "vtt_url": {
            "type": "string"
          },
          "words": {
            "description": "only kept in the R2 JSON, not in jobs.result",
            "items": {
              "$ref": "#/components/schemas/TranscriptWord"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "MotionLogin": {
        "description": "A login for the site of a demo video.",
        "properties": {
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "MotionRequest": {
        "description": "POST /motion (a MotionPayload with the login in clear, sealed before it is stored).",
        "properties": {
          "ai_music": {
            "description": "music made for the video (SunoBoard), when no music_src (same as music \"ai\")",
            "type": "boolean"
          },
          "aspect": {
            "description": "\"9:16\" (default), \"16:9\" or \"1:1\"",
            "type": "string"
          },
          "captions": {
            "description": "the narration as captions (default true when narrated)",
            "type": "boolean"
          },
          "device": {
            "description": "Device is how the site is shown: \"mobile\" (a phone, its mobile site) or \"desktop\"; \"\" = mobile in a vertical video, desktop otherwise.",
            "type": "string"
          },
          "duration": {
            "description": "seconds wanted, 10 to MotionMaxSeconds (default 30)",
            "type": "integer"
          },
          "free": {
            "description": "Free marks the one free video of an account without a paid plan: up to MotionFreeSeconds, no site, watermarked.",
            "type": "boolean"
          },
          "goal": {
            "description": "what to do and show there",
            "type": "string"
          },
          "language": {
            "description": "ISO code of the narration and the text (\"\" = the prompt's)",
            "type": "string"
          },
          "login": {
            "$ref": "#/components/schemas/MotionLogin",
            "description": "A login for the site of a demo video."
          },
          "login_from": {
            "description": "LoginFrom reuses the login of an earlier demo of the account (a job id), for \"run again\": the login is never shown back in clear.",
            "type": "string"
          },
          "login_sealed": {
            "description": "LoginSealed is the login for the site, sealed (SealLogin): the payload is shown to its owner and kept, a password must not be.",
            "type": "string"
          },
          "music": {
            "description": "Music, when no music_src: \"auto\" (default: the agent picks a track of the music library, free), \"none\", \"ai\" (a track made for the video, +5 credits) or the id of a library track (GET /media/music-library).",
            "type": "string"
          },
          "music_src": {
            "description": "music under the narration (a public link)",
            "type": "string"
          },
          "prompt": {
            "description": "what the video is about and how it should look",
            "type": "string"
          },
          "quality": {
            "description": "\"standard\" (default) or \"premium\" (the best designer model, 2.5x the price)",
            "type": "string"
          },
          "sign_up": {
            "description": "may create an account with a disposable e-mail",
            "type": "boolean"
          },
          "site_url": {
            "description": "A site to visit and show (a demo video).",
            "type": "string"
          },
          "style": {
            "description": "look wanted: colours, brand, references",
            "type": "string"
          },
          "voice": {
            "description": "a narration voice; \"none\" = no narration (default Puck)",
            "type": "string"
          }
        },
        "type": "object"
      },
      "OverlayConfig": {
        "description": "An image or video drawn over the background. It is placed by a named pos, or exactly by x/y (its center as fractions of the frame), and sized by scale (times the file's own pixels) or width (a fraction of the frame width); the fractions render the same at every resolution.",
        "properties": {
          "audioGain": {
            "type": "number"
          },
          "chromaKey": {
            "$ref": "#/components/schemas/ChromaKey",
            "description": "make one color transparent (green screen), image or video"
          },
          "keepAudio": {
            "description": "extract + mix audio from video overlay",
            "type": "boolean"
          },
          "length": {
            "description": "seconds on screen; 0 = until the end",
            "type": "number"
          },
          "loop": {
            "type": "boolean"
          },
          "opacity": {
            "description": "0-1, default 1",
            "type": "number"
          },
          "pos": {
            "description": "\"center\" | \"top-left\" | \"center-bottom\" | ...",
            "type": "string"
          },
          "position": {
            "description": "legacy alias for pos",
            "type": "string"
          },
          "rotation": {
            "description": "degrees clockwise around the overlay's center, -360 to 360",
            "type": "number"
          },
          "scale": {
            "description": "size multiplier of the file's own pixels (default 1)",
            "type": "number"
          },
          "speed": {
            "description": "Speed plays a video overlay faster or slower: 0.25 to 4 (default 1). trimStart is in seconds of the file, start and length in seconds of the video; loop repeats the sped-up clip and kept sound follows the speed (pitch kept). Images ignore it.",
            "type": "number"
          },
          "src": {
            "type": "string"
          },
          "start": {
            "description": "seconds on the timeline when the overlay appears",
            "type": "number"
          },
          "trimStart": {
            "description": "video overlays: seconds into the file where it starts playing (it plays to the end, then loops from the start when loop is set)",
            "type": "number"
          },
          "type": {
            "description": "\"video\" | \"image\"",
            "type": "string"
          },
          "width": {
            "description": "width as a fraction of the frame width (0-1); the height follows the file's aspect; replaces scale",
            "type": "number"
          },
          "x": {
            "description": "center of the overlay, 0-1 from the left edge; set with y, together they replace pos",
            "type": "number"
          },
          "y": {
            "description": "center of the overlay, 0-1 from the top edge; set with x, together they replace pos",
            "type": "number"
          }
        },
        "type": "object"
      },
      "PublishEditStyleRequest": {
        "description": "What POST /me/edit-styles/{id}/publish takes.",
        "properties": {
          "description": {
            "description": "optional, up to 200 characters",
            "type": "string"
          },
          "name": {
            "description": "default: the learned style's name",
            "type": "string"
          }
        },
        "type": "object"
      },
      "RejectedClip": {
        "description": "A window dropped by reject_watermark (or other filters).",
        "properties": {
          "end": {
            "type": "number"
          },
          "rejected_reason": {
            "type": "string"
          },
          "start": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "RenderPayload": {
        "description": "Describes a video: a background (image, video, color or slides), audio (music and voiceovers), overlays, captions, subtitles and a watermark.",
        "properties": {
          "aspect": {
            "description": "\"16:9\" (1920x1080, default) | \"9:16\" (1080x1920) | \"1:1\" (1080x1080) | \"4:5\" (1080x1350)",
            "type": "string"
          },
          "audio": {
            "$ref": "#/components/schemas/AudioConfig",
            "description": "music and voiceovers"
          },
          "background": {
            "$ref": "#/components/schemas/BackgroundSource",
            "description": "what fills the frame"
          },
          "captions": {
            "$ref": "#/components/schemas/CaptionsConfig",
            "description": "timed text burned into the video"
          },
          "durationMode": {
            "description": "\"fixed\" (use fixedDuration) | \"match_voiceover\" (voiceovers + finish_delay) | \"match_music\" (longest music track x repeats)",
            "type": "string"
          },
          "filename": {
            "description": "Filename names the rendered file when downloaded (a video's title: YouTube indexes the uploaded file's name). Path, reserved and control characters are dropped, it is cut to 150 characters and always ends in .mp4; output_url is unchanged. Default: the job's id.",
            "type": "string"
          },
          "fixedDuration": {
            "description": "seconds, required when durationMode is \"fixed\" (max 4 h)",
            "type": "number"
          },
          "fonts": {
            "description": "links to .ttf/.otf fonts that SVG cards use by family name, besides ours",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "fps": {
            "description": "frames per second, 1-60, default 30",
            "type": "integer"
          },
          "kenBurns": {
            "description": "slow zoom/pan on still images",
            "type": "boolean"
          },
          "musicRepeats": {
            "description": "default number of plays for every music track (a track's own \"repeats\" wins)",
            "type": "integer"
          },
          "overlays": {
            "description": "images or videos drawn over the background",
            "items": {
              "$ref": "#/components/schemas/OverlayConfig"
            },
            "type": "array"
          },
          "quality": {
            "description": "Quality is \"standard\" (default) or \"compact\": a much smaller file (CRF 28, at most ~3 Mbps, about 1.35 GB an hour) for long, mostly still videos such as a looped background under music. Same credits.",
            "type": "string"
          },
          "resolution": {
            "description": "Resolution is \"1080p\" (default) or \"4k\": twice the width and height (3840x2160 for 16:9). Business plan; costs twice the credits.",
            "type": "string"
          },
          "subtitles": {
            "$ref": "#/components/schemas/SubtitleConfig",
            "description": "an SRT file burned into the video"
          },
          "texts": {
            "description": "positioned text with an entrance animation (titles, prices, lower thirds)",
            "items": {
              "$ref": "#/components/schemas/TextLayer"
            },
            "type": "array"
          },
          "watermark": {
            "$ref": "#/components/schemas/WatermarkConfig",
            "description": "logo in a corner for the whole video"
          },
          "webhookUrl": {
            "description": "POSTed {id, status, output_url} (or error) when the render finishes",
            "type": "string"
          }
        },
        "required": [
          "background"
        ],
        "type": "object"
      },
      "ReportStyleRequest": {
        "description": "What POST /community-edit-styles/{id}/report takes.",
        "properties": {
          "reason": {
            "description": "what is wrong with it, up to 300 characters",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SlideConfig": {
        "description": "One slide (image or video). Slides play in array order.",
        "properties": {
          "audioGain": {
            "description": "that sound's volume (default 1)",
            "type": "number"
          },
          "blur": {
            "description": "blur radius in pixels of a 1080p frame, 0-50 (e.g. 18 behind a card)",
            "type": "number"
          },
          "crop": {
            "$ref": "#/components/schemas/CropRect",
            "description": "the part of the file to show, in its pixels, cut before the fit"
          },
          "darken": {
            "description": "0-1: how much darker the slide is (0.12 = a little)",
            "type": "number"
          },
          "fit": {
            "description": "\"cover\" (default) | \"contain\"",
            "type": "string"
          },
          "flip": {
            "description": "legacy alias for hflip",
            "type": "boolean"
          },
          "hflip": {
            "description": "mirror horizontally",
            "type": "boolean"
          },
          "keepAudio": {
            "description": "video slides: play the clip's own sound while it is on screen",
            "type": "boolean"
          },
          "length": {
            "description": "seconds on screen",
            "type": "number"
          },
          "overlay": {
            "description": "URL of a transparent PNG or SVG drawn over this slide only, stretched to the frame",
            "type": "string"
          },
          "speed": {
            "description": "Speed plays a video slide faster or slower: 0.25 to 4 (default 1). length stays the seconds on screen; the slide reads length x speed seconds of the file from trimStart, and its kept sound follows the speed (pitch kept). Images ignore it.",
            "type": "number"
          },
          "src": {
            "description": "URL of the image or video",
            "type": "string"
          },
          "start": {
            "description": "informational; slides play back to back in order",
            "type": "number"
          },
          "trimStart": {
            "description": "video slides: start the file at this second",
            "type": "number"
          },
          "vflip": {
            "description": "mirror vertically",
            "type": "boolean"
          },
          "zoom": {
            "$ref": "#/components/schemas/SlideZoom",
            "description": "image slides: a slow zoom over the slide (Ken Burns), e.g. {from: 1, to: 1.25}"
          }
        },
        "required": [
          "src"
        ],
        "type": "object"
      },
      "SlideTransition": {
        "description": "The effect between consecutive slides.",
        "properties": {
          "duration": {
            "description": "seconds (default 0.5); consecutive slides overlap by this long",
            "type": "number"
          },
          "type": {
            "description": "\"fade\" | \"slideleft\" | \"slideright\" | \"wipeleft\" | \"wiperight\"",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SlideZoom": {
        "description": "A zoom from one factor to another over a slide (1 = the whole frame, 1.25 = a quarter closer), centered.",
        "properties": {
          "from": {
            "description": "default 1",
            "type": "number"
          },
          "to": {
            "description": "default 1.25",
            "type": "number"
          }
        },
        "type": "object"
      },
      "StockCredit": {
        "description": "A stock clip an auto edit used, credited to its author.",
        "properties": {
          "author": {
            "type": "string"
          },
          "author_url": {
            "type": "string"
          },
          "page": {
            "type": "string"
          },
          "source": {
            "description": "\"Pexels\"",
            "type": "string"
          }
        },
        "type": "object"
      },
      "StyleReading": {
        "description": "What one reference video showed.",
        "properties": {
          "caption_box": {
            "type": "boolean"
          },
          "caption_highlight": {
            "type": "boolean"
          },
          "captions": {
            "description": "none | line | word_by_word | single_word",
            "type": "string"
          },
          "cuts_per_minute": {
            "type": "number"
          },
          "energy": {
            "description": "calm | medium | high",
            "type": "string"
          },
          "flashes_per_minute": {
            "type": "number"
          },
          "seconds": {
            "type": "number"
          },
          "text_on_screen": {
            "description": "none | some | many",
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "zoom_cuts": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "SubtitleConfig": {
        "properties": {
          "src": {
            "description": "URL to .srt file",
            "type": "string"
          },
          "style": {
            "$ref": "#/components/schemas/SubtitleStyle"
          },
          "type": {
            "description": "\"srt\"",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SubtitleStyle": {
        "properties": {
          "align": {
            "description": "\"top\" | \"center\" | \"bottom\"",
            "type": "string"
          },
          "burnIn": {
            "type": "boolean"
          },
          "color": {
            "type": "string"
          },
          "fontFamily": {
            "type": "string"
          },
          "fontSize": {
            "type": "integer"
          },
          "marginV": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "TextLayer": {
        "description": "Text drawn over the video at a position, from start for length seconds, with an entrance animation.",
        "properties": {
          "align": {
            "description": "\"left\" | \"center\" (default) | \"right\": how the lines align in the box, or which edge of the text sits on x without a width",
            "type": "string"
          },
          "animation": {
            "description": "\"none\" (default) | \"fade\" | \"slide-up\" | \"slide-down\" | \"slide-left\" | \"slide-right\" | \"pop\" | \"typewriter\" | \"words\"",
            "type": "string"
          },
          "bold": {
            "type": "boolean"
          },
          "box": {
            "description": "background box color #RRGGBB; \"\" = no box (outline and shadow)",
            "type": "string"
          },
          "boxOpacity": {
            "description": "0-1, default 1",
            "type": "number"
          },
          "color": {
            "description": "#RRGGBB, default #FFFFFF",
            "type": "string"
          },
          "fontFamily": {
            "description": "\"Inter\" (default) | \"Anton\" | \"OpenSans\" | \"Roboto\" | \"Courier\" | \"Pixel\"",
            "type": "string"
          },
          "fontSize": {
            "description": "pixels; default 6% of the video height",
            "type": "integer"
          },
          "length": {
            "description": "seconds; 0 = until the end",
            "type": "number"
          },
          "position": {
            "description": "\"center\" (default) | \"top\" | \"bottom\" | \"top-left\" | \"top-right\" | \"bottom-left\" | \"bottom-right\"",
            "type": "string"
          },
          "start": {
            "description": "seconds",
            "type": "number"
          },
          "text": {
            "description": "a line break (\\n) starts a new line; long lines wrap",
            "type": "string"
          },
          "width": {
            "description": "wrap width as a fraction of the frame width (0-1), a box centered on x; 0 = wrap at the frame margins",
            "type": "number"
          },
          "x": {
            "description": "0-1 from the left (center of the text); overrides position",
            "type": "number"
          },
          "y": {
            "description": "0-1 from the top (center of the text); overrides position",
            "type": "number"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "ToolCall": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "duration_ms": {
            "type": "integer"
          },
          "endpoint": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "request": {
            "type": "object"
          },
          "result_url": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TranscriptSegment": {
        "properties": {
          "end": {
            "type": "number"
          },
          "start": {
            "type": "number"
          },
          "text": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TranscriptWord": {
        "description": "One word with its timing.",
        "properties": {
          "e": {
            "type": "number"
          },
          "s": {
            "type": "number"
          },
          "w": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TrendItem": {
        "properties": {
          "duration": {
            "type": "number"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "VideoFramesRequest": {
        "description": "Extracts evenly spaced frames of a video as JPEGs.",
        "properties": {
          "count": {
            "description": "number of frames: default 3, max 10",
            "type": "integer"
          },
          "url": {
            "description": "http(s) URL of the video",
            "type": "string"
          },
          "width": {
            "description": "frame width in pixels: default 640, 160-1920",
            "type": "integer"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "WatermarkConfig": {
        "properties": {
          "opacity": {
            "description": "0.0-1.0, default 0.7",
            "type": "number"
          },
          "pos": {
            "description": "\"tl\" | \"tr\" | \"bl\" | \"br\"",
            "type": "string"
          },
          "position": {
            "description": "legacy alias",
            "type": "string"
          },
          "scale": {
            "description": "0.05-1.0, default 0.15",
            "type": "number"
          },
          "src": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiKey": {
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "Video rendering and AI clipping API. Generated from the Renderster source by `go run ./cmd/docsgen`. Do not edit by hand.",
    "title": "Renderster API",
    "version": "1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/ai-video/generate": {
      "post": {
        "description": "Text to video with sound, or restyle a short video (send `src_url`, or the file as multipart `file`). Leave `model` empty for the default (`lite` for prompts, `remix` when a source video is sent); `fast` and `cinematic` are higher quality. Credits are reserved per second and unused seconds are refunded. Poll `status_url`.",
        "operationId": "ai-video-generate",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "prompt": "A slow dolly shot through a neon-lit Tokyo alley in the rain, cinematic",
                "aspect": "9:16",
                "duration": 8
              },
              "schema": {
                "$ref": "#/components/schemas/AIVideoPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "status": "queued",
                  "status_url": "https://renderster.com/renders/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11"
                }
              }
            },
            "description": "Generate a video with AI"
          }
        },
        "summary": "Generate a video with AI",
        "tags": [
          "ai-video"
        ]
      }
    },
    "/ai-video/jobs/{id}": {
      "get": {
        "description": "Same response as `GET /renders/{id}`.",
        "operationId": "ai-video-job",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "user_id": "58f733bb-a4b3-466e-b27a-6fe8d0fb960b",
                  "status": "completed",
                  "progress": 100,
                  "phase": "done",
                  "message": "Completed",
                  "payload": {
                    "aspect": "9:16"
                  },
                  "source": "api",
                  "output_key": "outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4",
                  "output_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4",
                  "thumbnail_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/thumbnails/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.jpg",
                  "file_size": 18874368,
                  "duration": 15,
                  "created_at": "2026-09-28T14:00:00Z",
                  "updated_at": "2026-09-28T14:00:41Z",
                  "started_at": "2026-09-28T14:00:02Z",
                  "ended_at": "2026-09-28T14:00:41Z",
                  "expires_at": "2026-10-28T14:00:00Z",
                  "statusUrl": "https://renderster.com/renders/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "state": "completed",
                  "artifactUrl": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4"
                },
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            },
            "description": "Get an AI video job"
          }
        },
        "summary": "Get an AI video job",
        "tags": [
          "ai-video"
        ]
      }
    },
    "/assets": {
      "get": {
        "description": "Your uploaded files, newest first. Pages by `cursor`: pass the `next_cursor` of the previous page; it is empty on the last one.",
        "operationId": "list-assets",
        "parameters": [
          {
            "description": "image | video | audio (default: all)",
            "in": "query",
            "name": "kind",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "page size, default 50, max 200",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "the next_cursor of the previous page",
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "assets": [
                    {
                      "id": "a7e2d1c0-3b4f-4a5e-9c6d-8e7f6a5b4c3d",
                      "kind": "video",
                      "name": "intro.mp4",
                      "url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/assets/users/58f733bb/3f9a1c2b7d8e4f60.mp4",
                      "size": 7340032,
                      "width": 1920,
                      "height": 1080,
                      "duration": 12.4,
                      "created_at": "2026-09-28T14:00:00Z"
                    }
                  ],
                  "limit": 50,
                  "next_cursor": ""
                }
              }
            },
            "description": "List your files"
          }
        },
        "summary": "List your files",
        "tags": [
          "assets"
        ]
      }
    },
    "/assets/cache": {
      "post": {
        "description": "Copies a remote file that may expire (AI image outputs, messaging media) to a stable link.",
        "operationId": "assets-cache",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "url": "https://replicate.delivery/pbxt/abc123/out-0.png",
                "ttl_hours": 24
              },
              "schema": {
                "$ref": "#/components/schemas/AssetsCacheRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "cached_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/assets/cache/51d0/out-0.png",
                  "expires_at": "2026-09-29T14:00:00Z",
                  "ok": true,
                  "source_url": "https://replicate.delivery/pbxt/abc123/out-0.png",
                  "ttl_hours": 24
                }
              }
            },
            "description": "Re-host a file"
          }
        },
        "summary": "Re-host a file",
        "tags": [
          "tools"
        ]
      }
    },
    "/assets/upload": {
      "post": {
        "description": "`multipart/form-data` with the file in the field `file` and an optional `name`. What the file is comes from its content, never its name: images (png, jpeg, webp, gif), videos (mp4, mov, webm, mkv) or audio (mp3, m4a, wav, aac, ogg); anything else answers 415. The answer is the asset with its `url`, a link you can put in any `src` of a render. The same file uploaded again answers 200 with the asset it already is. Limits per file: 50 MB on the Free plan, 500 MB on paid plans; stored in all: 500 MB and 10 GB (413 `file_too_large` or `storage_full`, with what to do).",
        "operationId": "upload-asset",
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "id": "a7e2d1c0-3b4f-4a5e-9c6d-8e7f6a5b4c3d",
                  "kind": "video",
                  "name": "intro.mp4",
                  "url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/assets/users/58f733bb/3f9a1c2b7d8e4f60.mp4",
                  "size": 7340032,
                  "width": 1920,
                  "height": 1080,
                  "duration": 12.4,
                  "created_at": "2026-09-28T14:00:00Z"
                }
              }
            },
            "description": "Upload a file"
          }
        },
        "summary": "Upload a file",
        "tags": [
          "assets"
        ]
      }
    },
    "/assets/{id}": {
      "delete": {
        "description": "Removes the file from your list and frees its space. Answers 204 with no body.",
        "operationId": "delete-asset",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Delete a file"
          }
        },
        "summary": "Delete a file",
        "tags": [
          "assets"
        ]
      },
      "get": {
        "description": "One uploaded file with its link.",
        "operationId": "get-asset",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "a7e2d1c0-3b4f-4a5e-9c6d-8e7f6a5b4c3d",
                  "kind": "video",
                  "name": "intro.mp4",
                  "url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/assets/users/58f733bb/3f9a1c2b7d8e4f60.mp4",
                  "size": 7340032,
                  "width": 1920,
                  "height": 1080,
                  "duration": 12.4,
                  "created_at": "2026-09-28T14:00:00Z"
                }
              }
            },
            "description": "Get a file"
          }
        },
        "summary": "Get a file",
        "tags": [
          "assets"
        ]
      }
    },
    "/audio/extract": {
      "post": {
        "description": "Returns the audio track of a video as a file.",
        "operationId": "audio-extract",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "url": "https://example.com/videos/interview.mp4",
                "format": "mp3"
              },
              "schema": {
                "$ref": "#/components/schemas/AudioExtractRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "format": "mp3",
                  "ok": true,
                  "size": 1843200,
                  "url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/audio/extract/4be1.mp3"
                }
              }
            },
            "description": "Extract audio"
          }
        },
        "summary": "Extract audio",
        "tags": [
          "tools"
        ]
      }
    },
    "/billing/me": {
      "get": {
        "description": "Current plan, credit balance, trial and renewal information.",
        "operationId": "billing-me",
        "responses": {
          "200": {
            "description": "Your plan and credits"
          }
        },
        "summary": "Your plan and credits",
        "tags": [
          "account"
        ]
      }
    },
    "/billing/plans": {
      "get": {
        "description": "Public price list: plans, the credit pack, what each action costs in credits, and the trial.",
        "operationId": "plans",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "ai_video_models": [
                    {
                      "id": "lite",
                      "name": "Lite",
                      "description": "Text to video with sound. Fast and affordable, 720p.",
                      "mode": "text",
                      "credits_per_second": 5,
                      "durations": [
                        4,
                        6,
                        8
                      ],
                      "default": true
                    },
                    {
                      "id": "fast",
                      "name": "Fast",
                      "description": "Higher quality text to video with sound, 720p.",
                      "mode": "text",
                      "credits_per_second": 10,
                      "durations": [
                        4,
                        6,
                        8
                      ]
                    },
                    {
                      "id": "cinematic",
                      "name": "Cinematic",
                      "description": "Our best quality: cinematic footage with sound, 720p.",
                      "mode": "text",
                      "credits_per_second": 40,
                      "durations": [
                        4,
                        6,
                        8
                      ]
                    },
                    {
                      "id": "remix",
                      "name": "Remix",
                      "description": "Restyle or edit a video up to 10 s, or generate from a prompt, 720p.",
                      "mode": "any",
                      "credits_per_second": 10,
                      "durations": [
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10
                      ]
                    }
                  ],
                  "creator_pass": {
                    "id": "creator_pass",
                    "name": "Creator, 30 days",
                    "price_cents": 1200,
                    "price_brl_cents": 4900,
                    "currency": "usd",
                    "interval": "",
                    "credits": 200,
                    "highlight": false,
                    "tagline": "30 days of Creator, paid once",
                    "features": null,
                    "paid_features": true,
                    "ai_video": false,
                    "pass_plan": "creator",
                    "pass_days": 30
                  },
                  "credit_costs": [
                    {
                      "action": "Render",
                      "credits": 1,
                      "unit": "per minute of output video"
                    },
                    {
                      "action": "Download",
                      "credits": 1,
                      "unit": "per link (any platform)"
                    },
                    {
                      "action": "Transcript",
                      "credits": 2,
                      "unit": "per video (download included)"
                    },
                    {
                      "action": "AI clips",
                      "credits": 7,
                      "unit": "per job, up to 12 clips"
                    },
                    {
                      "action": "Visual search for clips (visual_query)",
                      "credits": 1,
                      "unit": "per 5 minutes of source video"
                    },
                    {
                      "action": "Lite (Pro and Business)",
                      "credits": 5,
                      "unit": "per second of generated video"
                    },
                    {
                      "action": "Fast (Pro and Business)",
                      "credits": 10,
                      "unit": "per second of generated video"
                    },
                    {
                      "action": "Cinematic (Pro and Business)",
                      "credits": 40,
                      "unit": "per second of generated video"
                    },
                    {
                      "action": "Remix (Pro and Business)",
                      "credits": 10,
                      "unit": "per second of generated video"
                    }
                  ],
                  "pack": {
                    "id": "pack",
                    "name": "Credit Pack",
                    "price_cents": 2900,
                    "price_brl_cents": 9700,
                    "currency": "usd",
                    "interval": "",
                    "credits": 500,
                    "highlight": false,
                    "tagline": "Top up anytime",
                    "features": [
                      "500 extra credits",
                      "Never expire"
                    ],
                    "paid_features": false,
                    "ai_video": false
                  },
                  "plans": [
                    {
                      "id": "free",
                      "name": "Free",
                      "price_cents": 0,
                      "price_brl_cents": 0,
                      "currency": "usd",
                      "interval": "",
                      "credits": 60,
                      "highlight": false,
                      "tagline": "Your first video, free",
                      "features": [
                        "Your first video free, no card",
                        "Clips (up to 3), or a dub or auto edit of the first 60 s (watermarked)",
                        "Then a 7-day free trial of any paid plan",
                        "Visual editor with free 480p previews"
                      ],
                      "paid_features": false,
                      "ai_video": false
                    },
                    {
                      "id": "creator",
                      "name": "Creator",
                      "price_cents": 1200,
                      "price_brl_cents": 4900,
                      "currency": "usd",
                      "interval": "month",
                      "credits": 200,
                      "highlight": false,
                      "tagline": "For one creator posting every week",
                      "features": [
                        "200 credits / month",
                        "AI clips, dubbing and auto edit",
                        "Download + transcripts (SRT/VTT/JSON)",
                        "No watermark",
                        "Unused credits roll over (up to 3x)"
                      ],
                      "paid_features": true,
                      "ai_video": false
                    },
                    {
                      "id": "starter",
                      "name": "Starter",
                      "price_cents": 2900,
                      "price_brl_cents": 9700,
                      "currency": "usd",
                      "interval": "month",
                      "credits": 600,
                      "highlight": false,
                      "tagline": "For creators automating their channels",
                      "features": [
                        "600 credits / month",
                        "AI clips from YouTube, TikTok, Instagram, X, Facebook",
                        "Studio: 5 AI videos a day (1 site demo)",
                        "Download + transcripts (SRT/VTT/JSON)",
                        "Vertical, horizontal and square clips",
                        "Unused credits roll over (up to 3x)"
                      ],
                      "paid_features": true,
                      "ai_video": false,
                      "annual_price_cents": 29000,
                      "annual_price_brl_cents": 97000
                    },
                    {
                      "id": "pro",
                      "name": "Pro",
                      "price_cents": 7900,
                      "price_brl_cents": 29700,
                      "currency": "usd",
                      "interval": "month",
                      "credits": 2000,
                      "highlight": true,
                      "tagline": "For agencies and content teams",
                      "features": [
                        "2,000 credits / month",
                        "Everything in Starter",
                        "Studio: 15 AI videos a day (5 site demos)",
                        "AI video generation from a prompt (5 a day)",
                        "Long-form renders (hours of video)",
                        "Unused credits roll over (up to 3x)"
                      ],
                      "paid_features": true,
                      "ai_video": true,
                      "annual_price_cents": 79000,
                      "annual_price_brl_cents": 297000
                    },
                    {
                      "id": "business",
                      "name": "Business",
                      "price_cents": 19900,
                      "price_brl_cents": 79700,
                      "currency": "usd",
                      "interval": "month",
                      "credits": 6000,
                      "highlight": false,
                      "tagline": "For products built on top of the API",
                      "features": [
                        "6,000 credits / month",
                        "Everything in Pro",
                        "Studio: 40 AI videos a day (15 site demos); 20 generated videos a day",
                        "Lowest price per credit",
                        "Priority support",
                        "Unused credits roll over (up to 3x)"
                      ],
                      "paid_features": true,
                      "ai_video": true,
                      "annual_price_cents": 218900,
                      "annual_price_brl_cents": 876700
                    }
                  ],
                  "rollover": 3,
                  "starter_pass": {
                    "id": "starter_pass",
                    "name": "Starter, 30 days",
                    "price_cents": 2900,
                    "price_brl_cents": 9700,
                    "currency": "usd",
                    "interval": "",
                    "credits": 600,
                    "highlight": false,
                    "tagline": "30 days of Starter, paid once",
                    "features": null,
                    "paid_features": true,
                    "ai_video": false,
                    "pass_plan": "starter",
                    "pass_days": 30
                  },
                  "starter_year_pass": {
                    "id": "starter_year_pass",
                    "name": "Starter, 12 months",
                    "price_cents": 29000,
                    "price_brl_cents": 97000,
                    "currency": "usd",
                    "interval": "",
                    "credits": 600,
                    "highlight": false,
                    "tagline": "12 months of Starter, paid once, credits every month",
                    "features": null,
                    "paid_features": true,
                    "ai_video": false,
                    "pass_plan": "starter",
                    "pass_days": 365
                  },
                  "stripe": true,
                  "trial_credits": 100,
                  "trial_days": 7,
                  "unlock": {
                    "id": "unlock",
                    "name": "Unlock this video",
                    "price_cents": 299,
                    "price_brl_cents": 990,
                    "currency": "usd",
                    "interval": "",
                    "credits": 0,
                    "highlight": false,
                    "tagline": "Every clip of one video",
                    "features": null,
                    "paid_features": false,
                    "ai_video": false
                  }
                }
              }
            },
            "description": "Plans and credit costs"
          }
        },
        "security": [],
        "summary": "Plans and credit costs",
        "tags": [
          "account"
        ]
      }
    },
    "/community-edit-styles": {
      "get": {
        "description": "Edit styles other creators published, most used first, with the creator's name and what each does (`params`). Use an `id` as `options.edit_style` of `auto_edit`. No API key needed.",
        "operationId": "community-edit-styles",
        "parameters": [
          {
            "description": "only styles whose name contains this",
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "default 50, max 100",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "reward_pct": 10,
                  "styles": [
                    {
                      "id": "cs-6a7b8c9d0e1f",
                      "creator": "Ana S.",
                      "name": "Fast tech channel",
                      "description": "Quick cuts, punch-ins and white flashes, for tutorials.",
                      "params": {
                        "change_every": 6,
                        "punch_in": 1.15,
                        "push_in": true,
                        "flashes": true,
                        "sounds": "lots",
                        "captions": "highlight",
                        "callouts": false
                      },
                      "status": "published",
                      "uses": 12,
                      "created_at": "0001-01-01T00:00:00Z"
                    }
                  ]
                }
              }
            },
            "description": "Community edit styles"
          }
        },
        "security": [],
        "summary": "Community edit styles",
        "tags": [
          "media"
        ]
      }
    },
    "/community-edit-styles/{id}/report": {
      "post": {
        "description": "Tells us a community style is a problem (a misleading name or description, say). Styles reported by several accounts are hidden until reviewed.",
        "operationId": "report-edit-style",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "reason": "The name impersonates a channel."
              },
              "schema": {
                "$ref": "#/components/schemas/ReportStyleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "status": "Thanks, we will review it."
                }
              }
            },
            "description": "Report a community style"
          }
        },
        "summary": "Report a community style",
        "tags": [
          "media"
        ]
      }
    },
    "/files/{signature}/{key}": {
      "get": {
        "description": "Public, no API key: the links in every response (`output_url`, `thumbnail_url`, `clips[].url`, tool results...) point here. Supports `Range` (players and resumable downloads, answers 206), `HEAD`, `ETag`/`If-None-Match` (304) and `?download=1` to force a download (add `\u0026filename=\u003cname\u003e` to name the file; the extension stays the file's own; a render made with `filename` already downloads under that name). The signature is part of the link; a modified or expired link answers 404. Renders are kept for 30 days, tool outputs for 7.",
        "operationId": "files",
        "parameters": [
          {
            "in": "path",
            "name": "signature",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Download a generated file"
          }
        },
        "security": [],
        "summary": "Download a generated file",
        "tags": [
          "files"
        ]
      }
    },
    "/health": {
      "get": {
        "operationId": "health",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "status": "ok"
                }
              }
            },
            "description": "Health check"
          }
        },
        "security": [],
        "summary": "Health check",
        "tags": [
          "account"
        ]
      }
    },
    "/images/render": {
      "post": {
        "description": "Base image + optional overlay images or color layer + text, in one image. Used for YouTube thumbnails and post covers.",
        "operationId": "images-render",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "image_url": "https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1280",
                "width": 1280,
                "height": 720,
                "resize_mode": "cover",
                "color": "#000000",
                "opacity": 0.35,
                "text": "NIGHT DRIVE\nVOL. 3",
                "text_color": "#FFC93C",
                "font_family": "Anton",
                "fontsize": 120,
                "align": "left",
                "vertical_align": "bottom",
                "text_margin_bottom": 40
              },
              "schema": {
                "$ref": "#/components/schemas/ImagesRenderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "format": "jpeg",
                  "ok": true,
                  "url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/images/9f2c1a.jpg"
                }
              }
            },
            "description": "Compose an image"
          }
        },
        "summary": "Compose an image",
        "tags": [
          "tools"
        ]
      }
    },
    "/me/edit-styles": {
      "get": {
        "description": "The built-in auto_edit styles and the ones your account learned from reference videos (`type` `learn_style`). Use a learned style's `id` as `options.edit_style`. A style you published to the community has `community` (its public id, status, uses and the credits it earned you).",
        "operationId": "my-edit-styles",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "mine": [
                    {
                      "id": "u-0a1b2c3d4e5f",
                      "name": "Like my favorite channel",
                      "params": {
                        "change_every": 6,
                        "punch_in": 1.15,
                        "push_in": true,
                        "flashes": true,
                        "sounds": "lots",
                        "captions": "highlight",
                        "callouts": false
                      },
                      "created_at": "0001-01-01T00:00:00Z",
                      "community": {
                        "id": "cs-6a7b8c9d0e1f",
                        "status": "published",
                        "uses": 12,
                        "credits_earned": 3.6
                      }
                    }
                  ],
                  "monthly_cap_credits": 2000,
                  "presets": [
                    {
                      "id": "best-youtube",
                      "name": "Best YouTube Edit",
                      "description": "Pauses cut, punch-in on every cut, zoom on the strongest lines, title, white flash and whoosh between parts, impact and riser on reveals. Something changes on screen every 7 to 10 seconds."
                    },
                    {
                      "id": "hyper",
                      "name": "Hyper",
                      "description": "The most energy without stock footage: a new framing every 4 seconds with a harder punch-in, whip and flash between parts, shakes on impacts, emojis, keywords popping up and lots of sound effects. For Shorts, Reels and TikTok."
                    },
                    {
                      "id": "clean",
                      "name": "Clean pace",
                      "description": "Pauses cut and punch-in on every cut, captions and title, no flashes and almost no sound effects: the pace comes from the cuts."
                    },
                    {
                      "id": "hardcopy",
                      "name": "Hard Copy",
                      "description": "Dark cinematic narration told in four acts (hook, proof, the turn, the resolution): a new image every 2 to 3 seconds (stock footage over the voice when no B-roll is given; with motion_broll, up to 10 of them animations in black, white and red, mixed with the stock footage), black cards with a red keyword, big centred captions, crushed blacks with grain, a slow push, a tense score that falls silent on the way into the turn, leaving only the voice, then comes back with a deep hit. For ads and story-driven Reels."
                    }
                  ],
                  "reward_pct": 10
                }
              }
            },
            "description": "Your edit styles"
          }
        },
        "summary": "Your edit styles",
        "tags": [
          "media"
        ]
      }
    },
    "/me/edit-styles/{id}": {
      "delete": {
        "description": "Forgets one of your learned edit styles (and takes it out of the community if you published it; edits already queued with it still run).",
        "operationId": "delete-edit-style",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "deleted": true
                }
              }
            },
            "description": "Delete a learned style"
          }
        },
        "summary": "Delete a learned style",
        "tags": [
          "media"
        ]
      }
    },
    "/me/edit-styles/{id}/publish": {
      "delete": {
        "description": "Takes your style out of the community (`{id}` is the learned style's `u-...` or the community `cs-...` id). Edits already queued with it still run. 404 when it is not published; 409 when it is hidden while we review reports.",
        "operationId": "unpublish-edit-style",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Unpublish a style"
          }
        },
        "summary": "Unpublish a style",
        "tags": [
          "media"
        ]
      },
      "post": {
        "description": "Shares one of your learned edit styles: others find it in `GET /community-edit-styles` and use its `cs-...` id as `options.edit_style`, with your first name on it. Only the style's settings are shared, never your videos. You earn 10% of the credits of the paid auto edits other accounts make with it (not your own, nor accounts on your network; up to 2,000 credits a month with templates). Paid plans. `name` defaults to the learned style's (3 to 60 characters), `description` up to 200. A style is published once: 409 when it is already (or hidden by reports).",
        "operationId": "publish-edit-style",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "Fast tech channel",
                "description": "Quick cuts, punch-ins and white flashes, for tutorials."
              },
              "schema": {
                "$ref": "#/components/schemas/PublishEditStyleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "id": "cs-6a7b8c9d0e1f",
                  "creator": "Ana S.",
                  "name": "Fast tech channel",
                  "description": "Quick cuts, punch-ins and white flashes, for tutorials.",
                  "params": {
                    "change_every": 6,
                    "punch_in": 1.15,
                    "push_in": true,
                    "flashes": true,
                    "sounds": "lots",
                    "captions": "highlight",
                    "callouts": false
                  },
                  "status": "published",
                  "uses": 0,
                  "created_at": "0001-01-01T00:00:00Z"
                }
              }
            },
            "description": "Publish a style to the community"
          }
        },
        "summary": "Publish a style to the community",
        "tags": [
          "media"
        ]
      }
    },
    "/me/usage": {
      "get": {
        "description": "Every call of your account in a period (renders, clips, edits, AI videos, tool calls), where it came from (`web`, `mcp`, `api`, `n8n`, `make`, `zapier`, `sandbox`) and what it cost in the end (failed and cancelled jobs show the credits given back), with totals by day, kind and origin. `format=csv` downloads the calls. Same as renderster.com/app/usage.",
        "operationId": "usage",
        "parameters": [
          {
            "description": "first day, YYYY-MM-DD (default: the 1st of this month)",
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "last day, YYYY-MM-DD (default: today)",
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "time zone of the days, e.g. America/Sao_Paulo (default UTC)",
            "in": "query",
            "name": "tz",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "render | template | editor | preview | clips | edit | auto_edit | learn_style | dub | download | transcript | generation | tool",
            "in": "query",
            "name": "kind",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "web | mcp | api | n8n | make | zapier | sandbox | unknown",
            "in": "query",
            "name": "origin",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "csv to download the calls (up to 5,000)",
            "in": "query",
            "name": "format",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "page size, default 100, max 500",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "items to skip, default 0",
            "in": "query",
            "name": "offset",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "from": "2026-10-01",
                  "items": [
                    {
                      "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                      "at": "0001-01-01T00:00:00Z",
                      "kind": "clips",
                      "origin": "n8n",
                      "what": "How we grew to 1M users",
                      "status": "completed",
                      "credits": 7,
                      "refunded": 0,
                      "seconds": 0
                    }
                  ],
                  "limit": 100,
                  "offset": 0,
                  "summary": {
                    "calls": 2,
                    "credits": 8,
                    "refunded": 0,
                    "seconds": 95,
                    "by_day": [
                      {
                        "key": "2026-10-03",
                        "calls": 2,
                        "credits": 8,
                        "refunded": 0
                      }
                    ],
                    "by_kind": [
                      {
                        "key": "clips",
                        "calls": 1,
                        "credits": 7,
                        "refunded": 0
                      },
                      {
                        "key": "render",
                        "calls": 1,
                        "credits": 1,
                        "refunded": 0
                      }
                    ],
                    "by_origin": [
                      {
                        "key": "n8n",
                        "calls": 2,
                        "credits": 8,
                        "refunded": 0
                      }
                    ]
                  },
                  "to": "2026-10-04"
                }
              }
            },
            "description": "Usage and credits"
          }
        },
        "summary": "Usage and credits",
        "tags": [
          "account"
        ]
      }
    },
    "/media": {
      "post": {
        "description": "Works with YouTube, TikTok, Instagram, X, Facebook, Vimeo and direct file URLs, or an uploaded file (multipart field `file`). `type` `download` returns the video; `options.vocabulary` (names and words said in the video, as written: \"Kellen, Kevin\") makes transcripts, captions and clips spell them right; `transcript` adds a transcript (SRT, VTT, JSON with word timings); `clips` returns ready-to-post clips with titles, hooks, captions and hashtags in the video's language; `auto_edit` edits the whole video like a top YouTube channel (pauses cut, punch-in on cuts, zoom on the strongest lines, title, captions, sound effects; `options.edit_style` (a built-in style such as `best-youtube`, `hyper` for the most energy, `clean` or `hardcopy` (dark cinematic narration told in four acts (hook, proof, the turn, the resolution): a new picture every 2 to 3 s over the voice, free stock clips when no `broll` is given (with `motion_broll`, up to 10 of the cutaways are animations in black, white and red, the rest stock clips), black cards with the sentence and a red keyword, big centred captions, a dark film grade, a tense score that stops on the way into the turn so only the voice is heard, then a deep hit), one you learned, or a community style from `GET /community-edit-styles`), `orientation` horizontal or vertical, optional `music_src`, `broll` (up to 10 links to images or clips cut to for 3 s every 10-25 s, by the style) or `stock_broll: true` (free stock clips from Pexels that match what is said, credited in `result.edited.stock`) or `motion_broll: true` (animations made for the video instead of footage: kinetic type, numbers, icons, charts; +3 credits per cutaway used; with neither, no cutaway at all), `lower_third` {name, role}, more videos in `sources`, `retakes` `cut` (default: a line abandoned and said again goes, the last take stays) or `keep`, `clean_audio` `auto` (default: rumble filtered, a noisy room's noise reduced; the loudness is always set to -14 LUFS) or `off`; the framing follows the speaker's face as they move; on a screen recording (`screen_recording` `auto`, the default, or `off`) each keyword shown on screen also gets a box and an arrow at what it is about, and `facecam_url` (a link to the speaker's camera video, recorded with the screen and as long as it; one video only) puts the face in a circle in a corner (`facecam_position` bottom-right, bottom-left, top-right or top-left), cut with the same cuts, unless the recording already shows a webcam; same price; an editing director reads what is said and how (loudness, pace) and sets the energy of each part, the music's mood, when it comes in and where it cuts out for a beat before a strong line; a test before the start or a remark after the goodbye is left out; 3 credits per minute of the edited video, up to 30 min of source; the video is in `result.edited`, with `light_url`, a copy under 15 MB for WhatsApp, when the video is bigger); `learn_style` studies 1 to 3 reference videos (`url` and `sources`, `options.style_name`) and saves how they are edited as a style for auto_edit (2 credits per video; the style is `result.learned_style`, its `id` goes in `options.edit_style`); `dub` translates what is said and voices it in another language over the original sound, which ducks under the new voice (`options.dub_language` required, ISO 639-1: en, pt, es, fr, de, it, nl, tr, ja, ko, zh, hi, ru, ar, id, pl; `options.dub_voice` `auto` (default: a man's or a woman's voice like the speaker's), `male`, `female`, `male_deep` or `female_bright`; the picture is kept as it is; 5 credits per minute, up to 20 min; the video is in `result.dubbed`, with `subtitles_url`, an SRT of the new speech). Poll `status_url`; the result is in `result`. With `webhook_url`, the end of the job is POSTed there as JSON: `{\"id\", \"status\": \"completed\", \"output_url\", \"result\"}`, where `result` is the job's result as `GET /media/{id}` shows it (the clips with their links, titles and hashtags, the edited or dubbed video, the download, warnings), so no second call is needed; the transcript's full `text` and `segments` are left out of it (its files are in `transcript.json_url`, `srt_url` and `vtt_url`; `GET /media/{id}` has them all); a failure sends `{\"id\", \"status\": \"failed\", \"error\"}`. Every webhook is signed: the header `X-Renderster-Signature: t=\u003cunix seconds\u003e,v1=\u003chex\u003e` carries the HMAC-SHA256, with your webhook secret (on the API keys page), of `\u003ct\u003e.\u003craw body\u003e`; check it, and that `t` is recent, before trusting the call. `clips`, `auto_edit` and `learn_style` need a picture: an audio-only upload (MP3, WAV, M4A...) answers 400, and an audio-only link fails with that reason right after the download (credits refunded); `download`, `transcript` and `dub` take audio too. A link to a private address (localhost, a private network) answers 422 at once, and nothing is charged. `clips` and `transcript` take videos up to 2 hours on the Free plan and 3 hours on paid plans: a longer one answers 422 `video_too_long` (with `upgrade_url` on the Free plan) when its length is known at the request (after `POST /media/preview`), or else fails right after its details are read, before the download, with its credits refunded.",
        "operationId": "create-media",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
                "type": "clips",
                "options": {
                  "clip_count": 5,
                  "min_seconds": 20,
                  "max_seconds": 45,
                  "orientation": "vertical",
                  "captions": true,
                  "language": "en"
                },
                "webhook_url": "https://example.com/hooks/clips-ready"
              },
              "schema": {
                "$ref": "#/components/schemas/MediaPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "credit_cost": 7,
                  "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "platform": "youtube",
                  "queue": "youtube",
                  "status": "queued",
                  "status_url": "https://renderster.com/media/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "type": "clips"
                }
              }
            },
            "description": "Download, transcribe or clip a video"
          }
        },
        "summary": "Download, transcribe or clip a video",
        "tags": [
          "media"
        ]
      }
    },
    "/media/caption-styles": {
      "get": {
        "description": "The looks accepted by `options.caption_style`, default first. No API key needed.",
        "operationId": "caption-styles",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "default": "karaoke",
                  "styles": [
                    {
                      "id": "karaoke",
                      "name": "Karaoke",
                      "description": "Bold uppercase lines; each word fills yellow as it is spoken."
                    },
                    {
                      "id": "bold",
                      "name": "Bold",
                      "description": "Heavy uppercase lines; the spoken word bounces and only key words light up (numbers green, a \"no\" red)."
                    },
                    {
                      "id": "highlight",
                      "name": "Highlight",
                      "description": "Bold uppercase lines that pop in; the spoken word turns green."
                    },
                    {
                      "id": "single",
                      "name": "One word",
                      "description": "One big word at a time in the middle of the screen."
                    },
                    {
                      "id": "boxed",
                      "name": "Boxed",
                      "description": "Sentence-case lines on a dark box, easy to read on busy footage."
                    },
                    {
                      "id": "clean",
                      "name": "Clean",
                      "description": "Smaller sentence-case lines with a soft shadow, for talks and interviews."
                    },
                    {
                      "id": "neon",
                      "name": "Neon",
                      "description": "Uppercase karaoke in cyan with a glowing magenta edge."
                    },
                    {
                      "id": "box",
                      "name": "Box",
                      "description": "Heavy uppercase lines; the spoken word sits on a yellow marker that moves word by word."
                    },
                    {
                      "id": "beast",
                      "name": "Beast",
                      "description": "Two huge words at a time in a cartoon font, the spoken one bouncing in yellow, green or red, each line slightly tilted."
                    },
                    {
                      "id": "cortes",
                      "name": "Cortes BR",
                      "description": "White uppercase with a thick black edge, the spoken word yellow and bouncing: the look of podcast cuts."
                    },
                    {
                      "id": "minimal",
                      "name": "Minimal",
                      "description": "Small sentence-case lines with no edge, only a soft shadow: for calm, premium videos."
                    }
                  ]
                }
              }
            },
            "description": "List caption styles"
          }
        },
        "security": [],
        "summary": "List caption styles",
        "tags": [
          "media"
        ]
      }
    },
    "/media/edit-styles": {
      "get": {
        "description": "The looks accepted by `options.edit_style` for `type` `auto_edit`, default first, with the price per minute. No API key needed.",
        "operationId": "edit-styles",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "credits_per_minute": 3,
                  "default": "best-youtube",
                  "max_minutes": 30,
                  "styles": [
                    {
                      "id": "best-youtube",
                      "name": "Best YouTube Edit",
                      "description": "Pauses cut, punch-in on every cut, zoom on the strongest lines, title, white flash and whoosh between parts, impact and riser on reveals. Something changes on screen every 7 to 10 seconds."
                    },
                    {
                      "id": "hyper",
                      "name": "Hyper",
                      "description": "The most energy without stock footage: a new framing every 4 seconds with a harder punch-in, whip and flash between parts, shakes on impacts, emojis, keywords popping up and lots of sound effects. For Shorts, Reels and TikTok."
                    },
                    {
                      "id": "clean",
                      "name": "Clean pace",
                      "description": "Pauses cut and punch-in on every cut, captions and title, no flashes and almost no sound effects: the pace comes from the cuts."
                    },
                    {
                      "id": "hardcopy",
                      "name": "Hard Copy",
                      "description": "Dark cinematic narration told in four acts (hook, proof, the turn, the resolution): a new image every 2 to 3 seconds (stock footage over the voice when no B-roll is given; with motion_broll, up to 10 of them animations in black, white and red, mixed with the stock footage), black cards with a red keyword, big centred captions, crushed blacks with grain, a slow push, a tense score that falls silent on the way into the turn, leaving only the voice, then comes back with a deep hit. For ads and story-driven Reels."
                    }
                  ]
                }
              }
            },
            "description": "List edit styles"
          }
        },
        "security": [],
        "summary": "List edit styles",
        "tags": [
          "media"
        ]
      }
    },
    "/media/music-library": {
      "get": {
        "description": "Instrumental tracks any video can use at no cost: `music` `auto` (the agent picks the one that fits; the default for `POST /motion`), a track's `id`, a mood of the library (`moods`, e.g. `rock energy` or `phonk`: one of its tracks), `none`, or `ai` for a track made for the video (+5 credits). With `auto` the agent reads how it is said too: a heated rant gets heavy music, calm advice calm music. For `auto_edit` the same values go in `options.music` (default none). Each track has a link to listen.",
        "operationId": "music-library",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "choices": [
                    "auto",
                    "none",
                    "ai"
                  ],
                  "tracks": [
                    {
                      "duration": 142.6,
                      "energy": "high",
                      "id": "upbeat-1",
                      "mood": "upbeat pop",
                      "tags": [
                        "upbeat pop",
                        "claps",
                        "bright synths",
                        "punchy drums"
                      ],
                      "title": "Bright Side",
                      "url": "https://renderster.com/files/…/library/music/upbeat-1.mp3"
                    }
                  ]
                }
              }
            },
            "description": "List the music library"
          }
        },
        "summary": "List the music library",
        "tags": [
          "media"
        ]
      }
    },
    "/media/preview": {
      "post": {
        "description": "Detects the platform and returns the video's metadata, the credit cost of each job type and, when the length is known, how long each would take (`eta_seconds`, clips estimated for 5 clips), without creating a job. A video that is private, deleted or does not exist answers 404 with `code` `video_not_found`; one that needs a signed-in account, 422 `login_required`; a link to a private address (localhost, a private network), 422.",
        "operationId": "media-preview",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173"
              },
              "schema": {
                "$ref": "#/components/schemas/MediaPreviewRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "credit_cost": {
                    "clips": 7,
                    "download": 1,
                    "transcript": 2
                  },
                  "eta_seconds": {
                    "clips": 161,
                    "download": 8,
                    "transcript": 16
                  },
                  "platform": "tiktok",
                  "queue": "fast",
                  "source": {
                    "platform": "tiktok",
                    "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173",
                    "title": "Scout's first swim",
                    "author": "scout2015",
                    "duration": 14
                  },
                  "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173"
                }
              }
            },
            "description": "Preview a link"
          }
        },
        "summary": "Preview a link",
        "tags": [
          "media"
        ]
      }
    },
    "/media/{id}": {
      "delete": {
        "description": "Same as `DELETE /renders/{id}`.",
        "operationId": "cancel-media",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Cancel a media job"
          }
        },
        "summary": "Cancel a media job",
        "tags": [
          "media"
        ]
      },
      "get": {
        "description": "The job with its `result`: source metadata, the downloaded video, the transcript links and the clips (each with `url`, `thumbnail`, `title`, `hook`, `description`, `hashtags`, `score` and timing).",
        "operationId": "get-media",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "user_id": "58f733bb-a4b3-466e-b27a-6fe8d0fb960b",
                  "status": "completed",
                  "progress": 100,
                  "phase": "done",
                  "message": "Completed",
                  "payload": {
                    "aspect": "9:16"
                  },
                  "source": "media",
                  "result": {
                    "type": "clips",
                    "platform": "youtube",
                    "source": {
                      "platform": "youtube",
                      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
                      "id": "dQw4w9WgXcQ",
                      "title": "Rick Astley - Never Gonna Give You Up",
                      "author": "Rick Astley",
                      "duration": 213
                    },
                    "clips": [
                      {
                        "index": 1,
                        "url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/media/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11/clip_01.mp4",
                        "key": "",
                        "thumbnail": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/media/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11/clip_01.jpg",
                        "start": 42.1,
                        "end": 68.4,
                        "duration": 26.3,
                        "size": 0,
                        "title": "The promise nobody expected",
                        "hook": "He said he'd never give you up",
                        "description": "The chorus that became the internet's favorite joke.",
                        "hashtags": [
                          "#music",
                          "#80s",
                          "#shorts"
                        ],
                        "score": 91,
                        "aspect": "9:16"
                      }
                    ]
                  },
                  "output_key": "outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4",
                  "output_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/media/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11/source.mp4",
                  "thumbnail_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/thumbnails/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.jpg",
                  "file_size": 18874368,
                  "duration": 15,
                  "created_at": "2026-09-28T14:00:00Z",
                  "updated_at": "2026-09-28T14:00:41Z",
                  "started_at": "2026-09-28T14:00:02Z",
                  "ended_at": "2026-09-28T14:00:41Z",
                  "expires_at": "2026-10-28T14:00:00Z",
                  "state": "completed",
                  "artifactUrl": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/media/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11/source.mp4"
                },
                "schema": {
                  "$ref": "#/components/schemas/MediaResult"
                }
              }
            },
            "description": "Get a media job"
          }
        },
        "summary": "Get a media job",
        "tags": [
          "media"
        ]
      }
    },
    "/media/{id}/clips": {
      "post": {
        "description": "Reuses the video of a completed media job (no new download) to cut clips with different options.",
        "operationId": "media-reclip",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "options": {
                  "clip_count": 3,
                  "orientation": "square",
                  "captions": true
                }
              },
              "schema": {
                "$ref": "#/components/schemas/MediaClipsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Cut new clips from a finished job"
          }
        },
        "summary": "Cut new clips from a finished job",
        "tags": [
          "media"
        ]
      }
    },
    "/media/{id}/clips/{index}/feedback": {
      "post": {
        "description": "Marks clip number `index` of a finished clips job as good (`1`) or bad (`-1`); `0` clears it. The rating is stored on the clip (`feedback`) and helps us tune the selection.",
        "operationId": "clip-feedback",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "index",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "rating": 1
              },
              "schema": {
                "$ref": "#/components/schemas/ClipFeedbackRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "index": 1,
                  "rating": 1
                }
              }
            },
            "description": "Rate a clip"
          }
        },
        "summary": "Rate a clip",
        "tags": [
          "media"
        ]
      }
    },
    "/media/{id}/clips/{index}/render": {
      "post": {
        "description": "Re-renders clip number `index` of a finished clips job with your changes, from the stored video (no new download), for 1 credit: start and end (exact, up to 30 s around the clip), title, caption style (or `\"none\"`), caption text by line, the title box, cutting the pauses, the horizontal framing. Fields left out stay as they were. The result is a new job with one clip.",
        "operationId": "clip-edit",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "index",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "start": 61.5,
                "end": 92,
                "title": "The part about pricing",
                "caption_style": "boxed"
              },
              "schema": {
                "$ref": "#/components/schemas/ClipEditRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Edit a clip"
          }
        },
        "summary": "Edit a clip",
        "tags": [
          "media"
        ]
      }
    },
    "/media/{id}/export.xml": {
      "get": {
        "description": "The clips of a finished clips job as an FCP 7 XML timeline (Premiere Pro, DaVinci Resolve and Final Cut import it): one sequence over the original video, each clip a cut with a marker named after its title, ready to refine by hand.",
        "operationId": "export-xml",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Export clips to Premiere or DaVinci"
          }
        },
        "summary": "Export clips to Premiere or DaVinci",
        "tags": [
          "media"
        ]
      }
    },
    "/motion": {
      "post": {
        "description": "A director writes the storyboard, a designer animates each scene in code, a critic reviews frames and sends scenes back, a narrator records the voice (`voice`, or `none`), a musician has the soundtrack made by SunoBoard (`ai_music`, +5 credits), an editor joins it with transitions and captions. `quality` `standard` (2 credits/s) or `premium` (the best designer model, 5 credits/s); at least 20 credits. With `site_url` (+15 credits) an explorer first visits the site in a real browser (`goal`; `login` {email, password}, encrypted and never shown to the models; or `sign_up` with a disposable e-mail) and the video shows it, zoomed on each click: on a phone (`device` `mobile`, the default in 9:16: the mobile site, the phone on screen) or in a desktop window (`desktop`). A shorter video gives credits back. The Free plan makes one video of up to 20 s, watermarked. The agents' conversation is in the job's logs (level `agent`). Poll `status_url`; the video is `result.url`.",
        "operationId": "motion-create",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "prompt": "A 30-second launch video for my finance app: the problem, the 3 steps, a call to action. Dark, neon green, kinetic type.",
                "aspect": "9:16",
                "duration": 30,
                "language": "pt",
                "voice": "Puck",
                "ai_music": true
              },
              "schema": {
                "$ref": "#/components/schemas/MotionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "credit_cost": 65,
                  "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "status": "queued",
                  "status_url": "https://renderster.com/renders/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11"
                }
              }
            },
            "description": "Create an AI motion video"
          }
        },
        "summary": "Create an AI motion video",
        "tags": [
          "motion"
        ]
      }
    },
    "/motion/voices": {
      "get": {
        "description": "The voices a motion video can be narrated with.",
        "operationId": "motion-voices",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "default": "Puck",
                  "voices": [
                    {
                      "feel": "upbeat male",
                      "id": "Puck"
                    },
                    {
                      "feel": "firm female",
                      "id": "Kore"
                    }
                  ]
                }
              }
            },
            "description": "List narration voices"
          }
        },
        "summary": "List narration voices",
        "tags": [
          "motion"
        ]
      }
    },
    "/render-templates": {
      "get": {
        "description": "Ready-made videos to fill with your text and images: fields (with an example each), aspect, duration and credit cost. No API key needed. Render one with `POST /renders` and `template_id` + `merge`.",
        "operationId": "list-templates",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "templates": [
                    {
                      "aspect": "9:16",
                      "category": "E-commerce",
                      "credit_cost": 1,
                      "description": "A product photo with its name, price and a call to action, for Reels and TikTok ads.",
                      "duration": 10,
                      "example": {
                        "COLOR": "#FFC93C",
                        "CTA": "Shop now · link in bio",
                        "IMAGE": "https://renderster.com/templates/examples/product.jpg",
                        "MUSIC": "",
                        "NAME": "Studio Headphones",
                        "PRICE": "$129"
                      },
                      "fields": [
                        {
                          "name": "IMAGE",
                          "label": "Product photo",
                          "type": "image",
                          "required": true,
                          "example": "https://renderster.com/templates/examples/product.jpg"
                        },
                        {
                          "name": "NAME",
                          "label": "Product name",
                          "type": "text",
                          "required": true,
                          "max": 28,
                          "example": "Studio Headphones"
                        },
                        {
                          "name": "PRICE",
                          "label": "Price",
                          "type": "text",
                          "required": true,
                          "max": 14,
                          "example": "$129"
                        },
                        {
                          "name": "CTA",
                          "label": "Call to action",
                          "type": "text",
                          "required": true,
                          "max": 32,
                          "example": "Shop now · link in bio"
                        },
                        {
                          "name": "COLOR",
                          "label": "Brand color",
                          "type": "color",
                          "required": false,
                          "default": "#FFC93C",
                          "example": "#FFC93C"
                        },
                        {
                          "name": "MUSIC",
                          "label": "Background music (mp3 link, optional)",
                          "type": "audio",
                          "required": false,
                          "example": ""
                        }
                      ],
                      "id": "product-promo",
                      "name": "Product promo",
                      "poster_url": "/templates/product-promo.jpg"
                    }
                  ]
                }
              }
            },
            "description": "List templates"
          }
        },
        "security": [],
        "summary": "List templates",
        "tags": [
          "renders"
        ]
      }
    },
    "/render-templates/{id}": {
      "get": {
        "description": "One template, as in the list. No API key needed.",
        "operationId": "get-template",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get a template"
          }
        },
        "security": [],
        "summary": "Get a template",
        "tags": [
          "renders"
        ]
      }
    },
    "/render-templates/{id}/payload": {
      "get": {
        "description": "The template's full `POST /renders` payload filled with its example values (what the editor opens), plus its fields. Change it and send it to `POST /renders`, or render the template with `template_id` and `merge`. No API key needed.",
        "operationId": "get-template-payload",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "fields": [],
                  "id": "quote-card",
                  "name": "Quote card",
                  "payload": {
                    "aspect": "9:16",
                    "background": {
                      "color": "#101010",
                      "type": "color"
                    }
                  }
                }
              }
            },
            "description": "A template's render payload"
          }
        },
        "security": [],
        "summary": "A template's render payload",
        "tags": [
          "renders"
        ]
      }
    },
    "/renders": {
      "get": {
        "description": "Your jobs, newest first.",
        "operationId": "list-renders",
        "parameters": [
          {
            "description": "page size, default 20, max 500",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "items to skip, default 0",
            "in": "query",
            "name": "offset",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "jobs": [
                    {
                      "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                      "user_id": "58f733bb-a4b3-466e-b27a-6fe8d0fb960b",
                      "status": "completed",
                      "progress": 100,
                      "phase": "done",
                      "message": "Completed",
                      "payload": {
                        "aspect": "9:16"
                      },
                      "source": "api",
                      "output_key": "outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4",
                      "output_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4",
                      "thumbnail_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/thumbnails/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.jpg",
                      "file_size": 18874368,
                      "duration": 15,
                      "created_at": "2026-09-28T14:00:00Z",
                      "updated_at": "2026-09-28T14:00:41Z",
                      "started_at": "2026-09-28T14:00:02Z",
                      "ended_at": "2026-09-28T14:00:41Z",
                      "expires_at": "2026-10-28T14:00:00Z",
                      "statusUrl": "https://renderster.com/renders/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                      "state": "completed",
                      "artifactUrl": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4"
                    }
                  ],
                  "limit": 20,
                  "offset": 0,
                  "total": 134
                }
              }
            },
            "description": "List jobs"
          }
        },
        "summary": "List jobs",
        "tags": [
          "renders"
        ]
      },
      "post": {
        "description": "Queues a render and returns the job, with `credit_cost` (the credits charged) and the link to poll as both `statusUrl` and `status_url` (the same link; `status_url` is how the media and AI video answers name it). Poll it (or `GET /renders/{id}`) until `status` is `completed`, then download `output_url`. Set `webhookUrl` to be called when it finishes: a POST with the JSON `{\"id\", \"status\": \"completed\", \"output_url\"}`, or `{\"id\", \"status\": \"failed\", \"error\"}`. Every webhook is signed: the header `X-Renderster-Signature: t=\u003cunix seconds\u003e,v1=\u003chex\u003e` carries the HMAC-SHA256, with your webhook secret (on the API keys page), of `\u003ct\u003e.\u003craw body\u003e`; check it, and that `t` is recent, before trusting the call. Credits are reserved up front from the requested duration: 1 credit a minute (twice in 4K). A render whose length follows its voiceover or music reserves 10 minutes' worth and is charged the rest once its length is known, before encoding; if the balance cannot cover it, the render fails and is refunded. To start from a ready-made template instead, send `{\"template_id\": \"product-promo\", \"merge\": {\"NAME\": \"...\", ...}}` (see `GET /render-templates`); the fields are checked and the result is priced like any render. Add `texts` for titles and prices with an entrance animation. Video slides and video overlays take `speed` (0.25 to 4, default 1): `length` stays the seconds on screen, `trimStart` is in seconds of the file, and kept audio follows the speed with its pitch unchanged. An overlay with `chromaKey` {color, similarity, blend} makes that color transparent (a green screen). A slide can also take `crop` {x, y, w, h} (the part of the file to show, in its pixels), `zoom` {from, to} (a slow zoom on an image slide, default 1 to 1.25), `blur` (pixels of a 1080p frame, up to 50) and `darken` (0 to 1), and `overlay`: a transparent PNG or SVG drawn over that slide only, stretched to the frame, in the same pass (the fast way to put a different card on each of many slides). An SVG card is drawn at the frame size with a transparent background; its text uses our fonts by family name (Inter, Montserrat, Poppins, Archivo Black, Anton, Bebas Neue, Playfair Display, Libre Baskerville and more) or fonts you link in `fonts` (.ttf or .otf); it may link only inside itself or to inline `data:`. `audio.voiceTempo` (0.5 to 2) speeds the voiceovers up or down with their pitch kept; the silences set by each `start` stay as they are, and `durationMode: \"match_voiceover\"` counts both. A music track with `duck: true` is turned down while the voiceover speaks, and `audio.loudness` {lufs, truePeak} (default -14 and -1.5) normalizes the final mix. Colors are `#RRGGBB` (`#RGB` is read as `#RRGGBB`); the background, captions and chroma key also take `#RRGGBBAA` or a color name such as `white`; `aspect` is `16:9` (default), `9:16`, `1:1` or `4:5`. A payload that cannot be rendered (an unknown aspect, a color that is not one, a `fixedDuration` of 0 or less, a negative length, an `fps` over 60, a link to a private address) answers 422 naming the field, and nothing is charged.",
        "operationId": "create-render",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "aspect": "9:16",
                "fps": 30,
                "durationMode": "fixed",
                "fixedDuration": 15,
                "background": {
                  "slides": [
                    {
                      "src": "https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1080",
                      "start": 0,
                      "length": 5
                    },
                    {
                      "src": "https://images.unsplash.com/photo-1470770841072-f978cf4d019e?w=1080",
                      "start": 5,
                      "length": 5
                    },
                    {
                      "src": "https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1080",
                      "start": 10,
                      "length": 5
                    }
                  ],
                  "slideTransition": {
                    "type": "fade",
                    "duration": 0.5
                  }
                },
                "kenBurns": true,
                "audio": {
                  "music": {
                    "src": "https://cdn.pixabay.com/audio/2022/10/25/audio_946bc3eb1f.mp3",
                    "gain": 0.8
                  }
                },
                "captions": {
                  "style": {
                    "fontSize": 64,
                    "color": "#FFFFFF",
                    "align": "bottom",
                    "marginV": 220
                  },
                  "items": [
                    {
                      "text": "Three places to see before 30",
                      "start": 0.5,
                      "length": 4
                    }
                  ]
                },
                "webhookUrl": "https://example.com/hooks/render-done"
              },
              "schema": {
                "$ref": "#/components/schemas/RenderPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "created_at": "2026-09-28T14:00:00Z",
                  "credit_cost": 1,
                  "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "message": "",
                  "payload": {
                    "aspect": "9:16",
                    "durationMode": "fixed",
                    "fixedDuration": 15
                  },
                  "phase": "",
                  "progress": 0,
                  "source": "api",
                  "state": "queued",
                  "status": "queued",
                  "statusUrl": "https://renderster.com/renders/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "status_url": "https://renderster.com/renders/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "updated_at": "2026-09-28T14:00:41Z",
                  "user_id": "58f733bb-a4b3-466e-b27a-6fe8d0fb960b"
                },
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            },
            "description": "Create a render"
          }
        },
        "summary": "Create a render",
        "tags": [
          "renders"
        ]
      }
    },
    "/renders/preview": {
      "post": {
        "description": "The same body as `POST /renders` (a payload or a template request), rendered free of charge to check a design before the real render: 480p, \"Preview\" in the corner, cut at 3 minutes, kept for a day. The same checks apply (a 4K request still needs the Business plan; the preview itself is 480p). The answer is the job with `credit_cost` 0; poll `statusUrl` (or `status_url`, the same link) as usual. Up to 20 previews per account a day (5 on the Free plan); past that, 429 `preview_limit` with `retry_after`.",
        "operationId": "preview-render",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "aspect": "9:16",
                "durationMode": "fixed",
                "fixedDuration": 8,
                "background": {
                  "color": "#101828"
                },
                "texts": [
                  {
                    "text": "Summer sale",
                    "fontSize": 110,
                    "animation": "pop"
                  }
                ]
              },
              "schema": {
                "$ref": "#/components/schemas/RenderPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "created_at": "2026-09-28T14:00:00Z",
                  "credit_cost": 0,
                  "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "message": "",
                  "payload": {
                    "aspect": "9:16",
                    "durationMode": "fixed",
                    "fixedDuration": 8,
                    "preview": true
                  },
                  "phase": "",
                  "progress": 0,
                  "source": "preview",
                  "state": "queued",
                  "status": "queued",
                  "statusUrl": "https://renderster.com/renders/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "status_url": "https://renderster.com/renders/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "updated_at": "2026-09-28T14:00:41Z",
                  "user_id": "58f733bb-a4b3-466e-b27a-6fe8d0fb960b"
                }
              }
            },
            "description": "Preview a render"
          }
        },
        "summary": "Preview a render",
        "tags": [
          "renders"
        ]
      }
    },
    "/renders/stats": {
      "get": {
        "description": "Counts and render time of your jobs over the last days.",
        "operationId": "render-stats",
        "parameters": [
          {
            "description": "window in days, 1-90, default 7",
            "in": "query",
            "name": "days",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "total": 134,
                  "by_status": {
                    "cancelled": 2,
                    "completed": 128,
                    "failed": 4
                  },
                  "by_source": {
                    "api": 97,
                    "media": 31,
                    "motion": 6
                  },
                  "total_bytes": 25769803776,
                  "total_render_seconds": 18230,
                  "avg_render_seconds": 136,
                  "daily": [
                    {
                      "day": "2026-09-27",
                      "count": 19
                    },
                    {
                      "day": "2026-09-28",
                      "count": 22
                    }
                  ]
                }
              }
            },
            "description": "Job statistics"
          }
        },
        "summary": "Job statistics",
        "tags": [
          "renders"
        ]
      }
    },
    "/renders/{id}": {
      "delete": {
        "description": "Cancels a queued or running job and gives its credits back. A media job cancelled once its AI steps started (after the download) keeps what it made so far and its credits. Answers 204 with no body; 404 when the job is already finished.",
        "operationId": "cancel-render",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Cancel a job"
          }
        },
        "summary": "Cancel a job",
        "tags": [
          "renders"
        ]
      },
      "get": {
        "description": "Status, progress and output of any job (renders, media and AI video share the same job model). `status` is `queued`, `processing`, `completed`, `failed` or `cancelled`.",
        "operationId": "get-render",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "user_id": "58f733bb-a4b3-466e-b27a-6fe8d0fb960b",
                  "status": "completed",
                  "progress": 100,
                  "phase": "done",
                  "message": "Completed",
                  "payload": {
                    "aspect": "9:16"
                  },
                  "source": "api",
                  "output_key": "outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4",
                  "output_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4",
                  "thumbnail_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/thumbnails/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.jpg",
                  "file_size": 18874368,
                  "duration": 15,
                  "created_at": "2026-09-28T14:00:00Z",
                  "updated_at": "2026-09-28T14:00:41Z",
                  "started_at": "2026-09-28T14:00:02Z",
                  "ended_at": "2026-09-28T14:00:41Z",
                  "expires_at": "2026-10-28T14:00:00Z",
                  "statusUrl": "https://renderster.com/renders/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                  "state": "completed",
                  "artifactUrl": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/outputs/58f733bb/5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11.mp4"
                },
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            },
            "description": "Get a job"
          }
        },
        "summary": "Get a job",
        "tags": [
          "renders"
        ]
      }
    },
    "/renders/{id}/logs": {
      "get": {
        "description": "Step-by-step log lines of a job, useful to debug a failed render.",
        "operationId": "render-logs",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "logs": [
                    {
                      "id": 1,
                      "job_id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                      "level": "info",
                      "message": "Background ready (3 slides)",
                      "created_at": "2026-09-28T14:00:05Z"
                    },
                    {
                      "id": 2,
                      "job_id": "5b3c1c9e-2f0a-4c55-9d8e-7a1f0e6b2c11",
                      "level": "info",
                      "message": "Encoding 1080x1920 @ 30 fps",
                      "created_at": "2026-09-28T14:00:09Z"
                    }
                  ]
                }
              }
            },
            "description": "Get job logs"
          }
        },
        "summary": "Get job logs",
        "tags": [
          "renders"
        ]
      }
    },
    "/status/summary": {
      "get": {
        "description": "Jobs of the last 24 hours by kind, the failure rate and the median processing time. No API key needed; refreshed every minute. Also shown at renderster.com/status.",
        "operationId": "status-summary",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "api": "ok",
                  "by_kind": [
                    {
                      "kind": "clips",
                      "jobs": 40,
                      "failed": 1,
                      "median_seconds": 175
                    },
                    {
                      "kind": "render",
                      "jobs": 80,
                      "failed": 0,
                      "median_seconds": 35
                    }
                  ],
                  "failed": 1,
                  "failure_rate_pct": 0.8,
                  "jobs": 120,
                  "window_hours": 24
                }
              }
            },
            "description": "Service status"
          }
        },
        "security": [],
        "summary": "Service status",
        "tags": [
          "account"
        ]
      }
    },
    "/tool-calls": {
      "get": {
        "description": "History of your tool requests with their results.",
        "operationId": "tool-calls",
        "parameters": [
          {
            "description": "page size, default 20, max 500",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "items to skip, default 0",
            "in": "query",
            "name": "offset",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "limit": 20,
                  "offset": 0,
                  "tool_calls": [
                    {
                      "id": "c0ffee00-1111-4222-8333-444455556666",
                      "user_id": "58f733bb-a4b3-466e-b27a-6fe8d0fb960b",
                      "endpoint": "video/frames",
                      "request": {
                        "url": "https://example.com/videos/trailer.mp4",
                        "count": 4
                      },
                      "result_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/video/frames/7c1e/1.jpg",
                      "status": "completed",
                      "duration_ms": 2140,
                      "created_at": "2026-09-28T14:00:00Z",
                      "expires_at": "2026-10-05T14:00:00Z"
                    }
                  ]
                }
              }
            },
            "description": "List tool calls"
          }
        },
        "summary": "List tool calls",
        "tags": [
          "tools"
        ]
      }
    },
    "/tool-calls/{id}": {
      "get": {
        "operationId": "tool-call",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "c0ffee00-1111-4222-8333-444455556666",
                  "user_id": "58f733bb-a4b3-466e-b27a-6fe8d0fb960b",
                  "endpoint": "video/frames",
                  "request": {
                    "url": "https://example.com/videos/trailer.mp4",
                    "count": 4
                  },
                  "result_url": "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/video/frames/7c1e/1.jpg",
                  "status": "completed",
                  "duration_ms": 2140,
                  "created_at": "2026-09-28T14:00:00Z",
                  "expires_at": "2026-10-05T14:00:00Z"
                },
                "schema": {
                  "$ref": "#/components/schemas/ToolCall"
                }
              }
            },
            "description": "Get a tool call"
          }
        },
        "summary": "Get a tool call",
        "tags": [
          "tools"
        ]
      }
    },
    "/video/frames": {
      "post": {
        "description": "Evenly spaced JPEG frames of a video (thumbnails, vision models).",
        "operationId": "video-frames",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "url": "https://example.com/videos/trailer.mp4",
                "count": 4,
                "width": 1280
              },
              "schema": {
                "$ref": "#/components/schemas/VideoFramesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "count": 4,
                  "duration": 93.4,
                  "frames": [
                    "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/video/frames/7c1e/1.jpg",
                    "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/video/frames/7c1e/2.jpg",
                    "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/video/frames/7c1e/3.jpg",
                    "https://renderster.com/files/Xk3pQ9vLm2Rt7aBc/video/frames/7c1e/4.jpg"
                  ],
                  "ok": true
                }
              }
            },
            "description": "Extract frames"
          }
        },
        "summary": "Extract frames",
        "tags": [
          "tools"
        ]
      }
    }
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "servers": [
    {
      "url": "https://renderster.com"
    }
  ],
  "tags": [
    {
      "description": "Renders. Turn a JSON description (background, slides, overlays, audio, captions) into an MP4. Jobs are asynchronous: create, then poll the status URL or receive a webhook.",
      "name": "renders"
    },
    {
      "description": "Media \u0026 Clips. Download any video link, transcribe it, or cut AI clips (vertical, square or horizontal) with captions. Included in paid plans and the trial; the Free plan includes one free job (a clips job of up to 3 clips, or a 60-second dub or auto edit).",
      "name": "media"
    },
    {
      "description": "AI motion videos. Describe a video and a team of AI agents makes it: script, scenes animated in code (kinetic type, UI, charts, particles), checked frame by frame, narrated, captioned, scored with music. With a site, they visit it in a browser and show it (a product demo).",
      "name": "motion"
    },
    {
      "description": "AI video. Generate video from a prompt, or restyle a short video. Available on Pro and Business.",
      "name": "ai-video"
    },
    {
      "description": "Tools. Synchronous helpers used in automations: re-host a file, extract audio or frames, compose an image.",
      "name": "tools"
    },
    {
      "description": "Assets. Your own images, videos and audio, uploaded once and used by link in renders (`src` fields) and in the editor. Stored for as long as you keep them: 500 MB on the Free plan, 10 GB on paid plans.",
      "name": "assets"
    },
    {
      "description": "Files. Every generated file is served from a signed link on our domain.",
      "name": "files"
    },
    {
      "description": "Account. Plans, prices and credit costs.",
      "name": "account"
    }
  ]
}
