View as Markdown
AltTextLab icon

AltTextLab ACTION

Generate Alt Text

Generates alt text for images using AI. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's AltTextLab account once, then configure and run Generate Alt Text from your backend or agent.

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: "alttextlab-generate-alt-text",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    alttextlab: { authProvisionId: "apn_xxxxxxx" },
    imageUrl: "Image URL",
    lang: "Language",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Generate Alt Text inputs
Property Type Description
imageUrl Image URL string
Provide the direct URL to the image you want to generate alt text for. Make sure the link is publicly accessible (not behind a login or firewall).
Required
lang Language string
Enter the language code for the alt text generation (e.g., "en" for English, "fr" for French). See the full list of supported languages
Required
style AI writing styles string
Alt-text writing styles define the tone, structure, and level of detail used to describe an image. Learn more
Required
keywords Keywords string[]
Enter one or more keywords to alt text generation. Separate multiple keywords with commas. Example: cat, window, sunset.
Optional
ecommerceProduct Ecommerce Product Name string
The name of the product.
Optional
ecommerceBrand Ecommerce Product Brand string
The brand of the product.
Optional
ecommerceColor Ecommerce Product Color string
The color of the product.
Optional
ecommerceMaterial Ecommerce Product Material string
The material of the product.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
alttextlab-generate-alt-text
Version
0.0.3
App
AltTextLab
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes