AltText.ai

Automatically generate alt text for images in over 130 languages. Improve SEO and site accessibility. Integrations for WordPress, Shopify, web, CMS, and more.

Integrate the AltText.ai API with the Bash API

Setup the AltText.ai API trigger to run a workflow which integrates with the Bash API. Pipedream's integration platform allows you to integrate AltText.ai and Bash remarkably fast. Free for developers.

Generate Alt Text with the AltText.ai API

Generates a descriptive alt text for a given image. See the documentation

 
Try it
Run Bash Code with the Bash API

Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.

 
Try it

Overview of AltText.ai

AltText.ai provides an API that leverages artificial intelligence to generate alternative text (alt text) for images, which is crucial for web accessibility and SEO. With AltText.ai, you can automate the process of creating descriptive, keyword-rich, and meaningful alt text for images on websites, blogs, or online stores. In Pipedream, you can create workflows that trigger on various events to send images to the AltText.ai API and receive alt text, which you can then store or apply to your content management system automatically.

Connect AltText.ai

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    alttext_ai: {
      type: "app",
      app: "alttext_ai",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://alttext.ai/api/v1/account`,
      headers: {
        "X-API-Key": `${this.alttext_ai.$auth.api_key}`,
      },
    })
  },
})

Connect Bash

1
2
3
4
5
6
7
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id

# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS