openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/model:
post:
summary: 创建模型
deprecated: false
description: ''
tags:
- 模型接口/语音克隆
parameters:
- name: Accept
in: header
description: ''
required: true
example: application/json
schema:
type: string
default: application/json
- name: Authorization
in: header
description: ''
required: true
example: sk-
schema:
type: string
default: sk-
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
type:
description: 模型的类型,tts为文转声音
example: tts
type: string
title:
description: 模型的标题或名字
example: ''
type: string
train_mode:
description: 模型训练模式,对于TTS模型,fast意味着模型创建后立即可用
example: fast
type: string
voices:
format: binary
type: string
description: 上传用于训练模型的语音文件
example: ''
visibility:
type: string
enum:
- public
- unlist
- private
x-apifox-enum:
- value: public
name: ''
description: ''
- value: unlist
name: ''
description: ''
- value: private
name: ''
description: ''
description: 模型可见性,public将在发现页面显示,unlist允许任何拥有链接的人访问,private仅创建者可见
example: ''
description:
description: 模型描述
example: ''
type: string
cover_image:
format: binary
type: string
description: 模型封面,如果可见性为public此项为必须项
example: ''
texts:
description: 对应语音的文本,如果未指定,将对语音进行自动语音识别(ASR)
example: ''
type: string
tags:
description: 模型标签
example: ''
type: string
enhance_audio_quality:
description: 提升音频质量
example: ''
type: string
required:
- type
- title
- train_mode
- voices
examples: {}
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example:
_id: <string>
type: svc
title: <string>
description: <string>
cover_image: <string>
state: created
tags:
- <string>
created_at: '2023-11-07T05:31:56Z'
updated_at: '2023-11-07T05:31:56Z'
visibility: public
like_count: 123
mark_count: 123
shared_count: 123
task_count: 123
author:
_id: <string>
nickname: <string>
avatar: <string>
train_mode: full
samples: []
languages: []
lock_visibility: false
unliked: false
liked: false
marked: false
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/语音克隆
x-apifox-status: developing
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-402238064-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []