Train your own AI on documents, images, or text data to perform daily, repetitive tasks so your team can reach the next level of productivity
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
levity: {
type: "app",
app: "levity",
}
},
async run({steps, $}) {
const data = {
"url": `{replace_with_image_url}`,
}
return await axios($, {
method: "post",
url: `https://api.levity.ai/v1/classifiers/{your_classifier_id}/classify/`,
headers: {
"Authorization": `Token ${this.levity.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
Levity uses API keys for authentication. When you connect your Levity account, Pipedream securely stores the keys so you can easily authenticate to Levity APIs in both code and no-code steps.
To retrieve your API keys,