import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alt_text_lab: {
type: "app",
app: "alt_text_lab",
}
},
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.alt_text_lab.$auth.api_key}`,
},
data,
})
},
})
Alt Text Lab uses API keys for authentication. When you connect your Alt Text Lab account, Pipedream securely stores the keys so you can easily authenticate to Alt Text Lab APIs in both code and no-code steps.