Get Started

Make videos with Treza in Grok

Add Treza to Grok Build, the coding app that used to be Cursor, or give Grok one MCP tool in an xAI API request. Grok can then make videos, build video pipelines and price a render before it spends anything.

https://www.trezalabs.com/api/mcp

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

Set it up in Grok

Grok Build

  1. 1

    Add the server

    Put this in ~/.cursor/mcp.json, or .cursor/mcp.json in a project, and restart Grok Build. Grok Build kept Cursor's config files, so a Treza server you added in Cursor is already there.

    mcp.json
    {
      "mcpServers": {
        "treza": {
          "url": "https://www.trezalabs.com/api/mcp"
        }
      }
    }
  2. 2

    Sign in

    The first time the agent uses Treza, Grok Build sends you to Treza to sign in with Google and approve access.

Grok API

Needs an xAI API key and a Treza API key. Run it on your server, so neither key reaches a browser.

  1. 1

    Make a Treza key

    Make a key on the Treza API keys page with the pipelines:read, pipelines:write and pipelines:run permissions. It starts with treza_live_. Set it as TREZA_API_KEY.

  2. 2

    Give Grok the Treza tools

    Add Treza's server to the request's tools. Grok calls it from xAI's side, so your Treza key travels with the request. allowed_tool_names keeps Grok to the tools a clip needs.

    Python (xai-sdk)
    import os
    from xai_sdk import Client
    from xai_sdk.chat import user
    from xai_sdk.tools import mcp
    
    client = Client(api_key=os.getenv("XAI_API_KEY"))
    chat = client.chat.create(
        model="grok-4.7",
        tools=[
            mcp(
                server_url="https://www.trezalabs.com/api/mcp",
                server_label="treza",
                extra_headers={"Authorization": f"Bearer {os.getenv('TREZA_API_KEY')}"},
                allowed_tool_names=["make_video", "make_image", "run_pipeline", "get_run", "get_credit_balance"],
            ),
        ],
    )
    chat.append(user("Use Treza to make a 4 second vertical clip of a fox in snow. Spend at most $1."))
    print(chat.sample().content)
  3. 3

    Pick up a long render

    A video can take a few minutes. If Grok answers before it is done, ask again with the run's ID and it calls get_run for the finished file.

Then ask for it the way you would say it

Attach a file or paste a link when the video starts from something you have.

A launch video

Use Treza to make a 20 second launch video for this app from the screenshots in ./marketing

A daily channel

Build a Treza pipeline that turns each new post in our RSS feed into a narrated Short, and schedule it daily

A clip with a limit

Use Treza to make a 6 second vertical clip of a paper boat in the rain. Spend at most $1.

A price first

What would one run of my Daily Short pipeline cost?

Questions

Is Grok Build the same app as Cursor?

Yes. Cursor was renamed Grok Build on November 30, 2026. It still reads Cursor's mcp.json files, so the Cursor setup works unchanged.

Who approves the price when Grok runs it through the API?

Nobody clicks Start render there, so Grok calls the tools itself. Treza still prices every render before it starts and refuses one your balance does not cover, and when your prompt names a limit, Grok can pass it as maxPriceUsd and Treza refuses a render over it.

Can it post the video to my channel?

A pipeline can end with a YouTube or TikTok upload step and post on its own schedule. Posting one video straight from the chat, after you check it on a review card, works in ChatGPT and Claude.

What does it cost?

Adding Treza and signing in are free. Videos spend prepaid credits from your Treza balance, with no subscription, and Treza shows what a render costs and waits for your go-ahead before it starts.

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, Mistral Vibe, Replit, Cursor, Grok Build, Codex, Hermes Agent, Blender, n8n, Make, Zapier, Dify, Langflow, Flowise, Gumloop and on trezalabs.com.

Do I need an API key?

Not where the app can sign in for you: it sends you to Treza to sign in with Google and approve access, and no key goes into the chat or a config file. Apps that only take a key, and tools that run without a person, use a scoped key from the API keys page.

Treza in other apps

ChatGPT

In ChatGPT's plugin directory. Add it and mention @Treza in any chat.

Set it up->

Claude

A custom connector in the Claude app, or the Treza plugin in Claude Code.

Set it up->

Muse

Ask Muse to build a Treza connector, or add Treza to Muse Code.

Set it up->

Gemini

A custom app in the Gemini app, or a server in Antigravity CLI.

Set it up->

Mistral Vibe

A custom connector in Mistral Vibe, formerly Le Chat.

Set it up->

Replit

One click adds Treza to Replit Agent.

Set it up->

Cursor

One click adds Treza to Cursor's agent, now called Grok Build.

Set it up->

Codex

From the plugin catalog in the ChatGPT app, or one command in Codex CLI.

Set it up->

Hermes Agent

A few lines in ~/.hermes/config.yaml and one login command.

Set it up->

Blender

An add-on that turns your camera view into AI renders and video clips.

Set it up->

n8n

A verified node that makes images and videos inside your workflows.

Set it up->

Make

Modules that make images and videos in your Make scenarios.

Set it up->

Zapier

Steps that make images and videos in your Zaps. In beta.

Set it up->

Dify

A tool plugin that makes images and videos in your workflows and agents.

Set it up->

ComfyUI

Nodes that make images and videos in your graphs, with no GPU needed.

Set it up->

LangChain

Python tools that let an agent make images and videos, with a price cap.

Set it up->

LlamaIndex

A tool spec that lets an agent make images and videos, with a price cap.

Set it up->

CrewAI

Tools that let the agents in a crew make images and videos, with a price cap.

Set it up->

Vercel AI SDK

TypeScript tools that let a model make images and videos, with a price cap.

Set it up->

Langflow

Components that make images and videos in a flow or for an Agent, with a price cap.

Set it up->

Flowise

A Custom MCP tool for Flowise agents, signed in with an API key.

Set it up->

Gumloop

A custom MCP server that lets your agents make images and videos.

Set it up->

Any MCP client

One URL for every client that speaks Streamable HTTP MCP.

Set it up->

Grok is a trademark of xAI. Treza is an independent product and is not affiliated with or endorsed by xAI.

Setup steps from Grok Build MCP help, xAI docs: Remote MCP tools.