import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
replicate: {
type: "app",
app: "replicate",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.replicate.com/v1/predictions`,
headers: {
"Authorization": `Token ${this.replicate.$auth.api_key}`,
},
})
},
})
Cancel a specific prediction identified by Id. See the documentation
Get a specific prediction identified by Id. See the documentation
Replicate uses API keys for authentication. When you connect your Replicate account, Pipedream securely stores the keys so you can easily authenticate to Replicate APIs in both code and no-code steps.
Sign in and copy your API key directly from your dashboard.