adirik
/
realvisxl-v4.0-lightning
Photorealism with RealVisXL V4.0 Lightning
Prediction
adirik/realvisxl-v4.0-lightning:2ef27001ID2i2uhd3brzqcplm5lvi5n7zjkuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 768
- height
- 768
- prompt
- An astronaut riding a rainbow unicorn
- refine
- no_refiner
- scheduler
- DPM++_SDE_Karras
- num_outputs
- 1
- refine_steps
- 4
- guidance_scale
- 2
- apply_watermark
- 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
- 6
{ "width": 768, "height": 768, "prompt": "An astronaut riding a rainbow unicorn", "refine": "no_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", { input: { width: 768, height: 768, prompt: "An astronaut riding a rainbow unicorn", refine: "no_refiner", scheduler: "DPM++_SDE_Karras", num_outputs: 1, refine_steps: 4, 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: 6 } } ); 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 theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", input={ "width": 768, "height": 768, "prompt": "An astronaut riding a rainbow unicorn", "refine": "no_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run adirik/realvisxl-v4.0-lightning 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": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", "input": { "width": 768, "height": 768, "prompt": "An astronaut riding a rainbow unicorn", "refine": "no_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-03-11T14:29:15.775854Z", "created_at": "2024-03-11T14:29:12.361695Z", "data_removed": false, "error": null, "id": "2i2uhd3brzqcplm5lvi5n7zjku", "input": { "width": 768, "height": 768, "prompt": "An astronaut riding a rainbow unicorn", "refine": "no_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }, "logs": "Using seed: 23479\nPrompt: An astronaut riding a rainbow unicorn\ntxt2img mode\n 0%| | 0/6 [00:00<?, ?it/s]\n 17%|█▋ | 1/6 [00:00<00:00, 8.27it/s]\n 33%|███▎ | 2/6 [00:00<00:00, 8.21it/s]\n 50%|█████ | 3/6 [00:00<00:00, 8.19it/s]\n 67%|██████▋ | 4/6 [00:00<00:00, 8.17it/s]\n 83%|████████▎ | 5/6 [00:00<00:00, 8.15it/s]\n100%|██████████| 6/6 [00:00<00:00, 8.14it/s]\n100%|██████████| 6/6 [00:00<00:00, 8.16it/s]", "metrics": { "predict_time": 3.373897, "total_time": 3.414159 }, "output": [ "https://replicate.delivery/pbxt/f2dyJbDti0zFKK4lboiERJbnHfBqTf3qfKgXdHdwVVbrzx8JB/out-0.png" ], "started_at": "2024-03-11T14:29:12.401957Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/2i2uhd3brzqcplm5lvi5n7zjku", "cancel": "https://api.replicate.com/v1/predictions/2i2uhd3brzqcplm5lvi5n7zjku/cancel" }, "version": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559" }
Generated inUsing seed: 23479 Prompt: An astronaut riding a rainbow unicorn txt2img mode 0%| | 0/6 [00:00<?, ?it/s] 17%|█▋ | 1/6 [00:00<00:00, 8.27it/s] 33%|███▎ | 2/6 [00:00<00:00, 8.21it/s] 50%|█████ | 3/6 [00:00<00:00, 8.19it/s] 67%|██████▋ | 4/6 [00:00<00:00, 8.17it/s] 83%|████████▎ | 5/6 [00:00<00:00, 8.15it/s] 100%|██████████| 6/6 [00:00<00:00, 8.14it/s] 100%|██████████| 6/6 [00:00<00:00, 8.16it/s]
Prediction
adirik/realvisxl-v4.0-lightning:2ef27001IDl2ln5p3bw2j5fypbloedlmdifqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 768
- height
- 768
- prompt
- An old couple holding hands and walking on the beach
- refine
- expert_ensemble_refiner
- scheduler
- DPM++_SDE_Karras
- num_outputs
- 1
- refine_steps
- 4
- guidance_scale
- 2
- apply_watermark
- 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
- 6
{ "width": 768, "height": 768, "prompt": "An old couple holding hands and walking on the beach", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", { input: { width: 768, height: 768, prompt: "An old couple holding hands and walking on the beach", refine: "expert_ensemble_refiner", scheduler: "DPM++_SDE_Karras", num_outputs: 1, refine_steps: 4, 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: 6 } } ); 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 theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", input={ "width": 768, "height": 768, "prompt": "An old couple holding hands and walking on the beach", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run adirik/realvisxl-v4.0-lightning 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": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", "input": { "width": 768, "height": 768, "prompt": "An old couple holding hands and walking on the beach", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-03-11T14:38:48.610327Z", "created_at": "2024-03-11T14:37:20.118941Z", "data_removed": false, "error": null, "id": "l2ln5p3bw2j5fypbloedlmdifq", "input": { "width": 768, "height": 768, "prompt": "An old couple holding hands and walking on the beach", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }, "logs": "Using seed: 834\nPrompt: An old couple holding hands and walking on the beach\ntxt2img mode\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:01, 1.51it/s]\n 50%|█████ | 2/4 [00:00<00:00, 2.91it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 4.12it/s]\n100%|██████████| 4/4 [00:01<00:00, 5.12it/s]\n100%|██████████| 4/4 [00:01<00:00, 3.89it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:00<00:00, 7.18it/s]\n100%|██████████| 2/2 [00:00<00:00, 7.61it/s]\n100%|██████████| 2/2 [00:00<00:00, 7.53it/s]", "metrics": { "predict_time": 3.930859, "total_time": 88.491386 }, "output": [ "https://replicate.delivery/pbxt/SAtDdzcZkB6CO9rt4cK9Hrrk5HNOFfuYmkljetg52YfuLZeJB/out-0.png" ], "started_at": "2024-03-11T14:38:44.679468Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/l2ln5p3bw2j5fypbloedlmdifq", "cancel": "https://api.replicate.com/v1/predictions/l2ln5p3bw2j5fypbloedlmdifq/cancel" }, "version": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559" }
Generated inUsing seed: 834 Prompt: An old couple holding hands and walking on the beach txt2img mode 0%| | 0/4 [00:00<?, ?it/s] 25%|██▌ | 1/4 [00:00<00:01, 1.51it/s] 50%|█████ | 2/4 [00:00<00:00, 2.91it/s] 75%|███████▌ | 3/4 [00:00<00:00, 4.12it/s] 100%|██████████| 4/4 [00:01<00:00, 5.12it/s] 100%|██████████| 4/4 [00:01<00:00, 3.89it/s] 0%| | 0/2 [00:00<?, ?it/s] 50%|█████ | 1/2 [00:00<00:00, 7.18it/s] 100%|██████████| 2/2 [00:00<00:00, 7.61it/s] 100%|██████████| 2/2 [00:00<00:00, 7.53it/s]
Prediction
adirik/realvisxl-v4.0-lightning:2ef27001IDixvraflb6gvuzuptaqeg6betz4StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 768
- height
- 768
- prompt
- A crowded amusement park with many street vendors
- refine
- expert_ensemble_refiner
- scheduler
- DPM++_SDE_Karras
- num_outputs
- 4
- refine_steps
- 4
- guidance_scale
- 2
- apply_watermark
- 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
- 6
{ "width": 768, "height": 768, "prompt": "A crowded amusement park with many street vendors", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 4, "refine_steps": 4, "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": 6 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", { input: { width: 768, height: 768, prompt: "A crowded amusement park with many street vendors", refine: "expert_ensemble_refiner", scheduler: "DPM++_SDE_Karras", num_outputs: 4, refine_steps: 4, 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: 6 } } ); 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 theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", input={ "width": 768, "height": 768, "prompt": "A crowded amusement park with many street vendors", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 4, "refine_steps": 4, "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": 6 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run adirik/realvisxl-v4.0-lightning 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": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", "input": { "width": 768, "height": 768, "prompt": "A crowded amusement park with many street vendors", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 4, "refine_steps": 4, "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": 6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-03-11T14:43:40.963644Z", "created_at": "2024-03-11T14:43:34.004844Z", "data_removed": false, "error": null, "id": "ixvraflb6gvuzuptaqeg6betz4", "input": { "width": 768, "height": 768, "prompt": "A crowded amusement park with many street vendors", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 4, "refine_steps": 4, "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": 6 }, "logs": "Using seed: 33873\nPrompt: A crowded amusement park with many street vendors\ntxt2img mode\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:01, 2.31it/s]\n 50%|█████ | 2/4 [00:00<00:00, 2.32it/s]\n 75%|███████▌ | 3/4 [00:01<00:00, 2.31it/s]\n100%|██████████| 4/4 [00:01<00:00, 2.31it/s]\n100%|██████████| 4/4 [00:01<00:00, 2.31it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:00<00:00, 2.36it/s]\n100%|██████████| 2/2 [00:00<00:00, 2.37it/s]\n100%|██████████| 2/2 [00:00<00:00, 2.36it/s]", "metrics": { "predict_time": 6.919158, "total_time": 6.9588 }, "output": [ "https://replicate.delivery/pbxt/rlLxicDj4gq4DlsiOFqBKZAsaxpmajYb3V3t75wejfPaqMfkA/out-0.png", "https://replicate.delivery/pbxt/RtPNu9OvVlK3ARjUsxgzDNBzNowUr6fqIwyH2NzwlvoNVmPJA/out-1.png", "https://replicate.delivery/pbxt/0MufdjU6TgXzfkEtDEa5TjsLZsm0H8ANezvNRLR5MNS5UZeJB/out-2.png", "https://replicate.delivery/pbxt/7cfGyCQJDUUaWyyfiBsEgH3O5pFUb3Y5p9Uu3QChFhVcqMfkA/out-3.png" ], "started_at": "2024-03-11T14:43:34.044486Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ixvraflb6gvuzuptaqeg6betz4", "cancel": "https://api.replicate.com/v1/predictions/ixvraflb6gvuzuptaqeg6betz4/cancel" }, "version": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559" }
Generated inUsing seed: 33873 Prompt: A crowded amusement park with many street vendors txt2img mode 0%| | 0/4 [00:00<?, ?it/s] 25%|██▌ | 1/4 [00:00<00:01, 2.31it/s] 50%|█████ | 2/4 [00:00<00:00, 2.32it/s] 75%|███████▌ | 3/4 [00:01<00:00, 2.31it/s] 100%|██████████| 4/4 [00:01<00:00, 2.31it/s] 100%|██████████| 4/4 [00:01<00:00, 2.31it/s] 0%| | 0/2 [00:00<?, ?it/s] 50%|█████ | 1/2 [00:00<00:00, 2.36it/s] 100%|██████████| 2/2 [00:00<00:00, 2.37it/s] 100%|██████████| 2/2 [00:00<00:00, 2.36it/s]
Prediction
adirik/realvisxl-v4.0-lightning:2ef27001IDua54k33ba6b6zily2ud23q6inaStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 768
- height
- 768
- prompt
- A portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3
- refine
- expert_ensemble_refiner
- scheduler
- DPM++_SDE_Karras
- num_outputs
- 1
- refine_steps
- 4
- guidance_scale
- 2
- apply_watermark
- 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
- 6
{ "width": 768, "height": 768, "prompt": "A portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", { input: { width: 768, height: 768, prompt: "A portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", refine: "expert_ensemble_refiner", scheduler: "DPM++_SDE_Karras", num_outputs: 1, refine_steps: 4, 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: 6 } } ); 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 theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", input={ "width": 768, "height": 768, "prompt": "A portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run adirik/realvisxl-v4.0-lightning 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": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", "input": { "width": 768, "height": 768, "prompt": "A portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-03-11T14:44:24.835756Z", "created_at": "2024-03-11T14:44:22.007981Z", "data_removed": false, "error": null, "id": "ua54k33ba6b6zily2ud23q6ina", "input": { "width": 768, "height": 768, "prompt": "A portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }, "logs": "Using seed: 35282\nPrompt: A portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3\ntxt2img mode\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:00, 8.33it/s]\n 50%|█████ | 2/4 [00:00<00:00, 8.27it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 8.25it/s]\n100%|██████████| 4/4 [00:00<00:00, 8.22it/s]\n100%|██████████| 4/4 [00:00<00:00, 8.24it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:00<00:00, 8.10it/s]\n100%|██████████| 2/2 [00:00<00:00, 8.02it/s]\n100%|██████████| 2/2 [00:00<00:00, 8.03it/s]", "metrics": { "predict_time": 2.787471, "total_time": 2.827775 }, "output": [ "https://replicate.delivery/pbxt/wF5Bp7QPKyppHtawCh5qAGaUK1DzYfvIZKNGWevnV7aHrMfkA/out-0.png" ], "started_at": "2024-03-11T14:44:22.048285Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ua54k33ba6b6zily2ud23q6ina", "cancel": "https://api.replicate.com/v1/predictions/ua54k33ba6b6zily2ud23q6ina/cancel" }, "version": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559" }
Generated inUsing seed: 35282 Prompt: A portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3 txt2img mode 0%| | 0/4 [00:00<?, ?it/s] 25%|██▌ | 1/4 [00:00<00:00, 8.33it/s] 50%|█████ | 2/4 [00:00<00:00, 8.27it/s] 75%|███████▌ | 3/4 [00:00<00:00, 8.25it/s] 100%|██████████| 4/4 [00:00<00:00, 8.22it/s] 100%|██████████| 4/4 [00:00<00:00, 8.24it/s] 0%| | 0/2 [00:00<?, ?it/s] 50%|█████ | 1/2 [00:00<00:00, 8.10it/s] 100%|██████████| 2/2 [00:00<00:00, 8.02it/s] 100%|██████████| 2/2 [00:00<00:00, 8.03it/s]
Prediction
adirik/realvisxl-v4.0-lightning:2ef27001IDtqjaui3b3idhbnnyzel3upgdbqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 768
- height
- 768
- prompt
- a portrait photo of a middle aged man in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3
- refine
- expert_ensemble_refiner
- scheduler
- DPM++_SDE_Karras
- num_outputs
- 1
- refine_steps
- 4
- guidance_scale
- 2
- apply_watermark
- 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
- 6
{ "width": 768, "height": 768, "prompt": "a portrait photo of a middle aged man in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", { input: { width: 768, height: 768, prompt: "a portrait photo of a middle aged man in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", refine: "expert_ensemble_refiner", scheduler: "DPM++_SDE_Karras", num_outputs: 1, refine_steps: 4, 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: 6 } } ); 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 theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", input={ "width": 768, "height": 768, "prompt": "a portrait photo of a middle aged man in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run adirik/realvisxl-v4.0-lightning 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": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", "input": { "width": 768, "height": 768, "prompt": "a portrait photo of a middle aged man in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-03-11T14:45:08.954385Z", "created_at": "2024-03-11T14:45:06.222286Z", "data_removed": false, "error": null, "id": "tqjaui3b3idhbnnyzel3upgdbq", "input": { "width": 768, "height": 768, "prompt": "a portrait photo of a middle aged man in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }, "logs": "Using seed: 40123\nPrompt: a portrait photo of a middle aged man in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3\ntxt2img mode\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:00, 8.30it/s]\n 50%|█████ | 2/4 [00:00<00:00, 8.25it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 8.24it/s]\n100%|██████████| 4/4 [00:00<00:00, 8.24it/s]\n100%|██████████| 4/4 [00:00<00:00, 8.24it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:00<00:00, 8.10it/s]\n100%|██████████| 2/2 [00:00<00:00, 8.01it/s]\n100%|██████████| 2/2 [00:00<00:00, 8.02it/s]", "metrics": { "predict_time": 2.691407, "total_time": 2.732099 }, "output": [ "https://replicate.delivery/pbxt/I1Ffmx6dLP1nOKDRMSSw8A9GgJecAq8dvqgs96J04rozrMfkA/out-0.png" ], "started_at": "2024-03-11T14:45:06.262978Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/tqjaui3b3idhbnnyzel3upgdbq", "cancel": "https://api.replicate.com/v1/predictions/tqjaui3b3idhbnnyzel3upgdbq/cancel" }, "version": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559" }
Generated inUsing seed: 40123 Prompt: a portrait photo of a middle aged man in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3 txt2img mode 0%| | 0/4 [00:00<?, ?it/s] 25%|██▌ | 1/4 [00:00<00:00, 8.30it/s] 50%|█████ | 2/4 [00:00<00:00, 8.25it/s] 75%|███████▌ | 3/4 [00:00<00:00, 8.24it/s] 100%|██████████| 4/4 [00:00<00:00, 8.24it/s] 100%|██████████| 4/4 [00:00<00:00, 8.24it/s] 0%| | 0/2 [00:00<?, ?it/s] 50%|█████ | 1/2 [00:00<00:00, 8.10it/s] 100%|██████████| 2/2 [00:00<00:00, 8.01it/s] 100%|██████████| 2/2 [00:00<00:00, 8.02it/s]
Prediction
adirik/realvisxl-v4.0-lightning:2ef27001IDwuw54rtb4wpmfm3q7dprmhgjleStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 768
- height
- 768
- prompt
- RAW photo, flower vase on a table, 8k uhd, high quality, film grain, Fujifilm XT3
- refine
- expert_ensemble_refiner
- scheduler
- DPM++_SDE_Karras
- num_outputs
- 1
- refine_steps
- 4
- guidance_scale
- 2
- apply_watermark
- 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
- 6
{ "width": 768, "height": 768, "prompt": "RAW photo, flower vase on a table, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", { input: { width: 768, height: 768, prompt: "RAW photo, flower vase on a table, 8k uhd, high quality, film grain, Fujifilm XT3", refine: "expert_ensemble_refiner", scheduler: "DPM++_SDE_Karras", num_outputs: 1, refine_steps: 4, 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: 6 } } ); 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 theREPLICATE_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 adirik/realvisxl-v4.0-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "adirik/realvisxl-v4.0-lightning:2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", input={ "width": 768, "height": 768, "prompt": "RAW photo, flower vase on a table, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run adirik/realvisxl-v4.0-lightning 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": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559", "input": { "width": 768, "height": 768, "prompt": "RAW photo, flower vase on a table, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-03-11T14:45:26.855946Z", "created_at": "2024-03-11T14:45:24.129283Z", "data_removed": false, "error": null, "id": "wuw54rtb4wpmfm3q7dprmhgjle", "input": { "width": 768, "height": 768, "prompt": "RAW photo, flower vase on a table, 8k uhd, high quality, film grain, Fujifilm XT3", "refine": "expert_ensemble_refiner", "scheduler": "DPM++_SDE_Karras", "num_outputs": 1, "refine_steps": 4, "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": 6 }, "logs": "Using seed: 14114\nPrompt: RAW photo, flower vase on a table, 8k uhd, high quality, film grain, Fujifilm XT3\ntxt2img mode\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:00, 8.33it/s]\n 50%|█████ | 2/4 [00:00<00:00, 8.27it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 8.25it/s]\n100%|██████████| 4/4 [00:00<00:00, 8.22it/s]\n100%|██████████| 4/4 [00:00<00:00, 8.24it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:00<00:00, 8.11it/s]\n100%|██████████| 2/2 [00:00<00:00, 8.06it/s]\n100%|██████████| 2/2 [00:00<00:00, 8.07it/s]", "metrics": { "predict_time": 2.686953, "total_time": 2.726663 }, "output": [ "https://replicate.delivery/pbxt/RMwFzE29foXnBKWaOlECU2pkoRRW6JOZtyMMA2oGqE6CWmPJA/out-0.png" ], "started_at": "2024-03-11T14:45:24.168993Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/wuw54rtb4wpmfm3q7dprmhgjle", "cancel": "https://api.replicate.com/v1/predictions/wuw54rtb4wpmfm3q7dprmhgjle/cancel" }, "version": "2ef27001faad83347bf7a4186c7a39bb162380c5d7fd1d0bf29fe08410229559" }
Generated inUsing seed: 14114 Prompt: RAW photo, flower vase on a table, 8k uhd, high quality, film grain, Fujifilm XT3 txt2img mode 0%| | 0/4 [00:00<?, ?it/s] 25%|██▌ | 1/4 [00:00<00:00, 8.33it/s] 50%|█████ | 2/4 [00:00<00:00, 8.27it/s] 75%|███████▌ | 3/4 [00:00<00:00, 8.25it/s] 100%|██████████| 4/4 [00:00<00:00, 8.22it/s] 100%|██████████| 4/4 [00:00<00:00, 8.24it/s] 0%| | 0/2 [00:00<?, ?it/s] 50%|█████ | 1/2 [00:00<00:00, 8.11it/s] 100%|██████████| 2/2 [00:00<00:00, 8.06it/s] 100%|██████████| 2/2 [00:00<00:00, 8.07it/s]
Want to make some of these yourself?
Run this model