import EmbedAPIClient from "@embedapi/core";
export default defineComponent({
props: {
embedapi: {
type: "app",
app: "embedapi",
}
},
async run({ steps, $ }) {
const client = new EmbedAPIClient(this.embedapi.$auth.api_key);
return await client.listModels();
},
})
EmbedAPI uses API keys for authentication. When you connect your EmbedAPI account, Pipedream securely stores the keys so you can easily authenticate to EmbedAPI APIs in both code and no-code steps.