with Lokalise and Runware?
Request an image background removal task to be processed by the Runware API. See the documentation
Retrieves and downloads files from a specified Lokalise project. 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
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lokalise: {
type: "app",
app: "lokalise",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lokalise.com/api2/projects`,
headers: {
Authorization: `Bearer ${this.lokalise.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
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,
})
},
})