with npm and AltTextLab?
Emit new event with the latest count of downloads for an npm package. See the documentation
Emit new event when a new version of an npm package is published. See the documentation
Generates alt text for images using AI. See the documentation
AltTextLab's API provides powerful AI-generated alternative text for images - enhancing SEO, accessibility, and automation workflows. With Pipedream, you can create workflows that generate alt text for images automatically, connect it with your CMS or e-commerce platform. Pipedream’s serverless architecture lets you trigger these workflows on events, schedules, or incoming webhooks without maintaining your own infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    alttextlab: {
      type: "app",
      app: "alttextlab",
    }
  },
  async run({steps, $}) {
    const data = {
      "imageUrl": `https://pipedream.com/s.v0/app_13GhYE/logo/orig`,
    }
    return await axios($, {
      method: "post",
      url: `https://app.alttextlab.com/api/v1/alt-text/generate`,
      headers: {
        "x-api-key": `${this.alttextlab.$auth.api_key}`,
      },
      data,
    })
  },
})