Make images and videos in your Dify apps

Treza is a tool plugin for Dify. Add it to a workflow, a chatflow or an agent, and a prompt becomes a picture, a video clip or a run of one of your Treza pipelines. It is in review for the Dify Marketplace, and installs from GitHub today.

Treza plugin on GitHub

Free to add. You pay only for what you make.

Set it up in Dify

Install the plugin

Dify Cloud and self-hosted Dify. Who can install is set under Permissions on the Integrations page. A self-hosted Dify that only accepts signed plugins has to wait for the Marketplace listing.

  1. 1

    Install it from GitHub

    Open Integrations, press Install and pick GitHub. Paste the repository address and press Next.

    GitHub repository
    https://github.com/treza-labs/treza-dify-plugin
  2. 2

    Pick the version and install

    Under Select version pick the newest one, under Select package pick the .difypkg file, then press Next and Install. Dify takes a few minutes to set it up. Treza then shows under Integrations > Tools > Tool Plugin.

  3. 3

    Connect your Treza account

    Make a key on the Treza API keys page with the pipelines:read, pipelines:write and pipelines:run permissions. It starts with treza_live_. In Dify, open Treza under Tool Plugin, press API Key Authorization Configuration and paste the key.

  4. 4

    Add it to an app

    In a workflow or chatflow, add a node and pick a Treza action from the tools. In an agent, add Treza to the agent's tools and it makes the picture or clip a conversation asks for.

What the plugin does

  1. 1

    Generate an Image and Generate a Video

    Write the prompt, pick a shape, and for video a length. Set Max cost. The step waits for the render and returns the file, its link, the price and the model.

  2. 2

    Run a Pipeline

    Starts a pipeline you built in Treza with the inputs you pass in, and returns its finished file.

  3. 3

    Check a Render

    Looks a render up by its run ID. A video that takes longer than the step waits comes back as still rendering, with the run ID, and this picks it up. Free.

  4. 4

    Check Balance

    Shows the credits left on your Treza account and about how many videos that makes. Free.

Apps to start from

Each one is a Treza action between a start node and the step the result goes to.

A picture from a form

User input with a prompt field, then Treza Generate an Image, then the picture in the answer.

A clip written by a model

An LLM node turns a product page into a shot description, then Treza Generate a Video makes the clip in 9:16.

Your pipeline as one step

Treza Run a Pipeline with the topic from the start node as its input, then the finished video's link in the answer.

A tool for your agent

Add Generate an Image and Generate a Video to an agent, and it makes what the chat asks for, under the Max cost you set.

Questions

What does it cost?

The plugin is free. Renders spend prepaid credits from your Treza balance, with no subscription. Every paid action has a Max cost field: Treza prices the render first, and when the price is higher the action stops and nothing is spent.

Why is it not in the Dify Marketplace yet?

It was submitted in November 2026 and is in review. Until it is listed, Dify installs it from the plugin's GitHub releases, which hold the same package.

What about videos that take minutes?

Each action has a wait time, up to 9 minutes. A render still going after that comes back as still rendering with its run ID, not as an error, and nothing is started twice. Check a Render returns the file once it is done.

Do I need an API key?

Yes. A Dify app runs without you there, so it signs in with a key from the API keys page instead of with Google. Delete the key there to cut the app off.

Do my videos and credits carry over between apps?

Yes. Every app signs in to the same Treza account, so your library, your pipelines and your balance are the same in ChatGPT, Claude, Muse, Gemini, Cursor, Codex, Hermes Agent, Blender, n8n, Zapier, Dify, Gumloop and on trezalabs.com.

Dify is a trademark of LangGenius, Inc.. Treza is an independent product and is not affiliated with or endorsed by LangGenius, Inc..

Setup steps from Dify Docs: Integrations, Dify Docs: Tools.