Run a Mod

Run the Instruct Power Mod.

Create tailored solutions by simply describing what you need.

POST
/mods/7dfb790b-8029-4649-af2e-7726dcf4be54/run
/mods/7dfb790b-8029-4649-af2e-7726dcf4be54/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/7dfb790b-8029-4649-af2e-7726dcf4be54/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "chat_model": "gpt-4-mini",
      "media_input": {
        "type": "text",
        "content": "Lorem ipsum dolor sit amet"
      },
      "basic_prompt": "",
      "enhance_prompt": true
    }
  }'

Success

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