LetzAI icon

CONNECT APP

Build with LetzAI

Create what you love. LetzAI is the AI to which you can add yourself, your products and your style.

Artificial Intelligence (AI)

  • API key

MCP

Give your agent LetzAI tools

Every LetzAI action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's LetzAI account for each tool call — you store no tokens.

// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": "{project_id}",
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "letzai",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Image Edit:
const result = await mcp.callTool({
  name: "letzai-create-image-edit",
  arguments: {
    mode: "Mode",
    originalImageCompletionId: "Original Image Completion ID",
  },
})

SDK

Run LetzAI actions from your backend

Connect a user's LetzAI account once, then run Create Image Edit on their behalf from your own code — TypeScript, Python, or plain HTTP.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "letzai-create-image-edit",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    letzai: { authProvisionId: "apn_xxxxxxx" },
    mode: "Mode",
    originalImageCompletionId: "Original Image Completion ID",
  },
})

REFERENCE

App details

Reference metadata for the LetzAI connector in the Pipedream registry.

App slug
letzai
Authentication
API key
Categories
Artificial Intelligence (AI)
Actions
3
Triggers
2
API proxy
Not available