defaultAn astronaut riding a rainbow unicorn
typetext
{
"apply_watermark": false,
"guidance_scale": 2,
"height": 768,
"high_noise_frac": 0.8,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth, disfigured, nsfw",
"num_inference_steps": 25,
"num_outputs": 1,
"prompt": "front shot, portrait photo of a 22 y.o woman, looks away, full lips, natural skin, skin moles, stormy weather, (cinematic, film grain:1.1)",
"prompt_strength": 0.8,
"refine": "base_image_refiner",
"scheduler": "DPM++_SDE_Karras",
"width": 768
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_YYC**********************************
This is your API token. Keep it to yourself.
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: {
apply_watermark: false,
guidance_scale: 2,
height: 768,
high_noise_frac: 0.8,
negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth, disfigured, nsfw",
num_inference_steps: 25,
num_outputs: 1,
prompt: "front shot, portrait photo of a 22 y.o woman, looks away, full lips, natural skin, skin moles, stormy weather, (cinematic, film grain:1.1)",
prompt_strength: 0.8,
refine: "base_image_refiner",
scheduler: "DPM++_SDE_Karras",
width: 768
}
}
);
// 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=r8_YYC**********************************
This is your API token. Keep it to yourself.
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={
"apply_watermark": False,
"guidance_scale": 2,
"height": 768,
"high_noise_frac": 0.8,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth, disfigured, nsfw",
"num_inference_steps": 25,
"num_outputs": 1,
"prompt": "front shot, portrait photo of a 22 y.o woman, looks away, full lips, natural skin, skin moles, stormy weather, (cinematic, film grain:1.1)",
"prompt_strength": 0.8,
"refine": "base_image_refiner",
"scheduler": "DPM++_SDE_Karras",
"width": 768
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_YYC**********************************
This is your API token. Keep it to yourself.
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": {
"apply_watermark": false,
"guidance_scale": 2,
"height": 768,
"high_noise_frac": 0.8,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth, disfigured, nsfw",
"num_inference_steps": 25,
"num_outputs": 1,
"prompt": "front shot, portrait photo of a 22 y.o woman, looks away, full lips, natural skin, skin moles, stormy weather, (cinematic, film grain:1.1)",
"prompt_strength": 0.8,
"refine": "base_image_refiner",
"scheduler": "DPM++_SDE_Karras",
"width": 768
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "yeznystbanzvrgaorzgcp4tgyu",
"model": "adirik/realvisxl-v3.0-turbo",
"version": "6e941e7fe46955afc031f35e84312a792d546b0f434f9008d457eb9deb24575c",
"input": {
"apply_watermark": false,
"guidance_scale": 2,
"height": 768,
"high_noise_frac": 0.8,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth, disfigured, nsfw",
"num_inference_steps": 25,
"num_outputs": 1,
"prompt": "front shot, portrait photo of a 22 y.o woman, looks away, full lips, natural skin, skin moles, stormy weather, (cinematic, film grain:1.1)",
"prompt_strength": 0.8,
"refine": "base_image_refiner",
"scheduler": "DPM++_SDE_Karras",
"width": 768
},
"logs": "Using seed: 29904\nPrompt: front shot, portrait photo of a 22 y.o woman, looks away, full lips, natural skin, skin moles, stormy weather, (cinematic, film grain:1.1)\ntxt2img mode\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:02, 8.42it/s]\n 8%|▊ | 2/25 [00:00<00:02, 8.30it/s]\n 12%|█▏ | 3/25 [00:00<00:02, 8.27it/s]\n 16%|█▌ | 4/25 [00:00<00:02, 8.25it/s]\n 20%|██ | 5/25 [00:00<00:02, 8.24it/s]\n 24%|██▍ | 6/25 [00:00<00:02, 8.26it/s]\n 28%|██▊ | 7/25 [00:00<00:02, 8.27it/s]\n 32%|███▏ | 8/25 [00:00<00:02, 8.28it/s]\n 36%|███▌ | 9/25 [00:01<00:01, 8.27it/s]\n 40%|████ | 10/25 [00:01<00:01, 8.27it/s]\n 44%|████▍ | 11/25 [00:01<00:01, 8.28it/s]\n 48%|████▊ | 12/25 [00:01<00:01, 8.28it/s]\n 52%|█████▏ | 13/25 [00:01<00:01, 8.27it/s]\n 56%|█████▌ | 14/25 [00:01<00:01, 8.28it/s]\n 60%|██████ | 15/25 [00:01<00:01, 8.28it/s]\n 64%|██████▍ | 16/25 [00:01<00:01, 8.29it/s]\n 68%|██████▊ | 17/25 [00:02<00:00, 8.29it/s]\n 72%|███████▏ | 18/25 [00:02<00:00, 8.28it/s]\n 76%|███████▌ | 19/25 [00:02<00:00, 8.28it/s]\n 80%|████████ | 20/25 [00:02<00:00, 8.27it/s]\n 84%|████████▍ | 21/25 [00:02<00:00, 8.27it/s]\n 88%|████████▊ | 22/25 [00:02<00:00, 8.27it/s]\n 92%|█████████▏| 23/25 [00:02<00:00, 8.26it/s]\n 96%|█████████▌| 24/25 [00:02<00:00, 8.26it/s]\n100%|██████████| 25/25 [00:03<00:00, 8.26it/s]\n100%|██████████| 25/25 [00:03<00:00, 8.27it/s]\n 0%| | 0/7 [00:00<?, ?it/s]\n 14%|█▍ | 1/7 [00:00<00:00, 7.99it/s]\n 29%|██▊ | 2/7 [00:00<00:00, 7.92it/s]\n 43%|████▎ | 3/7 [00:00<00:00, 7.89it/s]\n 57%|█████▋ | 4/7 [00:00<00:00, 7.87it/s]\n 71%|███████▏ | 5/7 [00:00<00:00, 7.86it/s]\n 86%|████████▌ | 6/7 [00:00<00:00, 7.84it/s]\n100%|██████████| 7/7 [00:00<00:00, 7.83it/s]\n100%|██████████| 7/7 [00:00<00:00, 7.86it/s]",
"output": [
"https://replicate.delivery/pbxt/B2UcLdiKDIpqLN2oezfq0It7rLuPz5HlreU7OCPM2xz0IOOkA/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-12-29T12:44:05.699088Z",
"started_at": "2023-12-29T12:44:05.705132Z",
"completed_at": "2023-12-29T12:44:10.690462Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/yeznystbanzvrgaorzgcp4tgyu/cancel",
"get": "https://api.replicate.com/v1/predictions/yeznystbanzvrgaorzgcp4tgyu"
},
"metrics": {
"predict_time": 4.98533,
"total_time": 4.991374
}
}