You're looking at a specific version of this model. Jump to the model overview.
dhanushreddy291 /forge-saga-landscape:543c82e9
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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run dhanushreddy291/forge-saga-landscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"dhanushreddy291/forge-saga-landscape:543c82e97d1e8e54af0b23e010b692f2825e8350335205703f6b9cf5efc10aac",
{
input: {
seed: 0,
steps: 20,
width: 1024,
height: 768,
prompt: "modern apartment building on a mountain with many pine trees",
guidance: 10,
scheduler: "EulerA",
num_outputs: 1,
negative_prompt: "(worst quality, normal quality, low quality, 3D, realistic:1.6)"
}
}
);
// 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 dhanushreddy291/forge-saga-landscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"dhanushreddy291/forge-saga-landscape:543c82e97d1e8e54af0b23e010b692f2825e8350335205703f6b9cf5efc10aac",
input={
"seed": 0,
"steps": 20,
"width": 1024,
"height": 768,
"prompt": "modern apartment building on a mountain with many pine trees",
"guidance": 10,
"scheduler": "EulerA",
"num_outputs": 1,
"negative_prompt": "(worst quality, normal quality, low quality, 3D, realistic:1.6)"
}
)
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 dhanushreddy291/forge-saga-landscape 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": "dhanushreddy291/forge-saga-landscape:543c82e97d1e8e54af0b23e010b692f2825e8350335205703f6b9cf5efc10aac",
"input": {
"seed": 0,
"steps": 20,
"width": 1024,
"height": 768,
"prompt": "modern apartment building on a mountain with many pine trees",
"guidance": 10,
"scheduler": "EulerA",
"num_outputs": 1,
"negative_prompt": "(worst quality, normal quality, low quality, 3D, realistic:1.6)"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/dhanushreddy291/forge-saga-landscape@sha256:543c82e97d1e8e54af0b23e010b692f2825e8350335205703f6b9cf5efc10aac \
-i 'seed=0' \
-i 'steps=20' \
-i 'width=1024' \
-i 'height=768' \
-i 'prompt="modern apartment building on a mountain with many pine trees"' \
-i 'guidance=10' \
-i 'scheduler="EulerA"' \
-i 'num_outputs=1' \
-i 'negative_prompt="(worst quality, normal quality, low quality, 3D, realistic:1.6)"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/dhanushreddy291/forge-saga-landscape@sha256:543c82e97d1e8e54af0b23e010b692f2825e8350335205703f6b9cf5efc10aac
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "seed": 0, "steps": 20, "width": 1024, "height": 768, "prompt": "modern apartment building on a mountain with many pine trees", "guidance": 10, "scheduler": "EulerA", "num_outputs": 1, "negative_prompt": "(worst quality, normal quality, low quality, 3D, realistic:1.6)" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.075. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-01-17T17:50:17.991696Z",
"created_at": "2024-01-17T17:50:13.664479Z",
"data_removed": false,
"error": null,
"id": "an4ffjlbzo65hwyz75d6bzl2xe",
"input": {
"seed": 0,
"steps": 20,
"width": 1024,
"height": 768,
"prompt": "modern apartment building on a mountain with many pine trees",
"guidance": 10,
"scheduler": "EulerA",
"num_outputs": 1,
"negative_prompt": "(worst quality, normal quality, low quality, 3D, realistic:1.6)"
},
"logs": "0%| | 0/20 [00:00<?, ?it/s]\n 10%|█ | 2/20 [00:00<00:01, 11.53it/s]\n 20%|██ | 4/20 [00:00<00:01, 8.61it/s]\n 25%|██▌ | 5/20 [00:00<00:01, 8.18it/s]\n 30%|███ | 6/20 [00:00<00:01, 7.88it/s]\n 35%|███▌ | 7/20 [00:00<00:01, 7.70it/s]\n 40%|████ | 8/20 [00:00<00:01, 7.57it/s]\n 45%|████▌ | 9/20 [00:01<00:01, 7.48it/s]\n 50%|█████ | 10/20 [00:01<00:01, 7.42it/s]\n 55%|█████▌ | 11/20 [00:01<00:01, 7.38it/s]\n 60%|██████ | 12/20 [00:01<00:01, 7.34it/s]\n 65%|██████▌ | 13/20 [00:01<00:00, 7.31it/s]\n 70%|███████ | 14/20 [00:01<00:00, 7.30it/s]\n 75%|███████▌ | 15/20 [00:01<00:00, 7.29it/s]\n 80%|████████ | 16/20 [00:02<00:00, 7.28it/s]\n 85%|████████▌ | 17/20 [00:02<00:00, 7.27it/s]\n 90%|█████████ | 18/20 [00:02<00:00, 7.28it/s]\n 95%|█████████▌| 19/20 [00:02<00:00, 7.28it/s]\n100%|██████████| 20/20 [00:02<00:00, 7.27it/s]\n100%|██████████| 20/20 [00:02<00:00, 7.55it/s]",
"metrics": {
"predict_time": 4.290799,
"total_time": 4.327217
},
"output": [
"https://replicate.delivery/pbxt/rMDei25InyztISxvZCztWpB9wQUGuKXBsAgsoMcwGfJZVcNSA/out-0.png"
],
"started_at": "2024-01-17T17:50:13.700897Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/an4ffjlbzo65hwyz75d6bzl2xe",
"cancel": "https://api.replicate.com/v1/predictions/an4ffjlbzo65hwyz75d6bzl2xe/cancel"
},
"version": "543c82e97d1e8e54af0b23e010b692f2825e8350335205703f6b9cf5efc10aac"
}
0%| | 0/20 [00:00<?, ?it/s]
10%|█ | 2/20 [00:00<00:01, 11.53it/s]
20%|██ | 4/20 [00:00<00:01, 8.61it/s]
25%|██▌ | 5/20 [00:00<00:01, 8.18it/s]
30%|███ | 6/20 [00:00<00:01, 7.88it/s]
35%|███▌ | 7/20 [00:00<00:01, 7.70it/s]
40%|████ | 8/20 [00:00<00:01, 7.57it/s]
45%|████▌ | 9/20 [00:01<00:01, 7.48it/s]
50%|█████ | 10/20 [00:01<00:01, 7.42it/s]
55%|█████▌ | 11/20 [00:01<00:01, 7.38it/s]
60%|██████ | 12/20 [00:01<00:01, 7.34it/s]
65%|██████▌ | 13/20 [00:01<00:00, 7.31it/s]
70%|███████ | 14/20 [00:01<00:00, 7.30it/s]
75%|███████▌ | 15/20 [00:01<00:00, 7.29it/s]
80%|████████ | 16/20 [00:02<00:00, 7.28it/s]
85%|████████▌ | 17/20 [00:02<00:00, 7.27it/s]
90%|█████████ | 18/20 [00:02<00:00, 7.28it/s]
95%|█████████▌| 19/20 [00:02<00:00, 7.28it/s]
100%|██████████| 20/20 [00:02<00:00, 7.27it/s]
100%|██████████| 20/20 [00:02<00:00, 7.55it/s]