Subspace Institute

StepFun API

Generates speech audio from the provided text using StepFun Text-to-Speech service

POST
/tts-stepfun

Request Body

application/jsonOptional
textRequiredstring
Minimum length: 1Maximum length: 1024
voicestring

Desired voice. Either voice_id or timber_weights must be given as part of the parameters. Both system voice ids and cloned voice ids are supported

Default: "male-qn-qingse"
tokenRequiredstring

StepFun API key for authentication

Minimum length: 1
volumenumber

Volume of the speech

Minimum: 0.1Maximum: 2
modelstring

The model to be used for the speech

curl -X POST "https://tts-relay.laplace.cn/laplace/tts-stepfun" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "感谢ドラゴンラプラスWeChat的SC:一发sc没被念到我就冷汗直流心跳加速头皮发麻双手痉挛两腿打颤,还不好意思刷弹幕说你漏了,我好怕你看到了装作没看到。我的sc通常很短只有一小时,只有短短的3600秒,但它存在的时候,我会用心跳来为它倒数。私のBANを解除してください。もう二度とスパムしません😭",
    "voice": "male-qn-qingse",
    "token": "string",
    "volume": 0.1,
    "model": "string"
  }'

Audio file containing the generated speech

null