You're looking at a specific version of this model. Jump to the model overview.
playgroundai /playground-v2.5-1024px-aesthetic:a45f82a1
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 playgroundai/playground-v2.5-1024px-aesthetic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"playgroundai/playground-v2.5-1024px-aesthetic:a45f82a1382bed5c7aeb861dac7c7d191b0fdf74d8d57c4a0e6ed7d4d0bf7d24",
{
input: {
width: 1024,
height: 1024,
prompt: "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
scheduler: "DPMSolver++",
num_outputs: 1,
guidance_scale: 3,
apply_watermark: true,
negative_prompt: "ugly, deformed, noisy, blurry, distorted",
prompt_strength: 0.8,
num_inference_steps: 25
}
}
);
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 playgroundai/playground-v2.5-1024px-aesthetic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"playgroundai/playground-v2.5-1024px-aesthetic:a45f82a1382bed5c7aeb861dac7c7d191b0fdf74d8d57c4a0e6ed7d4d0bf7d24",
input={
"width": 1024,
"height": 1024,
"prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
"scheduler": "DPMSolver++",
"num_outputs": 1,
"guidance_scale": 3,
"apply_watermark": True,
"negative_prompt": "ugly, deformed, noisy, blurry, distorted",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
)
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 playgroundai/playground-v2.5-1024px-aesthetic 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": "a45f82a1382bed5c7aeb861dac7c7d191b0fdf74d8d57c4a0e6ed7d4d0bf7d24",
"input": {
"width": 1024,
"height": 1024,
"prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
"scheduler": "DPMSolver++",
"num_outputs": 1,
"guidance_scale": 3,
"apply_watermark": true,
"negative_prompt": "ugly, deformed, noisy, blurry, distorted",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
}' \
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/playgroundai/playground-v2.5-1024px-aesthetic@sha256:a45f82a1382bed5c7aeb861dac7c7d191b0fdf74d8d57c4a0e6ed7d4d0bf7d24 \
-i 'width=1024' \
-i 'height=1024' \
-i 'prompt="Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"' \
-i 'scheduler="DPMSolver++"' \
-i 'num_outputs=1' \
-i 'guidance_scale=3' \
-i 'apply_watermark=true' \
-i 'negative_prompt="ugly, deformed, noisy, blurry, distorted"' \
-i 'prompt_strength=0.8' \
-i 'num_inference_steps=25'
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/playgroundai/playground-v2.5-1024px-aesthetic@sha256:a45f82a1382bed5c7aeb861dac7c7d191b0fdf74d8d57c4a0e6ed7d4d0bf7d24
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "scheduler": "DPMSolver++", "num_outputs": 1, "guidance_scale": 3, "apply_watermark": true, "negative_prompt": "ugly, deformed, noisy, blurry, distorted", "prompt_strength": 0.8, "num_inference_steps": 25 } }' \ 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.16. 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-03-15T21:00:51.212675Z",
"created_at": "2024-03-15T20:59:27.831539Z",
"data_removed": false,
"error": null,
"id": "hhow2slbfyrxyaxtbucbhzwcti",
"input": {
"width": 1024,
"height": 1024,
"prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
"scheduler": "DPMSolver++",
"num_outputs": 1,
"guidance_scale": 3,
"apply_watermark": true,
"negative_prompt": "ugly, deformed, noisy, blurry, distorted",
"prompt_strength": 0.8,
"num_inference_steps": 25
},
"logs": "Using seed: 2478151516\nPrompt: Astronaut in a jungle, cold color palette, muted colors, detailed, 8k\ntxt2img mode\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:07, 3.06it/s]\n 12%|█▏ | 3/25 [00:00<00:04, 5.13it/s]\n 16%|█▌ | 4/25 [00:00<00:04, 5.08it/s]\n 20%|██ | 5/25 [00:01<00:03, 5.05it/s]\n 24%|██▍ | 6/25 [00:01<00:03, 5.03it/s]\n 28%|██▊ | 7/25 [00:01<00:03, 5.00it/s]\n 32%|███▏ | 8/25 [00:01<00:03, 4.99it/s]\n 36%|███▌ | 9/25 [00:01<00:03, 4.98it/s]\n 40%|████ | 10/25 [00:02<00:03, 4.98it/s]\n 44%|████▍ | 11/25 [00:02<00:02, 4.98it/s]\n 48%|████▊ | 12/25 [00:02<00:02, 4.97it/s]\n 52%|█████▏ | 13/25 [00:02<00:02, 4.96it/s]\n 56%|█████▌ | 14/25 [00:02<00:02, 4.96it/s]\n 60%|██████ | 15/25 [00:03<00:02, 4.97it/s]\n 64%|██████▍ | 16/25 [00:03<00:01, 4.97it/s]\n 68%|██████▊ | 17/25 [00:03<00:01, 4.96it/s]\n 72%|███████▏ | 18/25 [00:03<00:01, 4.96it/s]\n 76%|███████▌ | 19/25 [00:03<00:01, 4.96it/s]\n 80%|████████ | 20/25 [00:04<00:01, 4.96it/s]\n 84%|████████▍ | 21/25 [00:04<00:00, 4.96it/s]\n 88%|████████▊ | 22/25 [00:04<00:00, 4.95it/s]\n 92%|█████████▏| 23/25 [00:04<00:00, 4.95it/s]\n 96%|█████████▌| 24/25 [00:04<00:00, 4.95it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.95it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.94it/s]",
"metrics": {
"predict_time": 8.01971,
"total_time": 83.381136
},
"output": [
"https://replicate.delivery/pbxt/XAK4XRgpjYaCGRrm9yxzO2bacj4XTE1Nl6bwaXKOHKYApJoE/out-0.png"
],
"started_at": "2024-03-15T21:00:43.192965Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/hhow2slbfyrxyaxtbucbhzwcti",
"cancel": "https://api.replicate.com/v1/predictions/hhow2slbfyrxyaxtbucbhzwcti/cancel"
},
"version": "a45f82a1382bed5c7aeb861dac7c7d191b0fdf74d8d57c4a0e6ed7d4d0bf7d24"
}
Using seed: 2478151516
Prompt: Astronaut in a jungle, cold color palette, muted colors, detailed, 8k
txt2img mode
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:07, 3.06it/s]
12%|█▏ | 3/25 [00:00<00:04, 5.13it/s]
16%|█▌ | 4/25 [00:00<00:04, 5.08it/s]
20%|██ | 5/25 [00:01<00:03, 5.05it/s]
24%|██▍ | 6/25 [00:01<00:03, 5.03it/s]
28%|██▊ | 7/25 [00:01<00:03, 5.00it/s]
32%|███▏ | 8/25 [00:01<00:03, 4.99it/s]
36%|███▌ | 9/25 [00:01<00:03, 4.98it/s]
40%|████ | 10/25 [00:02<00:03, 4.98it/s]
44%|████▍ | 11/25 [00:02<00:02, 4.98it/s]
48%|████▊ | 12/25 [00:02<00:02, 4.97it/s]
52%|█████▏ | 13/25 [00:02<00:02, 4.96it/s]
56%|█████▌ | 14/25 [00:02<00:02, 4.96it/s]
60%|██████ | 15/25 [00:03<00:02, 4.97it/s]
64%|██████▍ | 16/25 [00:03<00:01, 4.97it/s]
68%|██████▊ | 17/25 [00:03<00:01, 4.96it/s]
72%|███████▏ | 18/25 [00:03<00:01, 4.96it/s]
76%|███████▌ | 19/25 [00:03<00:01, 4.96it/s]
80%|████████ | 20/25 [00:04<00:01, 4.96it/s]
84%|████████▍ | 21/25 [00:04<00:00, 4.96it/s]
88%|████████▊ | 22/25 [00:04<00:00, 4.95it/s]
92%|█████████▏| 23/25 [00:04<00:00, 4.95it/s]
96%|█████████▌| 24/25 [00:04<00:00, 4.95it/s]
100%|██████████| 25/25 [00:05<00:00, 4.95it/s]
100%|██████████| 25/25 [00:05<00:00, 4.94it/s]