You're looking at a specific version of this model. Jump to the model overview.
tstramer /spider-verse-diffusion:b6f58a19
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 tstramer/spider-verse-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"tstramer/spider-verse-diffusion:b6f58a19bf995774df360aadd53b6cf7f29f4daa1ca225706c81104a007d706c",
{
input: {
seed: 512312,
width: 512,
height: 512,
prompt: "Walter White from breaking bad, spiderverse style",
scheduler: "K-LMS",
num_outputs: 1,
guidance_scale: 7.5,
prompt_strength: 0.8,
num_inference_steps: 50
}
}
);
console.log(output);
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 tstramer/spider-verse-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"tstramer/spider-verse-diffusion:b6f58a19bf995774df360aadd53b6cf7f29f4daa1ca225706c81104a007d706c",
input={
"seed": 512312,
"width": 512,
"height": 512,
"prompt": "Walter White from breaking bad, spiderverse style",
"scheduler": "K-LMS",
"num_outputs": 1,
"guidance_scale": 7.5,
"prompt_strength": 0.8,
"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 tstramer/spider-verse-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": "b6f58a19bf995774df360aadd53b6cf7f29f4daa1ca225706c81104a007d706c",
"input": {
"seed": 512312,
"width": 512,
"height": 512,
"prompt": "Walter White from breaking bad, spiderverse style",
"scheduler": "K-LMS",
"num_outputs": 1,
"guidance_scale": 7.5,
"prompt_strength": 0.8,
"num_inference_steps": 50
}
}' \
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/tstramer/spider-verse-diffusion@sha256:b6f58a19bf995774df360aadd53b6cf7f29f4daa1ca225706c81104a007d706c \
-i 'seed=512312' \
-i 'width=512' \
-i 'height=512' \
-i 'prompt="Walter White from breaking bad, spiderverse style"' \
-i 'scheduler="K-LMS"' \
-i 'num_outputs=1' \
-i 'guidance_scale=7.5' \
-i 'prompt_strength=0.8' \
-i 'num_inference_steps=50'
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/tstramer/spider-verse-diffusion@sha256:b6f58a19bf995774df360aadd53b6cf7f29f4daa1ca225706c81104a007d706c
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "seed": 512312, "width": 512, "height": 512, "prompt": "Walter White from breaking bad, spiderverse style", "scheduler": "K-LMS", "num_outputs": 1, "guidance_scale": 7.5, "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ 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.18. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2022-11-07T23:00:21.147600Z",
"created_at": "2022-11-07T23:00:17.096566Z",
"data_removed": false,
"error": null,
"id": "53ifcjhayjdlpae36e3mrt2yoa",
"input": {
"seed": 512312,
"width": 512,
"height": 512,
"prompt": "Walter White from breaking bad, spiderverse style",
"scheduler": "K-LMS",
"num_outputs": 1,
"guidance_scale": 7.5,
"prompt_strength": 0.8,
"num_inference_steps": 50
},
"logs": "Using seed: 512312\n\n 0%| | 0/50 [00:00<?, ?it/s]\n 4%|▍ | 2/50 [00:00<00:03, 12.17it/s]\n 8%|▊ | 4/50 [00:00<00:03, 13.17it/s]\n 12%|█▏ | 6/50 [00:00<00:03, 13.58it/s]\n 16%|█▌ | 8/50 [00:00<00:03, 13.72it/s]\n 20%|██ | 10/50 [00:00<00:02, 13.77it/s]\n 24%|██▍ | 12/50 [00:00<00:02, 13.83it/s]\n 28%|██▊ | 14/50 [00:01<00:02, 13.93it/s]\n 32%|███▏ | 16/50 [00:01<00:02, 13.99it/s]\n 36%|███▌ | 18/50 [00:01<00:02, 13.99it/s]\n 40%|████ | 20/50 [00:01<00:02, 13.99it/s]\n 44%|████▍ | 22/50 [00:01<00:02, 13.98it/s]\n 48%|████▊ | 24/50 [00:01<00:01, 13.91it/s]\n 52%|█████▏ | 26/50 [00:01<00:01, 13.90it/s]\n 56%|█████▌ | 28/50 [00:02<00:01, 13.81it/s]\n 60%|██████ | 30/50 [00:02<00:01, 13.83it/s]\n 64%|██████▍ | 32/50 [00:02<00:01, 13.82it/s]\n 68%|██████▊ | 34/50 [00:02<00:01, 13.85it/s]\n 72%|███████▏ | 36/50 [00:02<00:01, 13.89it/s]\n 76%|███████▌ | 38/50 [00:02<00:00, 13.96it/s]\n 80%|████████ | 40/50 [00:02<00:00, 13.99it/s]\n 84%|████████▍ | 42/50 [00:03<00:00, 13.98it/s]\n 88%|████████▊ | 44/50 [00:03<00:00, 13.99it/s]\n 92%|█████████▏| 46/50 [00:03<00:00, 14.02it/s]\n 96%|█████████▌| 48/50 [00:03<00:00, 14.03it/s]\n100%|██████████| 50/50 [00:03<00:00, 14.03it/s]\n100%|██████████| 50/50 [00:03<00:00, 13.88it/s]",
"metrics": {
"predict_time": 4.014421,
"total_time": 4.051034
},
"output": [
"https://replicate.delivery/pbxt/gwHvsqVebO1YEa3ExElUj2pAIvTQiy6V17MDSUv1eetKAo7fA/out-0.png"
],
"started_at": "2022-11-07T23:00:17.133179Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/53ifcjhayjdlpae36e3mrt2yoa",
"cancel": "https://api.replicate.com/v1/predictions/53ifcjhayjdlpae36e3mrt2yoa/cancel"
},
"version": "c695c63e1110c879b4b9e40a90f13e7dc5313ffa21d1ceb9d347be19876b1bb9"
}
Using seed: 512312
0%| | 0/50 [00:00<?, ?it/s]
4%|▍ | 2/50 [00:00<00:03, 12.17it/s]
8%|▊ | 4/50 [00:00<00:03, 13.17it/s]
12%|█▏ | 6/50 [00:00<00:03, 13.58it/s]
16%|█▌ | 8/50 [00:00<00:03, 13.72it/s]
20%|██ | 10/50 [00:00<00:02, 13.77it/s]
24%|██▍ | 12/50 [00:00<00:02, 13.83it/s]
28%|██▊ | 14/50 [00:01<00:02, 13.93it/s]
32%|███▏ | 16/50 [00:01<00:02, 13.99it/s]
36%|███▌ | 18/50 [00:01<00:02, 13.99it/s]
40%|████ | 20/50 [00:01<00:02, 13.99it/s]
44%|████▍ | 22/50 [00:01<00:02, 13.98it/s]
48%|████▊ | 24/50 [00:01<00:01, 13.91it/s]
52%|█████▏ | 26/50 [00:01<00:01, 13.90it/s]
56%|█████▌ | 28/50 [00:02<00:01, 13.81it/s]
60%|██████ | 30/50 [00:02<00:01, 13.83it/s]
64%|██████▍ | 32/50 [00:02<00:01, 13.82it/s]
68%|██████▊ | 34/50 [00:02<00:01, 13.85it/s]
72%|███████▏ | 36/50 [00:02<00:01, 13.89it/s]
76%|███████▌ | 38/50 [00:02<00:00, 13.96it/s]
80%|████████ | 40/50 [00:02<00:00, 13.99it/s]
84%|████████▍ | 42/50 [00:03<00:00, 13.98it/s]
88%|████████▊ | 44/50 [00:03<00:00, 13.99it/s]
92%|█████████▏| 46/50 [00:03<00:00, 14.02it/s]
96%|█████████▌| 48/50 [00:03<00:00, 14.03it/s]
100%|██████████| 50/50 [00:03<00:00, 14.03it/s]
100%|██████████| 50/50 [00:03<00:00, 13.88it/s]
This example was created by a different version, tstramer/spider-verse-diffusion:c695c63e.