Elai
  1. OpenAI GPT-3.5 增强功能
Elai
  • 简介
  • 个性化 API
    • 创建个性化视频
    • 渲染/创建个性化批次
      POST
  • 视频 API
    • 创建视频
      • 创建视频
      • 来自模板
      • 来自 PPTX/PPT
      • 复制视频
      • 翻译视频
    • 渲染视频
      POST
    • 列出视频
      GET
    • 检索视频
      GET
    • 更新视频
      PATCH
    • 删除视频
      DELETE
  • 故事 API
    • 概述
    • OpenAI GPT-3.5 增强功能
      • 通过 GPT 从头生成
        POST
      • 增强整个视频
        POST
      • 增强特定幻灯片
        POST
    • 生成/创建故事
      POST
    • 生成幻灯片/转换故事
      POST
  • 头像 API
    • 概述
    • 头像列表
      GET
    • 更新头像
      PATCH
    • 创建照片头像
      POST
  • 用户 API
    • 列出用户
      GET
    • 邀请用户
      POST
    • 更新用户
      PATCH
    • 删除用户
      DELETE
  • 语言 API
    • 语言/声音列表
    • 获取大致持续时间
  • 实时 API
    • 实时 API 概览(测试版)
    • 创建流
    • 检索流
    • 开始流
    • 提交 webRTC 候选
    • 渲染文本
    • 关闭流
  • WEBHOOK
    • Webhook 概述
    • 订阅
    • 取消订阅
    • 设置秘密令牌
  • 上传媒体
    • 检索签名 URL
    • 确认上传
  1. OpenAI GPT-3.5 增强功能

增强特定幻灯片

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/api/v1/gpt/{videoId}/{slideId}
此端点提供了一系列由 GPT-3.5 支持的文本增强功能,适用于视频中的特定幻灯片。

基础增强#

更改文本的大小和/或样式
引人入胜
专业的
更快乐
更短
更长
改写

复杂增强功能#

增强描述
添加错过的文本如果您需要在视频故事中添加缺失的标题/列表/语音,我们的 API 可以准确识别并插入缺失的文本。它可确保视频的视觉元素与内容保持一致。

为幻灯片添加遗漏的文字#

请求主体示例
{
  "enhancement": "add-missed-texts"
}

请求参数

Path 参数

Header 参数

Body 参数application/json

示例

返回响应

🟢200成功
application/json
Body

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/v1/gpt//' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'content-type: application/json' \
--data-raw '{
  "enhancement": "engaging"
}'
响应示例响应示例
{
  "_id": "647636a7188cde31c4ca79b0",
  "name": "Video about cats",
  "type": "story",
  "data": {
    "musicVolume": 0.31,
    "musicName": "Dance with Me",
    "musicUrl": "https://elai-media.s3.eu-west-2.amazonaws.com/music/mixkit-dance-with-me-3.mp3",
    "templateType": "text-to-video",
    "resolution": "FullHD"
  },
  "slides": [
    {
      "id": 751418507861,
      "speech": "Cats are absolutely pawsome and are undoubtedly one of the most adored pets worldwide! Despite their reputation for being aloof and challenging to approach, with some tender-loving care and patience, these amazing furballs can turn into the most loving and affectionate companions. Whether you're a devoted cat lover or simply have a soft spot for all things feline, this delightful video is sure to provide you with an abundance of fun and enlightening information about our furry friends' behavior. Purrrfect!",
      "avatar": {
        "id": "grace.regular",
        "name": "Casual",
        "gender": "female",
        "gif": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/grace_regular.gif",
        "thumbnail": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/grace_regular.jpg",
        "canvas": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/grace_regular.png",
        "tilt": {
          "left": 0.02
        }
      },
      "voiceType": "text",
      "animation": "fade_in",
      "transition": "wiperight",
      "hasAvatar": false,
      "status": "story",
      "story": {
        "templateSlideId": 1545484228994,
        "header": "Introduction of cats",
        "subHeader": "Learn more about cats and their unpredictable behavior in this informative and entertaining video.",
        "images": [
          {
            "src": "https://images.pexels.com/photos/4458423/pexels-photo-4458423.jpeg?auto=compress&cs=tinysrgb&h=650&w=940&withcors",
            "url": "https://images.pexels.com/photos/4458423/pexels-photo-4458423.jpeg?auto=compress&cs=tinysrgb&h=650&w=940&withcors",
            "thumbnail": "https://images.pexels.com/photos/4458423/pexels-photo-4458423.jpeg?auto=compress&cs=tinysrgb&dpr=1&fit=crop&h=200&w=280&withcors",
            "alt": "Photo of Woman Saying Hi Through Laptop",
            "size": {
              "width": 940,
              "height": 627,
              "type": "jpg",
              "mime": "image/jpeg",
              "wUnits": "px",
              "hUnits": "px",
              "length": 73890,
              "url": "https://images.pexels.com/photos/4458423/pexels-photo-4458423.jpeg?auto=compress&cs=tinysrgb&h=650&w=940&withcors"
            },
            "orientation": "landscape"
          }
        ]
      },
      "voiceProvider": "azure",
      "language": "English"
    },
    {
      "id": 1056633432430,
      "speech": "How exciting! Did you know that there are over a hundred incredible different breeds of cats? Each one has their very own adorable quirks and lovable personalities. From the lively American Shorthair to the sophisticated Siamese, you're sure to find the perfect feline friend for you. Are you in need of a cuddly lap kitty or an adventurous companion? Fear not, because there is an ideal breed that'll fit your lifestyle perfectly! Come and explore all of these fabulous feline breeds and their special characteristics in this absolutely delightful video about cats.",
      "avatar": {
        "id": "grace.regular",
        "name": "Casual",
        "gender": "female",
        "gif": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/grace_regular.gif",
        "thumbnail": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/grace_regular.jpg",
        "canvas": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/grace_regular.png",
        "tilt": {
          "left": 0.02
        }
      },
      "voiceType": "text",
      "animation": "fade_in",
      "transition": "wiperight",
      "hasAvatar": false,
      "status": "story",
      "story": {
        "templateSlideId": 622968629002,
        "header": "Different breeds of cats",
        "subHeader": "",
        "images": [
          {
            "src": "https://images.pexels.com/photos/15665454/pexels-photo-15665454.jpeg?auto=compress&cs=tinysrgb&h=650&w=940&withcors",
            "url": "https://images.pexels.com/photos/15665454/pexels-photo-15665454.jpeg?auto=compress&cs=tinysrgb&h=650&w=940&withcors",
            "thumbnail": "https://images.pexels.com/photos/15665454/pexels-photo-15665454.jpeg?auto=compress&cs=tinysrgb&dpr=1&fit=crop&h=200&w=280&withcors",
            "alt": "Free stock photo of abandoned, animal, architecture",
            "size": {
              "width": 940,
              "height": 627,
              "type": "jpg",
              "mime": "image/jpeg",
              "wUnits": "px",
              "hUnits": "px",
              "length": 91161,
              "url": "https://images.pexels.com/photos/15665454/pexels-photo-15665454.jpeg?auto=compress&cs=tinysrgb&h=650&w=940&withcors"
            },
            "orientation": "landscape"
          }
        ]
      },
      "voiceProvider": "azure",
      "language": "English"
    },
    {
      "id": 1216272967058,
      "speech": "Cats are famous for their cheerful nature! They adore chasing, bounding, and romping around with toys. Observing a cat frolic is always a delightful sight. Certain cats like to frolic with their owners, while others prefer to merrily amuse themselves. From playful kittens to lively adults, felines are usually overflowing with enthusiasm! Ensuring that they have enough toys and playtime is critical to their happiness and health.",
      "avatar": {
        "id": "grace.regular",
        "name": "Casual",
        "gender": "female",
        "gif": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/grace_regular.gif",
        "thumbnail": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/grace_regular.jpg",
        "canvas": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/grace_regular.png",
        "tilt": {
          "left": 0.02
        }
      },
      "voiceType": "text",
      "animation": "fade_in",
      "transition": "wiperight",
      "hasAvatar": false,
      "status": "story",
      "story": {
        "templateSlideId": 1112423380257,
        "header": "Playful nature of cats",
        "subHeader": "",
        "list": [
          "Playful cats love to pounce!",
          "Watching cats play is so entertaining.",
          "Keep your cat happy with playtime."
        ]
      },
      "voiceProvider": "azure",
      "language": "English"
    }
  ],
  "tags": [
    "gpt"
  ],
  "deleted": false,
  "status": "draft",
  "verified": false,
  "public": false,
  "parentFolderDeleted": false,
  "sourceId": "62fce6d72d9f12469acae24f",
  "userId": "627a7bfac1806e45fa2ab26f",
  "accountId": "627a7bfac1806e45fa2ab270",
  "createdAt": "2023-05-30T17:47:19.801Z",
  "updatedAt": "2023-05-30T17:50:17.375Z",
  "__v": 3
}
修改于 2024-06-12 06:49:56
上一页
增强整个视频
下一页
生成/创建故事
Built with