Model
Create Model
POST
/
model
Since this endpoint requires uploading file, it only accepts multipart/form-data
and application/msgpack
.
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
visibility
enum<string>
default: publicModel 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>
requiredModel type, tts is for text to speech
Available options:
tts
title
string
requiredModel 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>
requiredModel 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: falseEnhance audio quality
Response
201 - application/json
_id
string
requiredtype
enum<string>
requiredAvailable options:
svc
, tts
title
string
requireddescription
string
requiredcover_image
string
requiredtrain_mode
enum<string>
default: fullAvailable options:
fast
, full
state
enum<string>
requiredAvailable options:
created
, training
, trained
, failed
tags
string[]
requiredsamples
object[]
created_at
string
requiredupdated_at
string
requiredlanguages
string[]
visibility
enum<string>
requiredAvailable options:
public
, unlist
, private
lock_visibility
boolean
default: falselike_count
integer
requiredmark_count
integer
requiredshared_count
integer
requiredtask_count
integer
requiredliked
boolean
default: falsemarked
boolean
default: falseauthor
object
required