with fal.ai and All-Images.ai?
Emit new event when the generation status of an image gets updated.
Adds a request to the queue for asynchronous processing, including specifying a webhook URL for receiving updates. See the documentation
Allows user to purchase an image and receive a direct public link. User must have sufficient credit balance. See the documentation
Cancels a request in the queue. This allows you to stop a long-running task if it's no longer needed. See the documentation
Generates advanced customized images using a prompt from the user. See the documentation
Gets the response of a completed request in the queue. This retrieves the results of your asynchronous task. See the documentation
import { fal } from "@fal-ai/client"
export default defineComponent({
props: {
fal_ai: {
type: "app",
app: "fal_ai",
}
},
async run({ steps, $ }) {
fal.config({
credentials: `${this.fal_ai.$auth.api_key}`,
});
const result = await fal.subscribe("fal-ai/lora", {
input: {
model_name: "stabilityai/stable-diffusion-xl-base-1.0",
prompt:
"Photo of a rhino dressed suit and tie sitting at a table in a bar with a bar stools, award winning photography, Elke vogelsang",
},
logs: true,
});
return result;
},
})
The All-Images.ai API serves as a tool for processing images through AI-driven methods. With this API, you can enhance images, deblur them, remove backgrounds, and much more. All-Images.ai becomes more powerful when integrated into Pipedream’s serverless platform, allowing you to automate image processing in workflows that connect with other apps. You can trigger workflows with HTTP requests, email, and over 800 Pipedream-supported apps. These automations can save time and enhance productivity, especially for tasks involving bulk image processing or real-time image manipulation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
all_images_ai: {
type: "app",
app: "all_images_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.all-images.ai/v1/credit`,
headers: {
"Accept": `application/json`,
"api-key": `${this.all_images_ai.$auth.api_key}`,
},
})
},
})