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.
cjwbw /elden-ring-diffusion:664395b7
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 cjwbw/elden-ring-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cjwbw/elden-ring-diffusion:664395b745271027942906c3846671cc71c49f75509078bf3ac9d85388b2f6ac",
{
input: {
width: 512,
height: 512,
prompt: "a magical princess with golden hair, elden ring style",
num_outputs: 1,
guidance_scale: 7.5,
num_inference_steps: 50
}
}
);
// 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 cjwbw/elden-ring-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cjwbw/elden-ring-diffusion:664395b745271027942906c3846671cc71c49f75509078bf3ac9d85388b2f6ac",
input={
"width": 512,
"height": 512,
"prompt": "a magical princess with golden hair, elden ring style",
"num_outputs": 1,
"guidance_scale": 7.5,
"num_inference_steps": 50
}
)
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 cjwbw/elden-ring-diffusion 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": "cjwbw/elden-ring-diffusion:664395b745271027942906c3846671cc71c49f75509078bf3ac9d85388b2f6ac",
"input": {
"width": 512,
"height": 512,
"prompt": "a magical princess with golden hair, elden ring style",
"num_outputs": 1,
"guidance_scale": 7.5,
"num_inference_steps": 50
}
}' \
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": "2022-11-02T23:31:11.584689Z",
"created_at": "2022-11-02T23:26:56.667541Z",
"data_removed": false,
"error": null,
"id": "42enj4ekefgntayokbiuymm3qm",
"input": {
"width": 512,
"height": 512,
"prompt": "a magical princess with golden hair, elden ring style",
"num_outputs": 1,
"guidance_scale": "7.5",
"num_inference_steps": 50
},
"logs": "Using seed: 27007\nGlobal seed set to 27007\n\n0it [00:00, ?it/s]\n1it [00:00, 7.92it/s]\n2it [00:00, 5.13it/s]\n3it [00:00, 4.52it/s]\n4it [00:00, 4.28it/s]\n5it [00:01, 4.14it/s]\n6it [00:01, 4.07it/s]\n7it [00:01, 4.04it/s]\n8it [00:01, 4.01it/s]\n9it [00:02, 3.98it/s]\n10it [00:02, 3.96it/s]\n11it [00:02, 3.95it/s]\n12it [00:02, 3.95it/s]\n13it [00:03, 3.97it/s]\n14it [00:03, 3.95it/s]\n15it [00:03, 3.95it/s]\n16it [00:03, 3.94it/s]\n17it [00:04, 3.95it/s]\n18it [00:04, 3.94it/s]\n19it [00:04, 3.93it/s]\n20it [00:04, 3.94it/s]\n21it [00:05, 3.93it/s]\n22it [00:05, 3.94it/s]\n23it [00:05, 3.93it/s]\n24it [00:05, 3.93it/s]\n25it [00:06, 3.93it/s]\n26it [00:06, 3.94it/s]\n27it [00:06, 3.93it/s]\n28it [00:06, 3.92it/s]\n29it [00:07, 3.93it/s]\n30it [00:07, 3.93it/s]\n31it [00:07, 3.93it/s]\n32it [00:07, 3.92it/s]\n33it [00:08, 3.83it/s]\n34it [00:08, 3.85it/s]\n35it [00:08, 3.96it/s]\n36it [00:09, 3.95it/s]\n37it [00:09, 3.74it/s]\n38it [00:09, 3.91it/s]\n39it [00:09, 3.80it/s]\n40it [00:10, 3.93it/s]\n41it [00:10, 3.93it/s]\n42it [00:10, 3.91it/s]\n43it [00:10, 3.96it/s]\n44it [00:11, 3.95it/s]\n45it [00:11, 3.96it/s]\n46it [00:11, 3.93it/s]\n47it [00:11, 3.92it/s]\n48it [00:12, 3.93it/s]\n49it [00:12, 3.92it/s]\n50it [00:12, 3.92it/s]\n51it [00:12, 3.90it/s]\n51it [00:12, 3.97it/s]\nNSFW content detected in 0 outputs, showing the rest 1 images...",
"metrics": {
"predict_time": 13.712077,
"total_time": 254.917148
},
"output": [
"https://replicate.delivery/pbxt/xXh8lSe8UOQMCSW4kpnOneWRGuBtXNfDFTtqfjsQ9rq87rwfB/out-0.png"
],
"started_at": "2022-11-02T23:30:57.872612Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/42enj4ekefgntayokbiuymm3qm",
"cancel": "https://api.replicate.com/v1/predictions/42enj4ekefgntayokbiuymm3qm/cancel"
},
"version": "664395b745271027942906c3846671cc71c49f75509078bf3ac9d85388b2f6ac"
}
Using seed: 27007
Global seed set to 27007
0it [00:00, ?it/s]
1it [00:00, 7.92it/s]
2it [00:00, 5.13it/s]
3it [00:00, 4.52it/s]
4it [00:00, 4.28it/s]
5it [00:01, 4.14it/s]
6it [00:01, 4.07it/s]
7it [00:01, 4.04it/s]
8it [00:01, 4.01it/s]
9it [00:02, 3.98it/s]
10it [00:02, 3.96it/s]
11it [00:02, 3.95it/s]
12it [00:02, 3.95it/s]
13it [00:03, 3.97it/s]
14it [00:03, 3.95it/s]
15it [00:03, 3.95it/s]
16it [00:03, 3.94it/s]
17it [00:04, 3.95it/s]
18it [00:04, 3.94it/s]
19it [00:04, 3.93it/s]
20it [00:04, 3.94it/s]
21it [00:05, 3.93it/s]
22it [00:05, 3.94it/s]
23it [00:05, 3.93it/s]
24it [00:05, 3.93it/s]
25it [00:06, 3.93it/s]
26it [00:06, 3.94it/s]
27it [00:06, 3.93it/s]
28it [00:06, 3.92it/s]
29it [00:07, 3.93it/s]
30it [00:07, 3.93it/s]
31it [00:07, 3.93it/s]
32it [00:07, 3.92it/s]
33it [00:08, 3.83it/s]
34it [00:08, 3.85it/s]
35it [00:08, 3.96it/s]
36it [00:09, 3.95it/s]
37it [00:09, 3.74it/s]
38it [00:09, 3.91it/s]
39it [00:09, 3.80it/s]
40it [00:10, 3.93it/s]
41it [00:10, 3.93it/s]
42it [00:10, 3.91it/s]
43it [00:10, 3.96it/s]
44it [00:11, 3.95it/s]
45it [00:11, 3.96it/s]
46it [00:11, 3.93it/s]
47it [00:11, 3.92it/s]
48it [00:12, 3.93it/s]
49it [00:12, 3.92it/s]
50it [00:12, 3.92it/s]
51it [00:12, 3.90it/s]
51it [00:12, 3.97it/s]
NSFW content detected in 0 outputs, showing the rest 1 images...