with npm and Leonardo AI?
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
Generates new images using Leonardo AI's image generation API. See the documentation
Generates a motion (video) from the provided image using Leonardo AI's SVD Motion Generation API. See the documentation
Creates an unzoom variation for a generated or variation image using Leonardo AI's unzoom API. See the documentation
Uploads a new image to Leonardo AI for use in generations and variations. See the documentation
Creates a high-resolution upscale of the provided image using Leonardo AI's upscale API. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
leonardo_ai: {
type: "app",
app: "leonardo_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://cloud.leonardo.ai/api/rest/v1/me`,
headers: {
Authorization: `Bearer ${this.leonardo_ai.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})