Run a Mod

Run the Image Filters Mod

Saturation, Grayscale, Blur, Brightness, Contrast, Hue Rotate, Invert, Opacity, Sepia. All the HTML image filters.

POST
/mods/773b0035-4f3a-4776-9afe-4bba055abebc/run
/mods/773b0035-4f3a-4776-9afe-4bba055abebc/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/773b0035-4f3a-4776-9afe-4bba055abebc/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "texture": {
        "type": "image",
        "url": "https://endless.supabase.co/storage/v1/object/public/static/image.png"
      },
      "blur_slider": 0,
      "sepia_slider": 0,
      "texture_size": "cover",
      "width_slider": 1080,
      "height_slider": 1080,
      "invert_slider": 0,
      "opacity_slider": 100,
      "contrast_slider": 100,
      "texture_opacity": 100,
      "grayscale_slider": 0,
      "texture_position": "center",
      "brightness_slider": 100,
      "hue_rotate_slider": 0,
      "saturation_slider": 100,
      "blend_mode_dropdown": "overlay",
      "media_JlWwLWW52nlwkIgbQmPbP": {
        "type": "image",
        "url": "https://endless.supabase.co/storage/v1/object/public/static/image.png"
      }
    }
  }'

Success

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