Run a Mod

Run the podcast generator Mod.

Generate a brief podcast from any content

POST
/mods/34dd5689-df8b-4be7-8e1a-e42292158d1f/run
/mods/34dd5689-df8b-4be7-8e1a-e42292158d1f/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/34dd5689-df8b-4be7-8e1a-e42292158d1f/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "voice_id": "pNInz6obpgDQGcFmaJgB",
      "media_input": {
        "type": "text",
        "content": "Lorem ipsum dolor sit amet"
      }
    }
  }'

Success

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