Prediction
gymdreams8/gdmjp4:396f5235ID
be7bvetbj5ygtmzrmp6yek2aoa
Status
Succeeded
Source
Web
Hardware
A40 (Large)
Total duration
Created
by @gymdreams8
Input
- width
- 1024
- height
- 1024
- prompt
- in the style of TOK, composition of a man with chaos,
- refine
- base_image_refiner
- scheduler
- DDIM
- lora_scale
- 1
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- 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
{
"width": 1024,
"height": 1024,
"prompt": "in the style of TOK, composition of a man with chaos, ",
"refine": "base_image_refiner",
"scheduler": "DDIM",
"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
}
Install Replicate’s Node.js client library:
npm install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:
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, ",
refine: "base_image_refiner",
scheduler: "DDIM",
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.
Install Replicate’s Python client library:
pip install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:
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, ",
"refine": "base_image_refiner",
"scheduler": "DDIM",
"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.
Set the
REPLICATE_API_TOKEN
environment variable:export 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, ",
"refine": "base_image_refiner",
"scheduler": "DDIM",
"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.
Output
{
"completed_at": "2023-09-24T06:13:52.921188Z",
"created_at": "2023-09-24T06:13:33.514801Z",
"data_removed": false,
"error": null,
"id": "be7bvetbj5ygtmzrmp6yek2aoa",
"input": {
"width": 1024,
"height": 1024,
"prompt": "in the style of TOK, composition of a man with chaos, ",
"refine": "base_image_refiner",
"scheduler": "DDIM",
"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": 19.214964,
"total_time": 19.406387
},
"output": [
"https://replicate.delivery/pbxt/XfrGl2c8GXxvAqj5rkwt7kjRUf5XbbT4SDBvEdEvO1AgWYnRA/out-0.png"
],
"started_at": "2023-09-24T06:13:33.706224Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/be7bvetbj5ygtmzrmp6yek2aoa",
"cancel": "https://api.replicate.com/v1/predictions/be7bvetbj5ygtmzrmp6yek2aoa/cancel"
},
"version": "396f5235412e4af69d4a5899ebe5c984dc6729590b461054da05bf57ac9d66c2"
}
Generated in