Run a Mod

Run the Stylized Image Creator Mod

Create an image from a text description and apply a style from another image.

POST
/mods/abb7e6f2-64a2-417a-bcd7-cd5053f7b0e1/run
/mods/abb7e6f2-64a2-417a-bcd7-cd5053f7b0e1/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/abb7e6f2-64a2-417a-bcd7-cd5053f7b0e1/run" \
  -H "API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "style_image": {
        "type": "image",
        "url": "https://endless.supabase.co/storage/v1/object/public/static/image.png"
      },
      "text_description": "string"
    }
  }'

Success

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