Run a Mod

Run the Generate Video Mod.

Hunyuan video generation model. Takes 3m on average. With high visual quality, text-video alignment, and generation.

POST
/mods/b8a48cd7-a79a-48f3-9481-860fcb5ea411/run
/mods/b8a48cd7-a79a-48f3-9481-860fcb5ea411/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/b8a48cd7-a79a-48f3-9481-860fcb5ea411/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "media_input": {
        "type": "text",
        "content": "Lorem ipsum dolor sit amet"
      }
    }
  }'

Success

{
  "type": "video",
  "url": "https://www.youtube.com/watch?v=V3rTaj7zdoc"
}