Spiritme
  1. batch-video-templates
Spiritme
  • avatars
    • avatars_list
      GET
  • batch-video-templates
    • batch_video_templates_list
      GET
    • batch_video_templates_create
      POST
    • batch_video_templates_retrieve
      GET
  • batch-videos
    • batch_videos_list
      GET
    • batch_videos_create
      POST
    • batch_videos_retrieve
      GET
  • files
    • files_list
      GET
    • files_create
      POST
    • files_retrieve
      GET
    • files_destroy
      DELETE
    • files_children_list
      GET
  • schema
    • schema_retrieve
      GET
  • tts
    • tts_languages_list
      GET
    • tts_voices_list
      GET
  • users
    • users_current_retrieve
      GET
    • users_current_destroy
      DELETE
  • videos
    • videos_list
      GET
    • videos_create
      POST
    • videos_retrieve
      GET
    • videos_update
      PUT
    • videos_destroy
      DELETE
    • videos_publish_create
      POST
  1. batch-video-templates

batch_video_templates_create

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/api/batch-video-templates/
batch-video-templates
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/batch-video-templates/' \
--header 'Authorization;' \
--data-urlencode 'avatar=' \
--data-urlencode 'voice=' \
--data-urlencode 'text='
响应示例响应示例
{
    "id": 0,
    "avatar": {
        "id": 0,
        "name": "string",
        "preview": "http://example.com",
        "frame_width": 0,
        "frame_height": 0
    },
    "voice": {
        "id": 0,
        "name": "string",
        "label": "string",
        "provider": "amazon",
        "sex": "male",
        "language": "string",
        "language_code": "string"
    },
    "text": "string",
    "background": {
        "id": 0,
        "name": "string",
        "tag": "general",
        "file": "http://example.com",
        "compressed_file": "http://example.com",
        "width": 0,
        "height": 0
    }
}

请求参数

Header 参数
Authorization
string 
必需
默认值:
Token <api-key>
Body 参数application/x-www-form-urlencoded
avatar
object (AvatarNestedRequest) 
必需
id
integer 
必需
voice
object (TTSVoiceNestedRequest) 
必需
id
integer 
必需
text
string 
必需
>= 1 字符
background
null  | allOf {1} 
可选
object (MediaFileNestedRequest) 
可选
File of type image or video.

返回响应

🟢201成功
application/json
Body
id
integer 
只读必需
avatar
object (AvatarNested) 
必需
id
integer 
必需
name
string 
只读必需
preview
string <uri>
只读必需
frame_width
integer 
只读必需
frame_height
integer 
只读必需
voice
object (TTSVoiceNested) 
必需
id
integer 
必需
name
string 
只读必需
label
string 
只读必需
provider
enum<string> 
只读必需
枚举值:
amazonazuredescriptgoogleelevenlabs
sex
enum<string> 
只读必需
枚举值:
malefemale
language
string 
只读必需
language_code
string 
只读必需
text
string 
必需
background
null  | allOf {1} 
可选
object (MediaFileNested) 
可选
File of type image or video.
修改于 2024-03-28 09:50:16
上一页
batch_video_templates_list
下一页
batch_video_templates_retrieve
Built with