You're looking at a specific version of this model. Jump to the model overview.
adirik /realvisxl-v3.0-turbo:6e941e7f
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 adirik/realvisxl-v3.0-turbo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"adirik/realvisxl-v3.0-turbo:6e941e7fe46955afc031f35e84312a792d546b0f434f9008d457eb9deb24575c",
{
input: {
width: 768,
height: 768,
prompt: "RAW photo of sweaty Pikachu as a real character, film grain,sweaty face, extreme detailed face,angry, sharp teeth,as gore movie,gruesome:1.0",
refine: "no_refiner",
scheduler: "DPM++_SDE_Karras",
num_outputs: 1,
guidance_scale: 2,
apply_watermark: false,
high_noise_frac: 0.8,
negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
prompt_strength: 0.8,
num_inference_steps: 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.
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 adirik/realvisxl-v3.0-turbo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"adirik/realvisxl-v3.0-turbo:6e941e7fe46955afc031f35e84312a792d546b0f434f9008d457eb9deb24575c",
input={
"width": 768,
"height": 768,
"prompt": "RAW photo of sweaty Pikachu as a real character, film grain,sweaty face, extreme detailed face,angry, sharp teeth,as gore movie,gruesome:1.0",
"refine": "no_refiner",
"scheduler": "DPM++_SDE_Karras",
"num_outputs": 1,
"guidance_scale": 2,
"apply_watermark": False,
"high_noise_frac": 0.8,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
)
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 adirik/realvisxl-v3.0-turbo 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": "adirik/realvisxl-v3.0-turbo:6e941e7fe46955afc031f35e84312a792d546b0f434f9008d457eb9deb24575c",
"input": {
"width": 768,
"height": 768,
"prompt": "RAW photo of sweaty Pikachu as a real character, film grain,sweaty face, extreme detailed face,angry, sharp teeth,as gore movie,gruesome:1.0",
"refine": "no_refiner",
"scheduler": "DPM++_SDE_Karras",
"num_outputs": 1,
"guidance_scale": 2,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
}' \
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-12-29T13:13:14.883647Z",
"created_at": "2023-12-29T13:08:40.767668Z",
"data_removed": false,
"error": null,
"id": "4anz3u3bp2pjycq2tswxy5tuuu",
"input": {
"width": 768,
"height": 768,
"prompt": "RAW photo of sweaty Pikachu as a real character, film grain,sweaty face, extreme detailed face,angry, sharp teeth,as gore movie,gruesome:1.0",
"refine": "no_refiner",
"scheduler": "DPM++_SDE_Karras",
"num_outputs": 1,
"guidance_scale": 2,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
"prompt_strength": 0.8,
"num_inference_steps": 25
},
"logs": "Using seed: 11531\nPrompt: RAW photo of sweaty Pikachu as a real character, film grain,sweaty face, extreme detailed face,angry, sharp teeth,as gore movie,gruesome:1.0\ntxt2img mode\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:15, 1.56it/s]\n 8%|▊ | 2/25 [00:00<00:07, 2.97it/s]\n 12%|█▏ | 3/25 [00:00<00:05, 4.19it/s]\n 16%|█▌ | 4/25 [00:01<00:04, 5.20it/s]\n 20%|██ | 5/25 [00:01<00:03, 5.98it/s]\n 24%|██▍ | 6/25 [00:01<00:02, 6.58it/s]\n 28%|██▊ | 7/25 [00:01<00:02, 7.03it/s]\n 32%|███▏ | 8/25 [00:01<00:02, 7.36it/s]\n 36%|███▌ | 9/25 [00:01<00:02, 7.60it/s]\n 40%|████ | 10/25 [00:01<00:01, 7.76it/s]\n 44%|████▍ | 11/25 [00:01<00:01, 7.88it/s]\n 48%|████▊ | 12/25 [00:01<00:01, 7.96it/s]\n 52%|█████▏ | 13/25 [00:02<00:01, 8.03it/s]\n 56%|█████▌ | 14/25 [00:02<00:01, 8.07it/s]\n 60%|██████ | 15/25 [00:02<00:01, 8.09it/s]\n 64%|██████▍ | 16/25 [00:02<00:01, 8.13it/s]\n 68%|██████▊ | 17/25 [00:02<00:00, 8.13it/s]\n 72%|███████▏ | 18/25 [00:02<00:00, 8.13it/s]\n 76%|███████▌ | 19/25 [00:02<00:00, 8.13it/s]\n 80%|████████ | 20/25 [00:02<00:00, 8.13it/s]\n 84%|████████▍ | 21/25 [00:03<00:00, 8.14it/s]\n 88%|████████▊ | 22/25 [00:03<00:00, 8.14it/s]\n 92%|█████████▏| 23/25 [00:03<00:00, 8.15it/s]\n 96%|█████████▌| 24/25 [00:03<00:00, 8.15it/s]\n100%|██████████| 25/25 [00:03<00:00, 8.15it/s]\n100%|██████████| 25/25 [00:03<00:00, 6.98it/s]",
"metrics": {
"predict_time": 5.835323,
"total_time": 274.115979
},
"output": [
"https://replicate.delivery/pbxt/dpq1OwVuJsbPClN79ttca0e0I8L8flQWrs7Vumeq6JRVfdcIB/out-0.png"
],
"started_at": "2023-12-29T13:13:09.048324Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/4anz3u3bp2pjycq2tswxy5tuuu",
"cancel": "https://api.replicate.com/v1/predictions/4anz3u3bp2pjycq2tswxy5tuuu/cancel"
},
"version": "6e941e7fe46955afc031f35e84312a792d546b0f434f9008d457eb9deb24575c"
}
Using seed: 11531
Prompt: RAW photo of sweaty Pikachu as a real character, film grain,sweaty face, extreme detailed face,angry, sharp teeth,as gore movie,gruesome:1.0
txt2img mode
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:15, 1.56it/s]
8%|▊ | 2/25 [00:00<00:07, 2.97it/s]
12%|█▏ | 3/25 [00:00<00:05, 4.19it/s]
16%|█▌ | 4/25 [00:01<00:04, 5.20it/s]
20%|██ | 5/25 [00:01<00:03, 5.98it/s]
24%|██▍ | 6/25 [00:01<00:02, 6.58it/s]
28%|██▊ | 7/25 [00:01<00:02, 7.03it/s]
32%|███▏ | 8/25 [00:01<00:02, 7.36it/s]
36%|███▌ | 9/25 [00:01<00:02, 7.60it/s]
40%|████ | 10/25 [00:01<00:01, 7.76it/s]
44%|████▍ | 11/25 [00:01<00:01, 7.88it/s]
48%|████▊ | 12/25 [00:01<00:01, 7.96it/s]
52%|█████▏ | 13/25 [00:02<00:01, 8.03it/s]
56%|█████▌ | 14/25 [00:02<00:01, 8.07it/s]
60%|██████ | 15/25 [00:02<00:01, 8.09it/s]
64%|██████▍ | 16/25 [00:02<00:01, 8.13it/s]
68%|██████▊ | 17/25 [00:02<00:00, 8.13it/s]
72%|███████▏ | 18/25 [00:02<00:00, 8.13it/s]
76%|███████▌ | 19/25 [00:02<00:00, 8.13it/s]
80%|████████ | 20/25 [00:02<00:00, 8.13it/s]
84%|████████▍ | 21/25 [00:03<00:00, 8.14it/s]
88%|████████▊ | 22/25 [00:03<00:00, 8.14it/s]
92%|█████████▏| 23/25 [00:03<00:00, 8.15it/s]
96%|█████████▌| 24/25 [00:03<00:00, 8.15it/s]
100%|██████████| 25/25 [00:03<00:00, 8.15it/s]
100%|██████████| 25/25 [00:03<00:00, 6.98it/s]