Node package manager
Emit new event with the latest count of downloads for an npm package. See the documentation.
Emit new event when a new version of an npm package is published. See the documentation
Request an image background removal task to be processed by the Runware API. See the documentation.
Request an image caption task to be processed by the Runware API. See the documentation.
Request an image control net preprocess task to be processed by the Runware API. See the documentation.
Request an image inference task to be processed by the Runware API. See the documentation.
Request an image upscale task to be processed by the Runware API. See the documentation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
runware: {
type: "app",
app: "runware",
}
},
async run({steps, $}) {
const data = [
{
"taskType": "authentication",
"apiKey": `${this.runware.$auth.api_key}`
},
{
"taskType": "imageCaption",
"taskUUID": "11eb6a8b-1fa9-447f-9dc0-c48576f7074e", //random UUID to identify your task.
"inputImage": "https://pipedream.com/s.v0/app_13GhYE/logo/orig"
}
]
return await axios($, {
method: "post",
url: `https://api.runware.ai/v1`,
data,
})
},
})