Default: "blurry, illustration, toy, clay, low quality, flag, nasa, mission patch"
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
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 toanbarcelona1998/dream_shaper8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "toanbarcelona1998/dream_shaper8:0405ae78d011e0511602983f1be6cc7d7eb33a7295eaa062eefcbcbc6b5a74ec", { input: { prompt: "<lora:RTMCHBKH0123_Style_Long:0.9>, Impasto, RTMCHBKH0123 style, a log cabin on a snowy cliff, smoke plume, hard evening lighting, snow, snowing", negativePrompt: "blurry, illustration, toy, clay, low quality, flag, nasa, mission patch" } } ); // 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
import replicate
output = replicate.run( "toanbarcelona1998/dream_shaper8:0405ae78d011e0511602983f1be6cc7d7eb33a7295eaa062eefcbcbc6b5a74ec", input={ "prompt": "<lora:RTMCHBKH0123_Style_Long:0.9>, Impasto, RTMCHBKH0123 style, a log cabin on a snowy cliff, smoke plume, hard evening lighting, snow, snowing", "negativePrompt": "blurry, illustration, toy, clay, low quality, flag, nasa, mission patch" } ) # 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.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "toanbarcelona1998/dream_shaper8:0405ae78d011e0511602983f1be6cc7d7eb33a7295eaa062eefcbcbc6b5a74ec", "input": { "prompt": "<lora:RTMCHBKH0123_Style_Long:0.9>, Impasto, RTMCHBKH0123 style, a log cabin on a snowy cliff, smoke plume, hard evening lighting, snow, snowing", "negativePrompt": "blurry, illustration, toy, clay, low quality, flag, nasa, mission patch" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{ "completed_at": "2024-12-17T10:07:24.221925Z", "created_at": "2024-12-17T10:04:45.402000Z", "data_removed": false, "error": null, "id": "0esv2gy3v9rj60cktg9tbj88br", "input": { "prompt": "<lora:RTMCHBKH0123_Style_Long:0.9>, Impasto, RTMCHBKH0123 style, a log cabin on a snowy cliff, smoke plume, hard evening lighting, snow, snowing", "negativePrompt": "blurry, illustration, toy, clay, low quality, flag, nasa, mission patch" }, "logs": "0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:06, 3.02it/s]\n 30%|███ | 6/20 [00:00<00:00, 16.08it/s]\n 55%|█████▌ | 11/20 [00:00<00:00, 24.29it/s]\n 80%|████████ | 16/20 [00:00<00:00, 29.41it/s]\n100%|██████████| 20/20 [00:00<00:00, 31.97it/s]\n100%|██████████| 20/20 [00:00<00:00, 24.85it/s]", "metrics": { "predict_time": 1.316526406, "total_time": 158.819925 }, "output": "https://replicate.delivery/yhqm/IAszyu8qJQK7Ip3KMiZ7GOTiOIwekGrFRzm9kJk9ZsHuev7TA/generated_image.png", "started_at": "2024-12-17T10:07:22.905398Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/qoxq-qqiatyk3nw3je7tbryxy6w2bjgll6lkaohutfiqgbzq7kleqrhda", "get": "https://api.replicate.com/v1/predictions/0esv2gy3v9rj60cktg9tbj88br", "cancel": "https://api.replicate.com/v1/predictions/0esv2gy3v9rj60cktg9tbj88br/cancel" }, "version": "0405ae78d011e0511602983f1be6cc7d7eb33a7295eaa062eefcbcbc6b5a74ec" }
0%| | 0/20 [00:00<?, ?it/s] 5%|▌ | 1/20 [00:00<00:06, 3.02it/s] 30%|███ | 6/20 [00:00<00:00, 16.08it/s] 55%|█████▌ | 11/20 [00:00<00:00, 24.29it/s] 80%|████████ | 16/20 [00:00<00:00, 29.41it/s] 100%|██████████| 20/20 [00:00<00:00, 31.97it/s] 100%|██████████| 20/20 [00:00<00:00, 24.85it/s]
View more examples
This model runs on Nvidia A100 (80GB) GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
This model runs on A100 (80GB) hardware which costs $0.0014 per second