Readme
Take a picture of your face and instantly get any profile picture you want. Only 1 photo, no training needed.
https://api.catioapps.com. Take a picture of your face and instantly get any profile picture you want. Only 1 photo, no training needed.
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run catio-apps/cog-photoaistudio-generate-v2-pro using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"catio-apps/cog-photoaistudio-generate-v2-pro:bd6e2354e39651808b1491cd39a763025a9614e17b09e58c3bab4b64f98a80a1",
{
input: {
width: 768,
gender: "male",
height: 1152,
prompt: "A photo of a person img",
num_steps: 20,
scheduler: "DPM++ SDE Karras",
style_name: "(No style)",
num_outputs: 1,
slider_zoom: 0.5,
slider_hands: 0.5,
slider_viewer: 5,
guidance_scale: 5,
enable_fix_face: true,
negative_prompt: "nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry",
slider_lighting: 2,
slider_add_detail: 2,
style_strength_ratio: 25
}
}
);
// 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.012 to run on Replicate, or 83 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 L40S GPU hardware. Predictions typically complete within 12 seconds. The predict time for this model varies significantly based on the inputs.
Take a picture of your face and instantly get any profile picture you want. Only 1 photo, no training needed.