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