Run a Mod

Run the Advanced Text to Speech Modulator Mod

Convert text into expressive speech with advanced modulation controls for advertising jingles and expressive voiceovers.

POST
/mods/40436989-3dba-415d-8bc0-f7ce8906ff35/run
/mods/40436989-3dba-415d-8bc0-f7ce8906ff35/run

The Authorization access token

Authorization

X-API-Key<token>

API key. Example: "X-API-Key": "<apiKey>"

In: header

Authorization
Required
Bearer <token>

Session token. Example: "Authorization": "Bearer <token>"

In: header

Request Body

application/jsonRequired

parameters
Required
object

curl -X POST "https://api.endless.io/v1/mods/40436989-3dba-415d-8bc0-f7ce8906ff35/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "pitch": 5,
      "speed": 5,
      "timbre": "soft",
      "volume": 5,
      "text_input": "",
      "voice_type": "pNInz6obpgDQGcFmaJgB",
      "voice_accent": "mexico",
      "voice_gender": "male",
      "emotional_tone": "neutral"
    }
  }'

Success

{
  "type": "audio",
  "url": "https://endless.supabase.co/storage/v1/object/public/static/audio.m4a"
}