Typeframes
    Typeframes
    • KEY
    • Create video from text
      POST
    • Create video from slides
      POST
    • Create video from url
      POST
    • Get slides
      POST
    • Create TikTok video from text
      POST

      Create video from url

      开发环境
      开发环境
      POST
      /api/public/render
      Parameters:
      text: the only required parameter. The url to scrap to generate the video.
      speed: fast, medium or slow. Default is fast.
      audio: url of an audio file. Should be mp3. Default is "dont-blink".
      compression: low, medium or high. Default is medium.
      frameDurationMultiplier: increase this parameter to increase all the frame durations.
      resolution: default is "720p"
      width: defult is "1280". Change this to change the aspect ratio.
      height: defult is "720". Change this to change the aspect ratio.
      frameRate: default is 60.
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/api/public/render' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "url": "https://tweethunter.io",
          "audio": "https://typeframes.s3.amazonaws.com/audio/dont-blink.mp3", // optional
          "compression": "medium", // optional
          "frameDurationMultiplier": 1, // optional
          "resolution": "720p", // optional
          "frameRate": 60 //optional
      }'
      响应示例响应示例
      {}

      请求参数

      Body 参数application/json
      url
      string 
      必需
      audio
      string 
      必需
      compression
      string 
      必需
      frameDurationMultiplier
      integer 
      必需
      resolution
      string 
      必需
      frameRate
      integer 
      必需
      示例

      返回响应

      🟢200成功
      application/json
      Body
      object {0}
      修改于 2024-03-27 06:28:10
      上一页
      Create video from slides
      下一页
      Get slides
      Built with