Run a Mod

Run the Generate Image Mod.

Transform text, audio, and video content into stunning visual representations and captivating illustrations.

POST
/mods/ea23c37e-93b0-4768-9af9-c6c72761c44a/run
/mods/ea23c37e-93b0-4768-9af9-c6c72761c44a/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/ea23c37e-93b0-4768-9af9-c6c72761c44a/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "style": "(No style)",
      "image_size": "square_hd",
      "media_input": {
        "type": "text",
        "content": "Lorem ipsum dolor sit amet"
      },
      "enhance_prompt": false
    }
  }'

Success

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