Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SDXL to fal supported models (#1164)
Gave it a spin with: ```ts import { HfInference } from "@huggingface/inference"; import fs from "fs"; const hf = new HfInference("hf_xxxx"); async function callFalAiModel() { try { const result = await hf.textToImage({ provider: "fal-ai", model: "stabilityai/stable-diffusion-xl-base-1.0", inputs: "A cat in the shape of a hug smiley", }); console.log(result); const blob = new Blob([result], { type: "image/jpeg" }); const arrayBuffer = await blob.arrayBuffer(); const buffer = Buffer.from(arrayBuffer); fs.writeFileSync("output.jpg", buffer); console.log("Image saved to output.jpg"); } catch (error) { console.error("Error calling fal-ai/fast-sdxl model:", error); } } callFalAiModel(); ``` got ![output](https://github.com/user-attachments/assets/1f46f7ec-41b6-481d-9e75-5ac4233720a2)
- Loading branch information