POST
/
model

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

Authorizations

Authorization
string
headerrequired

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

Body

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
type
enum<string>
required

Model type, tts is for text to speech

Available options:
tts
title
string
required

Model title or name

description
string | null

Model description

cover_image
file | null

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

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

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
_id
string
required
type
enum<string>
required
Available options:
svc,
tts
title
string
required
description
string
required
cover_image
string
required
train_mode
enum<string>
default: full
Available options:
fast,
full
state
enum<string>
required
Available options:
created,
training,
trained,
failed
tags
string[]
required
samples
object[]
created_at
string
required
updated_at
string
required
languages
string[]
visibility
enum<string>
required
Available options:
public,
unlist,
private
lock_visibility
boolean
default: false
like_count
integer
required
mark_count
integer
required
shared_count
integer
required
task_count
integer
required
liked
boolean
default: false
marked
boolean
default: false
author
object
required