linoytsaban / linoy_lora

  • Public
  • 168 runs
  • L40S
  • SDXL fine-tune

Run linoytsaban/linoy_lora 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
Learn more about setup

Run linoytsaban/linoy_lora 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: "a hugging face emoji in the style of TOK, dressed as yoda",
    lora_scale: 0.8
};

const output = await replicate.run("linoytsaban/linoy_lora:6e68d04d64a29ce25df2002570d535b6582310304dd4360f15517c95f89033a7", { input });

import { writeFile } from "node:fs/promises";
for (const [index, item] of Object.entries(output)) {
  await writeFile(`output_${index}.png`, item);
}
//=> output_0.png written to disk
Learn more