defaultRAW photo, a portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3
typetext
{
"guidance_scale": 7.5,
"height": 728,
"negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
"prompt": "RAW photo, a portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3",
"scheduler": "K_EULER_ANCESTRAL",
"seed": 36636,
"steps": 20,
"strength": 1,
"use_karras_sigmas": false,
"width": 512
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_0Wj**********************************
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 asiryan/realistic-vision-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"asiryan/realistic-vision-v4:ab95e6c0257b69e816ea2bb0b15dcfed7e75b98d85df804bfa9526a40375ad29",
{
input: {
guidance_scale: 7.5,
height: 728,
negative_prompt: "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
prompt: "RAW photo, a portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3",
scheduler: "K_EULER_ANCESTRAL",
seed: 36636,
steps: 20,
strength: 1,
use_karras_sigmas: false,
width: 512
}
}
);
// 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=r8_0Wj**********************************
This is your API token. Keep it to yourself.
import replicate
Run asiryan/realistic-vision-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"asiryan/realistic-vision-v4:ab95e6c0257b69e816ea2bb0b15dcfed7e75b98d85df804bfa9526a40375ad29",
input={
"guidance_scale": 7.5,
"height": 728,
"negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
"prompt": "RAW photo, a portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3",
"scheduler": "K_EULER_ANCESTRAL",
"seed": 36636,
"steps": 20,
"strength": 1,
"use_karras_sigmas": False,
"width": 512
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.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_0Wj**********************************
This is your API token. Keep it to yourself.
Run asiryan/realistic-vision-v4 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": "asiryan/realistic-vision-v4:ab95e6c0257b69e816ea2bb0b15dcfed7e75b98d85df804bfa9526a40375ad29",
"input": {
"guidance_scale": 7.5,
"height": 728,
"negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
"prompt": "RAW photo, a portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3",
"scheduler": "K_EULER_ANCESTRAL",
"seed": 36636,
"steps": 20,
"strength": 1,
"use_karras_sigmas": false,
"width": 512
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "6sdm3ktbnip63eyibwsyrhbjum",
"model": "asiryan/realistic-vision-v4",
"version": "ab95e6c0257b69e816ea2bb0b15dcfed7e75b98d85df804bfa9526a40375ad29",
"input": {
"guidance_scale": 7.5,
"height": 728,
"negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
"prompt": "RAW photo, a portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3",
"scheduler": "K_EULER_ANCESTRAL",
"seed": 36636,
"steps": 20,
"strength": 1,
"use_karras_sigmas": false,
"width": 512
},
"logs": "Scheduler: K_EULER_ANCESTRAL\nUsing karras sigmas: False\nUsing seed: 36636\nToken indices sequence length is longer than the specified maximum sequence length for this model (104 > 77). Running this sequence through the model will result in indexing errors\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:09, 1.96it/s]\n 15%|█▌ | 3/20 [00:00<00:02, 5.69it/s]\n 25%|██▌ | 5/20 [00:00<00:01, 8.64it/s]\n 35%|███▌ | 7/20 [00:00<00:01, 10.90it/s]\n 45%|████▌ | 9/20 [00:00<00:00, 12.57it/s]\n 55%|█████▌ | 11/20 [00:01<00:00, 13.81it/s]\n 65%|██████▌ | 13/20 [00:01<00:00, 14.69it/s]\n 75%|███████▌ | 15/20 [00:01<00:00, 15.32it/s]\n 85%|████████▌ | 17/20 [00:01<00:00, 15.78it/s]\n 95%|█████████▌| 19/20 [00:01<00:00, 16.13it/s]\n100%|██████████| 20/20 [00:01<00:00, 12.24it/s]",
"output": "https://replicate.delivery/pbxt/kPBIMqksQfVpT6i17pV7iqgi6KeAdSO7GgCk6xuPqD6dPw2RA/output.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-11-09T21:38:57.720462Z",
"started_at": "2023-11-09T21:40:42.938072Z",
"completed_at": "2023-11-09T21:40:46.632664Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/6sdm3ktbnip63eyibwsyrhbjum/cancel",
"get": "https://api.replicate.com/v1/predictions/6sdm3ktbnip63eyibwsyrhbjum"
},
"metrics": {
"predict_time": 3.694592,
"total_time": 108.912202
}
}