Readme
…
Model description
…
Intended use
…
Ethical considerations
…
Caveats and recommendations
…
diana girl
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run genekogan/diana using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"genekogan/diana:4f904b6353cd32c127a6980e1d397f05c7ed275e6da4d3987f92cdbe324890f2",
{
input: {
width: 512,
height: 512,
prompt: "a cjw cat in a bucket",
num_outputs: 1,
guidance_scale: 7.5,
num_inference_steps: 50
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
No output yet! Press "Submit" to start a prediction.
This model costs approximately $0.0059 to run on Replicate, or 169 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia T4 GPU hardware. Predictions typically complete within 27 seconds.
…
…
…
…
…