fogside
/
rpm_characters_concepts
Consistent view characters with ControlNet and Stable Diffusion fine-tuned on Ready Player Me characters based on OpenJourneyV4
Run fogside/rpm_characters_concepts 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 fogside/rpm_characters_concepts 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: "male, man wizard, purple and gold, shiny amulets, wide shoulders, whimsical outfit, a magician from the world of warcraft, elfen leader, fairytale hero, glowing mushroom fantasy forest landscape, dark light night",
body_type: "masculine"
};
const output = await replicate.run("fogside/rpm_characters_concepts:146f3bdcb8cc985c67b5b27e000ac6fff6951e3f9165fdfd48925d0c8636aa2d", { 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