Run a Mod

Run the Inpainting Mod.

Inpainting

POST
/mods/823dba5d-1d7e-4aab-99e1-3864050e618c/run
/mods/823dba5d-1d7e-4aab-99e1-3864050e618c/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/823dba5d-1d7e-4aab-99e1-3864050e618c/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "prompt": "string",
      "mask_image_url": "string",
      "inpaint_image_url": "string"
    }
  }'

Success

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