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.
gymdreams8 /gdmjp4:396f5235
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport 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 gymdreams8/gdmjp4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"gymdreams8/gdmjp4:396f5235412e4af69d4a5899ebe5c984dc6729590b461054da05bf57ac9d66c2",
{
input: {
width: 1024,
height: 1024,
prompt: "in the style of TOK, composition of a man with chaos, imaginative, surreal, creative, artistic, grit",
refine: "base_image_refiner",
scheduler: "KarrasDPM",
lora_scale: 1,
num_outputs: 1,
guidance_scale: 7.5,
apply_watermark: false,
high_noise_frac: 0.8,
negative_prompt: "monochrome, black and white, over saturation, nsfw, signature, three men, four men, too many hands, children, kids",
prompt_strength: 0.8,
num_inference_steps: 50
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run gymdreams8/gdmjp4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"gymdreams8/gdmjp4:396f5235412e4af69d4a5899ebe5c984dc6729590b461054da05bf57ac9d66c2",
input={
"width": 1024,
"height": 1024,
"prompt": "in the style of TOK, composition of a man with chaos, imaginative, surreal, creative, artistic, grit",
"refine": "base_image_refiner",
"scheduler": "KarrasDPM",
"lora_scale": 1,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": False,
"high_noise_frac": 0.8,
"negative_prompt": "monochrome, black and white, over saturation, nsfw, signature, three men, four men, too many hands, children, kids",
"prompt_strength": 0.8,
"num_inference_steps": 50
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run gymdreams8/gdmjp4 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": "396f5235412e4af69d4a5899ebe5c984dc6729590b461054da05bf57ac9d66c2",
"input": {
"width": 1024,
"height": 1024,
"prompt": "in the style of TOK, composition of a man with chaos, imaginative, surreal, creative, artistic, grit",
"refine": "base_image_refiner",
"scheduler": "KarrasDPM",
"lora_scale": 1,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "monochrome, black and white, over saturation, nsfw, signature, three men, four men, too many hands, children, kids",
"prompt_strength": 0.8,
"num_inference_steps": 50
}
}' \
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
{
"completed_at": "2023-09-24T06:03:00.554673Z",
"created_at": "2023-09-24T06:02:40.823853Z",
"data_removed": false,
"error": null,
"id": "afnfscdbeledk4tjlzmmt2mzfm",
"input": {
"width": 1024,
"height": 1024,
"prompt": "in the style of TOK, composition of a man with chaos, imaginative, surreal, creative, artistic, grit",
"refine": "base_image_refiner",
"scheduler": "KarrasDPM",
"lora_scale": 1,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "monochrome, black and white, over saturation, nsfw, signature, three men, four men, too many hands, children, kids",
"prompt_strength": 0.8,
"num_inference_steps": 50
},
"logs": null,
"metrics": {
"predict_time": 18.997722,
"total_time": 19.73082
},
"output": [
"https://replicate.delivery/pbxt/XzEtGNtATK4QJR5R1hwRwHEWfcl41IJ8vCIyCxfFvFXUMYnRA/out-0.png"
],
"started_at": "2023-09-24T06:02:41.556951Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/afnfscdbeledk4tjlzmmt2mzfm",
"cancel": "https://api.replicate.com/v1/predictions/afnfscdbeledk4tjlzmmt2mzfm/cancel"
},
"version": "396f5235412e4af69d4a5899ebe5c984dc6729590b461054da05bf57ac9d66c2"
}