The Generated Photos API lets developers generate realistic photos of people and products. This can be useful for creating stock photos, or for building applications that require lifelike images of people or products.
Here are some examples of what you can build with the Generated Photos API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
generated_photos: {
type: "app",
app: "generated_photos",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.generated.photos/api/v1/faces?per_page=1`,
params: {
api_key: `${this.generated_photos.$auth.api_key}`,
},
})
},
})
Generated Photos uses API keys for authentication. When you connect your Generated Photos account, Pipedream securely stores the keys so you can easily authenticate to Generated Photos APIs in both code and no-code steps.