Failed to load versions. Head to the versions page to see all versions for this model.
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: 31,
width: 1024,
height: 768,
prompt: "a beautiful pyramid, beautiful columns, high res",
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": 31,
"width": 1024,
"height": 768,
"prompt": "a beautiful pyramid, beautiful columns, high res",
"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": 31,
"width": 1024,
"height": 768,
"prompt": "a beautiful pyramid, beautiful columns, high res",
"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.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-01-17T17:42:01.093081Z",
"created_at": "2024-01-17T17:41:55.052341Z",
"data_removed": false,
"error": null,
"id": "akfmeqdbvy4h32uali74jf5ryq",
"input": {
"seed": 0,
"steps": 31,
"width": 1024,
"height": 768,
"prompt": "a beautiful pyramid, beautiful columns, high res",
"guidance": 10,
"scheduler": "EulerA",
"num_outputs": 1,
"negative_prompt": "(worst quality, normal quality, low quality, 3D, realistic:1.6)"
},
"logs": "0%| | 0/31 [00:00<?, ?it/s]\n 6%|▋ | 2/31 [00:00<00:02, 11.37it/s]\n 13%|█▎ | 4/31 [00:00<00:03, 8.39it/s]\n 16%|█▌ | 5/31 [00:00<00:03, 7.96it/s]\n 19%|█▉ | 6/31 [00:00<00:03, 7.68it/s]\n 23%|██▎ | 7/31 [00:00<00:03, 7.49it/s]\n 26%|██▌ | 8/31 [00:01<00:03, 7.35it/s]\n 29%|██▉ | 9/31 [00:01<00:03, 7.27it/s]\n 32%|███▏ | 10/31 [00:01<00:02, 7.21it/s]\n 35%|███▌ | 11/31 [00:01<00:02, 7.17it/s]\n 39%|███▊ | 12/31 [00:01<00:02, 7.14it/s]\n 42%|████▏ | 13/31 [00:01<00:02, 7.12it/s]\n 45%|████▌ | 14/31 [00:01<00:02, 7.10it/s]\n 48%|████▊ | 15/31 [00:02<00:02, 7.09it/s]\n 52%|█████▏ | 16/31 [00:02<00:02, 7.08it/s]\n 55%|█████▍ | 17/31 [00:02<00:01, 7.08it/s]\n 58%|█████▊ | 18/31 [00:02<00:01, 7.07it/s]\n 61%|██████▏ | 19/31 [00:02<00:01, 7.08it/s]\n 65%|██████▍ | 20/31 [00:02<00:01, 7.08it/s]\n 68%|██████▊ | 21/31 [00:02<00:01, 7.08it/s]\n 71%|███████ | 22/31 [00:03<00:01, 7.07it/s]\n 74%|███████▍ | 23/31 [00:03<00:01, 7.07it/s]\n 77%|███████▋ | 24/31 [00:03<00:00, 7.07it/s]\n 81%|████████ | 25/31 [00:03<00:00, 7.08it/s]\n 84%|████████▍ | 26/31 [00:03<00:00, 7.08it/s]\n 87%|████████▋ | 27/31 [00:03<00:00, 7.07it/s]\n 90%|█████████ | 28/31 [00:03<00:00, 7.07it/s]\n 94%|█████████▎| 29/31 [00:03<00:00, 7.06it/s]\n 97%|█████████▋| 30/31 [00:04<00:00, 7.06it/s]\n100%|██████████| 31/31 [00:04<00:00, 7.06it/s]\n100%|██████████| 31/31 [00:04<00:00, 7.25it/s]",
"metrics": {
"predict_time": 5.994731,
"total_time": 6.04074
},
"output": [
"https://replicate.delivery/pbxt/87DSmgVvfS0BTC3IWxgPEUUSYfnsNUrUQnUBqb0mah2oNcNSA/out-0.png"
],
"started_at": "2024-01-17T17:41:55.098350Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/akfmeqdbvy4h32uali74jf5ryq",
"cancel": "https://api.replicate.com/v1/predictions/akfmeqdbvy4h32uali74jf5ryq/cancel"
},
"version": "543c82e97d1e8e54af0b23e010b692f2825e8350335205703f6b9cf5efc10aac"
}
0%| | 0/31 [00:00<?, ?it/s]
6%|▋ | 2/31 [00:00<00:02, 11.37it/s]
13%|█▎ | 4/31 [00:00<00:03, 8.39it/s]
16%|█▌ | 5/31 [00:00<00:03, 7.96it/s]
19%|█▉ | 6/31 [00:00<00:03, 7.68it/s]
23%|██▎ | 7/31 [00:00<00:03, 7.49it/s]
26%|██▌ | 8/31 [00:01<00:03, 7.35it/s]
29%|██▉ | 9/31 [00:01<00:03, 7.27it/s]
32%|███▏ | 10/31 [00:01<00:02, 7.21it/s]
35%|███▌ | 11/31 [00:01<00:02, 7.17it/s]
39%|███▊ | 12/31 [00:01<00:02, 7.14it/s]
42%|████▏ | 13/31 [00:01<00:02, 7.12it/s]
45%|████▌ | 14/31 [00:01<00:02, 7.10it/s]
48%|████▊ | 15/31 [00:02<00:02, 7.09it/s]
52%|█████▏ | 16/31 [00:02<00:02, 7.08it/s]
55%|█████▍ | 17/31 [00:02<00:01, 7.08it/s]
58%|█████▊ | 18/31 [00:02<00:01, 7.07it/s]
61%|██████▏ | 19/31 [00:02<00:01, 7.08it/s]
65%|██████▍ | 20/31 [00:02<00:01, 7.08it/s]
68%|██████▊ | 21/31 [00:02<00:01, 7.08it/s]
71%|███████ | 22/31 [00:03<00:01, 7.07it/s]
74%|███████▍ | 23/31 [00:03<00:01, 7.07it/s]
77%|███████▋ | 24/31 [00:03<00:00, 7.07it/s]
81%|████████ | 25/31 [00:03<00:00, 7.08it/s]
84%|████████▍ | 26/31 [00:03<00:00, 7.08it/s]
87%|████████▋ | 27/31 [00:03<00:00, 7.07it/s]
90%|█████████ | 28/31 [00:03<00:00, 7.07it/s]
94%|█████████▎| 29/31 [00:03<00:00, 7.06it/s]
97%|█████████▋| 30/31 [00:04<00:00, 7.06it/s]
100%|██████████| 31/31 [00:04<00:00, 7.06it/s]
100%|██████████| 31/31 [00:04<00:00, 7.25it/s]