Run a Mod

Run the War Scene Image Creator Mod

Create and refine a war scene image using text prompts and reference images for artistic styling.

POST
/mods/0a66a26b-0213-49ff-be61-f6a7dfb53e4b/run
/mods/0a66a26b-0213-49ff-be61-f6a7dfb53e4b/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/0a66a26b-0213-49ff-be61-f6a7dfb53e4b/run" \
  -H "API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "style": "photorealistic",
      "text_prompt": "",
      "reference_image": {
        "type": "image",
        "url": "https://endless.supabase.co/storage/v1/object/public/static/image.png"
      }
    }
  }'

Success

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