cjwbw / hasdx
mixed stable diffusion model
- Public
- 30K runs
-
T4
Run cjwbw/hasdx 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 cjwbw/hasdx using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
import { writeFile } from "fs/promises";
import Replicate from "replicate";
const replicate = new Replicate();
const input = {
prompt: "female, pale purple hair, frills, detailed skin, perfect face, fashion photography, photo realistic, 20 megapixel, canon eos r3, detailed skin, detailed, detailed face, (full body intricate, vibrant, photo realistic, realistic, dramatic, sharp focus, 8k)",
negative_prompt: "Asian, cartoon, 3d, (disfigured), (bad art), (deformed), (poorly drawn), (extra limbs), (close up), strange colors, blurry, boring, sketch, lackluster, big breast, large breast, huge breasts, face portrait, self-portrait, signature, letters, watermark",
num_inference_steps: "50"
};
const output = await replicate.run("cjwbw/hasdx:6d6e9b8c70d1447e946362d5c9060e42cb0f3e1ac122bdf725a0f3726cf67774", { input });
// To access the file URLs:
console.log(output[0].url());
//=> "https://replicate.delivery/.../output_0.png"
// To write the files to disk:
for (const [index, item] of Object.entries(output)) {
await writeFile(`output_${index}.png`, item);
}
//=> output_0.png written to disk