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,
})
},
})
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
Runware uses API keys for authentication. When you connect your Runware account, Pipedream securely stores the keys so you can easily authenticate to Runware APIs in both code and no-code steps.