Run a Mod

Run the Text to Image Creator Mod

Transform your text descriptions into stunning images with customizable styles and aspect ratios.

POST
/mods/51e7d04f-7a9e-4838-a655-1cb24bbdf26b/run
/mods/51e7d04f-7a9e-4838-a655-1cb24bbdf26b/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/51e7d04f-7a9e-4838-a655-1cb24bbdf26b/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "enhance": false,
      "image_style": "(No style)",
      "aspect_ratio": "square_hd",
      "text_description": ""
    }
  }'

Success

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