Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
joetm /camerabooth-openpose-style:e08be321
Input
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 joetm/camerabooth-openpose-style using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"joetm/camerabooth-openpose-style:e08be3215f6bdd5520da65d3d6a39c9bb70ff594ae6fe07a0640563bd6594fe4",
{
input: {
seed: 0,
steps: 50,
prompt: "",
clip_mode: "best",
n_samples: 1,
add_prompt: "",
neg_prompt: "(((nsfw))), (((text))), (((words))), ((low quality)), worst quality, bad quality, ((bad art)), lowres, ((disfigured)), ((deformed)), ((mutilated)), glitch, ((distorted)), malformed, mutated, (((disfigured))), misaligned, poorly drawn, (((blurry))), ((blurred)), mutated, bad arms, ((extra limbs)), missing arms, missing legs, disconnected limbs, bad hands, ((poorly drawn hands)), ((poorly drawn face)), deformed hands, ((extra fingers)), ((extra legs)), fused fingers, (too many fingers), mutated hands, amputated limbs, no arms, extra arms, multiple arms, more than two legs, long neck, bad proportions, longbody, bad anatomy, missing fingers, extra digit, fewer digits, deformed eyes, poorly drawn eyes, cross-eye, bad skin, multiple, duplicated, by Bad Artist, monochrome, monotone, grayscale, b&w, sketches, speech bubble, signature, watermark, border, logo, ((morbid)), canvas frame, frame, 3d",
face_enhance: true,
style_weight: 1,
detect_prompt: true,
guidance_scale: 7.5,
upscale_factor: 2,
openpose_weight: 1
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip 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
Run joetm/camerabooth-openpose-style using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"joetm/camerabooth-openpose-style:e08be3215f6bdd5520da65d3d6a39c9bb70ff594ae6fe07a0640563bd6594fe4",
input={
"seed": 0,
"steps": 50,
"prompt": "",
"clip_mode": "best",
"n_samples": 1,
"add_prompt": "",
"neg_prompt": "(((nsfw))), (((text))), (((words))), ((low quality)), worst quality, bad quality, ((bad art)), lowres, ((disfigured)), ((deformed)), ((mutilated)), glitch, ((distorted)), malformed, mutated, (((disfigured))), misaligned, poorly drawn, (((blurry))), ((blurred)), mutated, bad arms, ((extra limbs)), missing arms, missing legs, disconnected limbs, bad hands, ((poorly drawn hands)), ((poorly drawn face)), deformed hands, ((extra fingers)), ((extra legs)), fused fingers, (too many fingers), mutated hands, amputated limbs, no arms, extra arms, multiple arms, more than two legs, long neck, bad proportions, longbody, bad anatomy, missing fingers, extra digit, fewer digits, deformed eyes, poorly drawn eyes, cross-eye, bad skin, multiple, duplicated, by Bad Artist, monochrome, monotone, grayscale, b&w, sketches, speech bubble, signature, watermark, border, logo, ((morbid)), canvas frame, frame, 3d",
"face_enhance": True,
"style_weight": 1,
"detect_prompt": True,
"guidance_scale": 7.5,
"upscale_factor": 2,
"openpose_weight": 1
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run joetm/camerabooth-openpose-style using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "joetm/camerabooth-openpose-style:e08be3215f6bdd5520da65d3d6a39c9bb70ff594ae6fe07a0640563bd6594fe4",
"input": {
"seed": 0,
"steps": 50,
"prompt": "",
"clip_mode": "best",
"n_samples": 1,
"add_prompt": "",
"neg_prompt": "(((nsfw))), (((text))), (((words))), ((low quality)), worst quality, bad quality, ((bad art)), lowres, ((disfigured)), ((deformed)), ((mutilated)), glitch, ((distorted)), malformed, mutated, (((disfigured))), misaligned, poorly drawn, (((blurry))), ((blurred)), mutated, bad arms, ((extra limbs)), missing arms, missing legs, disconnected limbs, bad hands, ((poorly drawn hands)), ((poorly drawn face)), deformed hands, ((extra fingers)), ((extra legs)), fused fingers, (too many fingers), mutated hands, amputated limbs, no arms, extra arms, multiple arms, more than two legs, long neck, bad proportions, longbody, bad anatomy, missing fingers, extra digit, fewer digits, deformed eyes, poorly drawn eyes, cross-eye, bad skin, multiple, duplicated, by Bad Artist, monochrome, monotone, grayscale, b&w, sketches, speech bubble, signature, watermark, border, logo, ((morbid)), canvas frame, frame, 3d",
"face_enhance": true,
"style_weight": 1,
"detect_prompt": true,
"guidance_scale": 7.5,
"upscale_factor": 2,
"openpose_weight": 1
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
No output yet! Press "Submit" to start a prediction.