import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
digitalocean_gradient_ai_serverless_inference: {
type: "app",
app: "digitalocean_gradient_ai_serverless_inference",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://inference.do-ai.run/v1/models`,
headers: {
Authorization: `Bearer ${this.digitalocean_gradient_ai_serverless_inference.$auth.api_key}`,
},
})
},
})
DigitalOcean GradientTM AI Serverless Inference uses API keys for authentication. When you connect your DigitalOcean GradientTM AI Serverless Inference account, Pipedream securely stores the keys so you can easily authenticate to DigitalOcean GradientTM AI Serverless Inference APIs in both code and no-code steps.