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