POST
/
model
{
  "_id": "<string>",
  "type": "svc",
  "title": "<string>",
  "description": "<string>",
  "cover_image": "<string>",
  "train_mode": "full",
  "state": "created",
  "tags": [
    "<string>"
  ],
  "samples": [],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "languages": [],
  "visibility": "public",
  "lock_visibility": false,
  "like_count": 123,
  "mark_count": 123,
  "shared_count": 123,
  "task_count": 123,
  "unliked": false,
  "liked": false,
  "marked": false,
  "author": {
    "_id": "<string>",
    "nickname": "<string>",
    "avatar": "<string>"
  }
}

Since this endpoint requires uploading file, it only accepts multipart/form-data and application/msgpack.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

type
enum<string>
required

Model type, tts is for text to speech

Available options:
tts
title
string
required

Model title or name

train_mode
enum<string>
required

Model train mode, for TTS model, fast means model instantly available after creation

Available options:
fast
voices
required

Upload voices files that will be used to tune the model

visibility
enum<string>
default:
public

Model visibility, public will be shown in the discovery page, unlist allows anyone with the link to access, private only be visible to the creator

Available options:
public,
unlist,
private
description
string | null

Model description

cover_image
file | null

Model cover image, this is required if the model is public

texts

Texts corresponding to the voices, if unspecified, ASR will be performed on the voices

tags

Model tags

enhance_audio_quality
boolean
default:
false

Enhance audio quality

Response

201
application/json
Document created, URL follows
_id
string
required
type
enum<string>
required
Available options:
svc,
tts
title
string
required
description
string
required
cover_image
string
required
state
enum<string>
required
Available options:
created,
training,
trained,
failed
tags
string[]
required
created_at
string
required
updated_at
string
required
visibility
enum<string>
required
Available options:
public,
unlist,
private
like_count
integer
required
mark_count
integer
required
shared_count
integer
required
task_count
integer
required
author
object
required
train_mode
enum<string>
default:
full
Available options:
fast,
full
samples
object[]
languages
string[]
lock_visibility
boolean
default:
false
unliked
boolean
default:
false
liked
boolean
default:
false
marked
boolean
default:
false