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