Prediction
cesarvega/my-model-astrea-v2:5f41e3976581ee396f2d589d517d93a01551b4b6079361799f2dc1bfde9fe3c6ID
hwpt9kq5csrm80cmxcpvj1v744
Status
Succeeded
Source
Web
Hardware
H100
Total duration
Created
Input
- model
- dev
- prompt
- Generate a photo of ASTREA in a fantasy-themed royal ball, wearing an extravagant crystal-embellished gown with a diamond tiara, inside a lavish palace ballroom filled with chandeliers.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 6.57
- output_quality
- 80
- prompt_strength
- 0.85
- extra_lora_scale
- 1
- num_inference_steps
- 35
{
"model": "dev",
"prompt": "Generate a photo of ASTREA in a fantasy-themed royal ball, wearing an extravagant crystal-embellished gown with a diamond tiara, inside a lavish palace ballroom filled with chandeliers.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 6.57,
"output_quality": 80,
"prompt_strength": 0.85,
"extra_lora_scale": 1,
"num_inference_steps": 35
}
Install Replicate’s Node.js client library:
npm install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run cesarvega/my-model-astrea-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cesarvega/my-model-astrea-v2:5f41e3976581ee396f2d589d517d93a01551b4b6079361799f2dc1bfde9fe3c6",
{
input: {
model: "dev",
prompt: "Generate a photo of ASTREA in a fantasy-themed royal ball, wearing an extravagant crystal-embellished gown with a diamond tiara, inside a lavish palace ballroom filled with chandeliers.",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 6.57,
output_quality: 80,
prompt_strength: 0.85,
extra_lora_scale: 1,
num_inference_steps: 35
}
}
);
// 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.
Install Replicate’s Python client library:
pip install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:
import replicate
Run cesarvega/my-model-astrea-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cesarvega/my-model-astrea-v2:5f41e3976581ee396f2d589d517d93a01551b4b6079361799f2dc1bfde9fe3c6",
input={
"model": "dev",
"prompt": "Generate a photo of ASTREA in a fantasy-themed royal ball, wearing an extravagant crystal-embellished gown with a diamond tiara, inside a lavish palace ballroom filled with chandeliers.",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 6.57,
"output_quality": 80,
"prompt_strength": 0.85,
"extra_lora_scale": 1,
"num_inference_steps": 35
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cesarvega/my-model-astrea-v2 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": "cesarvega/my-model-astrea-v2:5f41e3976581ee396f2d589d517d93a01551b4b6079361799f2dc1bfde9fe3c6",
"input": {
"model": "dev",
"prompt": "Generate a photo of ASTREA in a fantasy-themed royal ball, wearing an extravagant crystal-embellished gown with a diamond tiara, inside a lavish palace ballroom filled with chandeliers.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 6.57,
"output_quality": 80,
"prompt_strength": 0.85,
"extra_lora_scale": 1,
"num_inference_steps": 35
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{
"completed_at": "2025-02-09T14:47:30.152108Z",
"created_at": "2025-02-09T14:47:21.190000Z",
"data_removed": false,
"error": null,
"id": "hwpt9kq5csrm80cmxcpvj1v744",
"input": {
"model": "dev",
"prompt": "Generate a photo of ASTREA in a fantasy-themed royal ball, wearing an extravagant crystal-embellished gown with a diamond tiara, inside a lavish palace ballroom filled with chandeliers.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 6.57,
"output_quality": 80,
"prompt_strength": 0.85,
"extra_lora_scale": 1,
"num_inference_steps": 35
},
"logs": "Weights already loaded\nLoaded LoRAs in 0.02s\nUsing seed: 13353\nPrompt: Generate a photo of ASTREA in a fantasy-themed royal ball, wearing an extravagant crystal-embellished gown with a diamond tiara, inside a lavish palace ballroom filled with chandeliers.\n[!] txt2img mode\n 0%| | 0/35 [00:00<?, ?it/s]\n 3%|▎ | 1/35 [00:00<00:08, 4.03it/s]\n 6%|▌ | 2/35 [00:00<00:07, 4.55it/s]\n 9%|▊ | 3/35 [00:00<00:07, 4.30it/s]\n 11%|█▏ | 4/35 [00:00<00:07, 4.19it/s]\n 14%|█▍ | 5/35 [00:01<00:07, 4.13it/s]\n 17%|█▋ | 6/35 [00:01<00:07, 4.09it/s]\n 20%|██ | 7/35 [00:01<00:06, 4.07it/s]\n 23%|██▎ | 8/35 [00:01<00:06, 4.05it/s]\n 26%|██▌ | 9/35 [00:02<00:06, 4.04it/s]\n 29%|██▊ | 10/35 [00:02<00:06, 4.04it/s]\n 31%|███▏ | 11/35 [00:02<00:05, 4.03it/s]\n 34%|███▍ | 12/35 [00:02<00:05, 4.03it/s]\n 37%|███▋ | 13/35 [00:03<00:05, 4.02it/s]\n 40%|████ | 14/35 [00:03<00:05, 4.03it/s]\n 43%|████▎ | 15/35 [00:03<00:04, 4.03it/s]\n 46%|████▌ | 16/35 [00:03<00:04, 4.02it/s]\n 49%|████▊ | 17/35 [00:04<00:04, 4.02it/s]\n 51%|█████▏ | 18/35 [00:04<00:04, 4.02it/s]\n 54%|█████▍ | 19/35 [00:04<00:03, 4.02it/s]\n 57%|█████▋ | 20/35 [00:04<00:03, 4.02it/s]\n 60%|██████ | 21/35 [00:05<00:03, 4.02it/s]\n 63%|██████▎ | 22/35 [00:05<00:03, 4.02it/s]\n 66%|██████▌ | 23/35 [00:05<00:02, 4.02it/s]\n 69%|██████▊ | 24/35 [00:05<00:02, 4.02it/s]\n 71%|███████▏ | 25/35 [00:06<00:02, 4.02it/s]\n 74%|███████▍ | 26/35 [00:06<00:02, 4.03it/s]\n 77%|███████▋ | 27/35 [00:06<00:01, 4.03it/s]\n 80%|████████ | 28/35 [00:06<00:01, 4.02it/s]\n 83%|████████▎ | 29/35 [00:07<00:01, 4.02it/s]\n 86%|████████▌ | 30/35 [00:07<00:01, 4.02it/s]\n 89%|████████▊ | 31/35 [00:07<00:00, 4.02it/s]\n 91%|█████████▏| 32/35 [00:07<00:00, 4.01it/s]\n 94%|█████████▍| 33/35 [00:08<00:00, 4.02it/s]\n 97%|█████████▋| 34/35 [00:08<00:00, 4.02it/s]\n100%|██████████| 35/35 [00:08<00:00, 4.02it/s]\n100%|██████████| 35/35 [00:08<00:00, 4.04it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 8.95539773,
"total_time": 8.962108
},
"output": [
"https://replicate.delivery/xezq/JnP5gxGiCb76FdeUuApMSmp9WgclRkUYJ1FeUjt6YXvCInNUA/out-0.webp"
],
"started_at": "2025-02-09T14:47:21.196710Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-gj5lfwytqql7toexghdiwrjwwd5lyb3hmmqk3h7aruoqd2wymmca",
"get": "https://api.replicate.com/v1/predictions/hwpt9kq5csrm80cmxcpvj1v744",
"cancel": "https://api.replicate.com/v1/predictions/hwpt9kq5csrm80cmxcpvj1v744/cancel"
},
"version": "5f41e3976581ee396f2d589d517d93a01551b4b6079361799f2dc1bfde9fe3c6"
}
Generated in
Weights already loaded
Loaded LoRAs in 0.02s
Using seed: 13353
Prompt: Generate a photo of ASTREA in a fantasy-themed royal ball, wearing an extravagant crystal-embellished gown with a diamond tiara, inside a lavish palace ballroom filled with chandeliers.
[!] txt2img mode
0%| | 0/35 [00:00<?, ?it/s]
3%|▎ | 1/35 [00:00<00:08, 4.03it/s]
6%|▌ | 2/35 [00:00<00:07, 4.55it/s]
9%|▊ | 3/35 [00:00<00:07, 4.30it/s]
11%|█▏ | 4/35 [00:00<00:07, 4.19it/s]
14%|█▍ | 5/35 [00:01<00:07, 4.13it/s]
17%|█▋ | 6/35 [00:01<00:07, 4.09it/s]
20%|██ | 7/35 [00:01<00:06, 4.07it/s]
23%|██▎ | 8/35 [00:01<00:06, 4.05it/s]
26%|██▌ | 9/35 [00:02<00:06, 4.04it/s]
29%|██▊ | 10/35 [00:02<00:06, 4.04it/s]
31%|███▏ | 11/35 [00:02<00:05, 4.03it/s]
34%|███▍ | 12/35 [00:02<00:05, 4.03it/s]
37%|███▋ | 13/35 [00:03<00:05, 4.02it/s]
40%|████ | 14/35 [00:03<00:05, 4.03it/s]
43%|████▎ | 15/35 [00:03<00:04, 4.03it/s]
46%|████▌ | 16/35 [00:03<00:04, 4.02it/s]
49%|████▊ | 17/35 [00:04<00:04, 4.02it/s]
51%|█████▏ | 18/35 [00:04<00:04, 4.02it/s]
54%|█████▍ | 19/35 [00:04<00:03, 4.02it/s]
57%|█████▋ | 20/35 [00:04<00:03, 4.02it/s]
60%|██████ | 21/35 [00:05<00:03, 4.02it/s]
63%|██████▎ | 22/35 [00:05<00:03, 4.02it/s]
66%|██████▌ | 23/35 [00:05<00:02, 4.02it/s]
69%|██████▊ | 24/35 [00:05<00:02, 4.02it/s]
71%|███████▏ | 25/35 [00:06<00:02, 4.02it/s]
74%|███████▍ | 26/35 [00:06<00:02, 4.03it/s]
77%|███████▋ | 27/35 [00:06<00:01, 4.03it/s]
80%|████████ | 28/35 [00:06<00:01, 4.02it/s]
83%|████████▎ | 29/35 [00:07<00:01, 4.02it/s]
86%|████████▌ | 30/35 [00:07<00:01, 4.02it/s]
89%|████████▊ | 31/35 [00:07<00:00, 4.02it/s]
91%|█████████▏| 32/35 [00:07<00:00, 4.01it/s]
94%|█████████▍| 33/35 [00:08<00:00, 4.02it/s]
97%|█████████▋| 34/35 [00:08<00:00, 4.02it/s]
100%|██████████| 35/35 [00:08<00:00, 4.02it/s]
100%|██████████| 35/35 [00:08<00:00, 4.04it/s]
Total safe images: 1 out of 1