Run a Mod

Run the Segmented Audio to Image Prompts Mod

Convert audio into three distinct image prompts representing the beginning, middle, and end of the audio content.

POST
/mods/16ef4fe9-76ae-431b-ab32-f3f4cb4a9060/run
/mods/16ef4fe9-76ae-431b-ab32-f3f4cb4a9060/run

The Authorization access token

Authorization

API-Key<token>

API key. Example: "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/16ef4fe9-76ae-431b-ab32-f3f4cb4a9060/run" \
  -H "API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "audio_input": {
        "type": "audio",
        "url": "https://endless.supabase.co/storage/v1/object/public/static/audio.m4a"
      }
    }
  }'

Success

{
  "type": "text",
  "content": "Lorem ipsum dolor sit amet"
}