Studio by AI21 Labs icon

CONNECT APP

Build with Studio by AI21 Labs

AI21 Studio provides API access to Jurassic-1 large-language-models. Our models power text generation and comprehension features in thousands of live applications.

Artificial Intelligence (AI)

  • API key

MCP

Give your agent Studio by AI21 Labs tools

Every Studio by AI21 Labs 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 Studio by AI21 Labs 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": "studio_by_ai21_labs",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()
// Every tool arrives with its own input schema — run one with mcp.callTool().

API PROXY

Call the Studio by AI21 Labs API directly

For an endpoint with no pre-built tool, the Connect proxy forwards your request to the Studio by AI21 Labs API with the connected user's credentials attached. You store no tokens and write no refresh logic.

const resp = await pd.proxy.get({
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  accountId: "apn_xxxxxxx",
  url: "https://api.ai21.com/studio/v1/experimental/summarize",
})

// Any allowed Studio by AI21 Labs endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.

SDK

Run Studio by AI21 Labs actions from your backend

Connect a user's Studio by AI21 Labs account once, then discover and run its tools 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 tools = await pd.components.list({
  app: "studio_by_ai21_labs",
  componentType: "action",
})

TOOLS

Studio by AI21 Labs actions

On-demand operations your product or agent can configure and run on behalf of a connected user.

No Studio by AI21 Labs actions are available yet.

EVENTS

Studio by AI21 Labs triggers

Event sources your backend can deploy for users and receive through a webhook.

No Studio by AI21 Labs triggers are available yet.

REFERENCE

App details

Reference metadata for the Studio by AI21 Labs connector in the Pipedream registry.

App slug
studio_by_ai21_labs
Authentication
API key
Categories
Artificial Intelligence (AI)
Actions
0
Triggers
0
API proxy
Available