Skip to main content
POST
Create Model for Users via API
Since this endpoint uploads files, use multipart/form-data for regular REST requests. Let your HTTP client set the multipart Content-Type boundary automatically.

Authorizations

Authorization
string
header
required

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

Body

type
string
required

Model type, tts is for text to speech

Allowed value: "tts"
title
string
required

Model title or name

train_mode
string
required

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

Allowed value: "fast"
voices
required

Upload voices files that will be used to tune the model

Required array length: 1 - 20 elements
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

Maximum array length: 20
tags

Model tags

enhance_audio_quality
boolean
default:true

Enhance audio quality

generate_sample
boolean
default:false

Generate default text

Response

Document created, URL follows

_id
string
required
type
enum<string>
required
Available options:
svc,
tts
title
string
required
state
enum<string>
required
Available options:
created,
training,
trained,
failed
tags
string[]
required
created_at
string<date-time>
required
updated_at
string<date-time>
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
AuthorEntity · object
required
description
string
default:""
cover_image
string
default:""
train_mode
enum<string>
default:full
Available options:
fast,
full
samples
SampleEntity · object[]
languages
string[]
lock_visibility
boolean
default:false
dmca_taken_down
boolean | null
default:false
default_text
string
default:""
source
string | null
pvc_release_state
enum<string> | null
Available options:
released,
retiring
pvc_notice_period_months
integer | null
pvc_released_at
string<date-time> | null
pvc_retire_requested_at
string<date-time> | null
pvc_retire_effective_at
string<date-time> | null
quality
ModelQualityEntity · object | null
unliked
boolean
default:false
liked
boolean
default:false
marked
boolean
default:false