chakify
/
flux-dev-lora-macintosh
- Public
- 115 runs
-
H100
Run chakify/flux-dev-lora-macintosh with an API
Use one of our client libraries to get started quickly.
Set the REPLICATE_API_TOKEN
environment variable
export REPLICATE_API_TOKEN=<paste-your-token-here>
Learn more about authentication
Install Replicate’s Node.js client library
npm install replicate
Run chakify/flux-dev-lora-macintosh using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
import Replicate from "replicate";
const replicate = new Replicate();
const input = {
prompt: "MACINTOSH on a table",
lora_scale: 1.5
};
const output = await replicate.run("chakify/flux-dev-lora-macintosh:825580af352493855b17b37659d6e5d50bb28ca85239ef66eb194fd047537ab0", { input });
import { writeFile } from "node:fs/promises";
for (const [index, item] of Object.entries(output)) {
await writeFile(`output_${index}.webp`, item);
}
//=> output_0.webp written to disk