Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Shotstack for Dify

Render video, image and audio from JSON or saved templates with the Shotstack API, from a Dify workflow, chatflow or agent.

Set up

  1. Copy your Production API key from the Shotstack dashboard. Renders use credits from your Shotstack account.
  2. In Dify, open the Shotstack plugin, click Authorize and paste the key.

Tools

Tool What it does
Render From JSON Renders a file from a Shotstack edit (a timeline and an output) and returns the URL.
Render Template Renders a template saved in your account and fills its placeholders with merge fields.
Get Render Status Checks a render by ID and returns its status and, when done, the URL.
List Templates Lists your templates (ID, name, last updated), newest first.

Both render tools can wait for the file (on by default, up to 300 seconds) or return the render ID straight away. Each tool returns JSON and a text summary for agents. The render and status tools also return one variable per field (id, status, url) for workflows.

Renders with AI assets can take several minutes. For those, turn Wait off on the render step and add Get Render Status after it with Wait on and Dify's Retry on failure enabled. Don't turn on retries for a render step: each retry starts, and bills, a new render.

Example

A workflow with a Start node, a Render From JSON node and an End node that outputs url. Paste this into Edit:

{"timeline":{"tracks":[{"clips":[{"asset":{"type":"title","text":"Hello from Dify","style":"minimal"},"start":0,"length":3}]}]},"output":{"format":"mp4","resolution":"sd"}}

In an agent, add the four tools and ask for a video. The edit format is in the Shotstack docs.

Connection

The plugin makes HTTPS requests to api.shotstack.io and nothing else. It needs a Shotstack API key and no other setup.

Notes

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages