Readme
This model doesn't have a readme.
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run swk23/leia using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"swk23/leia:cebb8d7e0c331726ed622e45e6435537dea515d941c7cc3365bb64b77ae8256b",
{
input: {
model: "dev",
prompt: "A highly detailed digital painting of Leia Organa standing in a battle-ready stance, holding a red lightsaber ignited in her hand. She has an intense and determined expression, her brown eyes focused with unwavering resolve. Her hair is styled in intricate braids, reminiscent of her classic look but with a warrior's edge. She wears a dark, elegant outfit blending elements of her regal Alderaanian heritage with the practicality of a battle-hardened warrior—black and crimson robes with light armor plating. The background is a misty battlefield, illuminated by the eerie red glow of her saber, with sparks flying and remnants of a fallen enemy behind her. The scene is dramatic, with dynamic lighting emphasizing the contrast between the red blade and the cold environment.",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "21:9",
output_format: "jpg",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 28
}
}
);
// 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 swk23/leia using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"swk23/leia:cebb8d7e0c331726ed622e45e6435537dea515d941c7cc3365bb64b77ae8256b",
input={
"model": "dev",
"prompt": "A highly detailed digital painting of Leia Organa standing in a battle-ready stance, holding a red lightsaber ignited in her hand. She has an intense and determined expression, her brown eyes focused with unwavering resolve. Her hair is styled in intricate braids, reminiscent of her classic look but with a warrior's edge. She wears a dark, elegant outfit blending elements of her regal Alderaanian heritage with the practicality of a battle-hardened warrior—black and crimson robes with light armor plating. The background is a misty battlefield, illuminated by the eerie red glow of her saber, with sparks flying and remnants of a fallen enemy behind her. The scene is dramatic, with dynamic lighting emphasizing the contrast between the red blade and the cold environment.",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "21:9",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
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 swk23/leia 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": "swk23/leia:cebb8d7e0c331726ed622e45e6435537dea515d941c7cc3365bb64b77ae8256b",
"input": {
"model": "dev",
"prompt": "A highly detailed digital painting of Leia Organa standing in a battle-ready stance, holding a red lightsaber ignited in her hand. She has an intense and determined expression, her brown eyes focused with unwavering resolve. Her hair is styled in intricate braids, reminiscent of her classic look but with a warrior\'s edge. She wears a dark, elegant outfit blending elements of her regal Alderaanian heritage with the practicality of a battle-hardened warrior—black and crimson robes with light armor plating. The background is a misty battlefield, illuminated by the eerie red glow of her saber, with sparks flying and remnants of a fallen enemy behind her. The scene is dramatic, with dynamic lighting emphasizing the contrast between the red blade and the cold environment.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "21:9",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
}' \
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/swk23/leia@sha256:cebb8d7e0c331726ed622e45e6435537dea515d941c7cc3365bb64b77ae8256b \
-i 'model="dev"' \
-i $'prompt="A highly detailed digital painting of Leia Organa standing in a battle-ready stance, holding a red lightsaber ignited in her hand. She has an intense and determined expression, her brown eyes focused with unwavering resolve. Her hair is styled in intricate braids, reminiscent of her classic look but with a warrior\'s edge. She wears a dark, elegant outfit blending elements of her regal Alderaanian heritage with the practicality of a battle-hardened warrior—black and crimson robes with light armor plating. The background is a misty battlefield, illuminated by the eerie red glow of her saber, with sparks flying and remnants of a fallen enemy behind her. The scene is dramatic, with dynamic lighting emphasizing the contrast between the red blade and the cold environment."' \
-i 'go_fast=false' \
-i 'lora_scale=1' \
-i 'megapixels="1"' \
-i 'num_outputs=1' \
-i 'aspect_ratio="21:9"' \
-i 'output_format="jpg"' \
-i 'guidance_scale=3' \
-i 'output_quality=80' \
-i 'prompt_strength=0.8' \
-i 'extra_lora_scale=1' \
-i 'num_inference_steps=28'
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/swk23/leia@sha256:cebb8d7e0c331726ed622e45e6435537dea515d941c7cc3365bb64b77ae8256b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "model": "dev", "prompt": "A highly detailed digital painting of Leia Organa standing in a battle-ready stance, holding a red lightsaber ignited in her hand. She has an intense and determined expression, her brown eyes focused with unwavering resolve. Her hair is styled in intricate braids, reminiscent of her classic look but with a warrior\'s edge. She wears a dark, elegant outfit blending elements of her regal Alderaanian heritage with the practicality of a battle-hardened warrior—black and crimson robes with light armor plating. The background is a misty battlefield, illuminated by the eerie red glow of her saber, with sparks flying and remnants of a fallen enemy behind her. The scene is dramatic, with dynamic lighting emphasizing the contrast between the red blade and the cold environment.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "21:9", "output_format": "jpg", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ 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.010. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
{
"completed_at": "2025-02-11T22:26:15.165324Z",
"created_at": "2025-02-11T22:26:03.936000Z",
"data_removed": false,
"error": null,
"id": "gde6rs4m41rmc0cmywf9s92s0r",
"input": {
"model": "dev",
"prompt": "A highly detailed digital painting of Leia Organa standing in a battle-ready stance, holding a red lightsaber ignited in her hand. She has an intense and determined expression, her brown eyes focused with unwavering resolve. Her hair is styled in intricate braids, reminiscent of her classic look but with a warrior's edge. She wears a dark, elegant outfit blending elements of her regal Alderaanian heritage with the practicality of a battle-hardened warrior—black and crimson robes with light armor plating. The background is a misty battlefield, illuminated by the eerie red glow of her saber, with sparks flying and remnants of a fallen enemy behind her. The scene is dramatic, with dynamic lighting emphasizing the contrast between the red blade and the cold environment.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "21:9",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "free=4873754857472\nDownloading weights\n2025-02-11T22:26:03Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpufbjc5ih/weights url=https://replicate.delivery/xezq/1c0qDoeyhTRlAyNDpRXrul5fXg2wUrx659iqQmlv0oLQevcoA/trained_model.tar\n2025-02-11T22:26:06Z | INFO | [ Complete ] dest=/tmp/tmpufbjc5ih/weights size=\"172 MB\" total_elapsed=2.064s url=https://replicate.delivery/xezq/1c0qDoeyhTRlAyNDpRXrul5fXg2wUrx659iqQmlv0oLQevcoA/trained_model.tar\nDownloaded weights in 2.09s\nLoaded LoRAs in 4.53s\nUsing seed: 59014\nPrompt: A highly detailed digital painting of Leia Organa standing in a battle-ready stance, holding a red lightsaber ignited in her hand. She has an intense and determined expression, her brown eyes focused with unwavering resolve. Her hair is styled in intricate braids, reminiscent of her classic look but with a warrior's edge. She wears a dark, elegant outfit blending elements of her regal Alderaanian heritage with the practicality of a battle-hardened warrior—black and crimson robes with light armor plating. The background is a misty battlefield, illuminated by the eerie red glow of her saber, with sparks flying and remnants of a fallen enemy behind her. The scene is dramatic, with dynamic lighting emphasizing the contrast between the red blade and the cold environment.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:06, 4.28it/s]\n 7%|▋ | 2/28 [00:00<00:05, 4.83it/s]\n 11%|█ | 3/28 [00:00<00:05, 4.56it/s]\n 14%|█▍ | 4/28 [00:00<00:05, 4.45it/s]\n 18%|█▊ | 5/28 [00:01<00:05, 4.39it/s]\n 21%|██▏ | 6/28 [00:01<00:05, 4.36it/s]\n 25%|██▌ | 7/28 [00:01<00:04, 4.33it/s]\n 29%|██▊ | 8/28 [00:01<00:04, 4.32it/s]\n 32%|███▏ | 9/28 [00:02<00:04, 4.31it/s]\n 36%|███▌ | 10/28 [00:02<00:04, 4.30it/s]\n 39%|███▉ | 11/28 [00:02<00:03, 4.30it/s]\n 43%|████▎ | 12/28 [00:02<00:03, 4.29it/s]\n 46%|████▋ | 13/28 [00:02<00:03, 4.29it/s]\n 50%|█████ | 14/28 [00:03<00:03, 4.29it/s]\n 54%|█████▎ | 15/28 [00:03<00:03, 4.29it/s]\n 57%|█████▋ | 16/28 [00:03<00:02, 4.29it/s]\n 61%|██████ | 17/28 [00:03<00:02, 4.29it/s]\n 64%|██████▍ | 18/28 [00:04<00:02, 4.29it/s]\n 68%|██████▊ | 19/28 [00:04<00:02, 4.29it/s]\n 71%|███████▏ | 20/28 [00:04<00:01, 4.29it/s]\n 75%|███████▌ | 21/28 [00:04<00:01, 4.29it/s]\n 79%|███████▊ | 22/28 [00:05<00:01, 4.29it/s]\n 82%|████████▏ | 23/28 [00:05<00:01, 4.29it/s]\n 86%|████████▌ | 24/28 [00:05<00:00, 4.29it/s]\n 89%|████████▉ | 25/28 [00:05<00:00, 4.29it/s]\n 93%|█████████▎| 26/28 [00:06<00:00, 4.29it/s]\n 96%|█████████▋| 27/28 [00:06<00:00, 4.29it/s]\n100%|██████████| 28/28 [00:06<00:00, 4.29it/s]\n100%|██████████| 28/28 [00:06<00:00, 4.32it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 11.213323774,
"total_time": 11.229324
},
"output": [
"https://replicate.delivery/xezq/B1EXsthx1kL1IhrKswenEkfwNUdp3NWJB3aypv1aMe9OEwcoA/out-0.jpg"
],
"started_at": "2025-02-11T22:26:03.952000Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-4ahaf6iipz6nyjlmprbfli3mjhwog22o6qtycqp4s5av5db7waeq",
"get": "https://api.replicate.com/v1/predictions/gde6rs4m41rmc0cmywf9s92s0r",
"cancel": "https://api.replicate.com/v1/predictions/gde6rs4m41rmc0cmywf9s92s0r/cancel"
},
"version": "cebb8d7e0c331726ed622e45e6435537dea515d941c7cc3365bb64b77ae8256b"
}
free=4873754857472
Downloading weights
2025-02-11T22:26:03Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpufbjc5ih/weights url=https://replicate.delivery/xezq/1c0qDoeyhTRlAyNDpRXrul5fXg2wUrx659iqQmlv0oLQevcoA/trained_model.tar
2025-02-11T22:26:06Z | INFO | [ Complete ] dest=/tmp/tmpufbjc5ih/weights size="172 MB" total_elapsed=2.064s url=https://replicate.delivery/xezq/1c0qDoeyhTRlAyNDpRXrul5fXg2wUrx659iqQmlv0oLQevcoA/trained_model.tar
Downloaded weights in 2.09s
Loaded LoRAs in 4.53s
Using seed: 59014
Prompt: A highly detailed digital painting of Leia Organa standing in a battle-ready stance, holding a red lightsaber ignited in her hand. She has an intense and determined expression, her brown eyes focused with unwavering resolve. Her hair is styled in intricate braids, reminiscent of her classic look but with a warrior's edge. She wears a dark, elegant outfit blending elements of her regal Alderaanian heritage with the practicality of a battle-hardened warrior—black and crimson robes with light armor plating. The background is a misty battlefield, illuminated by the eerie red glow of her saber, with sparks flying and remnants of a fallen enemy behind her. The scene is dramatic, with dynamic lighting emphasizing the contrast between the red blade and the cold environment.
[!] txt2img mode
0%| | 0/28 [00:00<?, ?it/s]
4%|▎ | 1/28 [00:00<00:06, 4.28it/s]
7%|▋ | 2/28 [00:00<00:05, 4.83it/s]
11%|█ | 3/28 [00:00<00:05, 4.56it/s]
14%|█▍ | 4/28 [00:00<00:05, 4.45it/s]
18%|█▊ | 5/28 [00:01<00:05, 4.39it/s]
21%|██▏ | 6/28 [00:01<00:05, 4.36it/s]
25%|██▌ | 7/28 [00:01<00:04, 4.33it/s]
29%|██▊ | 8/28 [00:01<00:04, 4.32it/s]
32%|███▏ | 9/28 [00:02<00:04, 4.31it/s]
36%|███▌ | 10/28 [00:02<00:04, 4.30it/s]
39%|███▉ | 11/28 [00:02<00:03, 4.30it/s]
43%|████▎ | 12/28 [00:02<00:03, 4.29it/s]
46%|████▋ | 13/28 [00:02<00:03, 4.29it/s]
50%|█████ | 14/28 [00:03<00:03, 4.29it/s]
54%|█████▎ | 15/28 [00:03<00:03, 4.29it/s]
57%|█████▋ | 16/28 [00:03<00:02, 4.29it/s]
61%|██████ | 17/28 [00:03<00:02, 4.29it/s]
64%|██████▍ | 18/28 [00:04<00:02, 4.29it/s]
68%|██████▊ | 19/28 [00:04<00:02, 4.29it/s]
71%|███████▏ | 20/28 [00:04<00:01, 4.29it/s]
75%|███████▌ | 21/28 [00:04<00:01, 4.29it/s]
79%|███████▊ | 22/28 [00:05<00:01, 4.29it/s]
82%|████████▏ | 23/28 [00:05<00:01, 4.29it/s]
86%|████████▌ | 24/28 [00:05<00:00, 4.29it/s]
89%|████████▉ | 25/28 [00:05<00:00, 4.29it/s]
93%|█████████▎| 26/28 [00:06<00:00, 4.29it/s]
96%|█████████▋| 27/28 [00:06<00:00, 4.29it/s]
100%|██████████| 28/28 [00:06<00:00, 4.29it/s]
100%|██████████| 28/28 [00:06<00:00, 4.32it/s]
Total safe images: 1 out of 1
This model costs approximately $0.010 to run on Replicate, or 100 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia H100 GPU hardware. Predictions typically complete within 7 seconds.
This model doesn't have a readme.
This model is warm. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
This model costs approximately $0.010 to run on Replicate, but this varies depending on your inputs. View more.
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
free=4873754857472
Downloading weights
2025-02-11T22:26:03Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpufbjc5ih/weights url=https://replicate.delivery/xezq/1c0qDoeyhTRlAyNDpRXrul5fXg2wUrx659iqQmlv0oLQevcoA/trained_model.tar
2025-02-11T22:26:06Z | INFO | [ Complete ] dest=/tmp/tmpufbjc5ih/weights size="172 MB" total_elapsed=2.064s url=https://replicate.delivery/xezq/1c0qDoeyhTRlAyNDpRXrul5fXg2wUrx659iqQmlv0oLQevcoA/trained_model.tar
Downloaded weights in 2.09s
Loaded LoRAs in 4.53s
Using seed: 59014
Prompt: A highly detailed digital painting of Leia Organa standing in a battle-ready stance, holding a red lightsaber ignited in her hand. She has an intense and determined expression, her brown eyes focused with unwavering resolve. Her hair is styled in intricate braids, reminiscent of her classic look but with a warrior's edge. She wears a dark, elegant outfit blending elements of her regal Alderaanian heritage with the practicality of a battle-hardened warrior—black and crimson robes with light armor plating. The background is a misty battlefield, illuminated by the eerie red glow of her saber, with sparks flying and remnants of a fallen enemy behind her. The scene is dramatic, with dynamic lighting emphasizing the contrast between the red blade and the cold environment.
[!] txt2img mode
0%| | 0/28 [00:00<?, ?it/s]
4%|▎ | 1/28 [00:00<00:06, 4.28it/s]
7%|▋ | 2/28 [00:00<00:05, 4.83it/s]
11%|█ | 3/28 [00:00<00:05, 4.56it/s]
14%|█▍ | 4/28 [00:00<00:05, 4.45it/s]
18%|█▊ | 5/28 [00:01<00:05, 4.39it/s]
21%|██▏ | 6/28 [00:01<00:05, 4.36it/s]
25%|██▌ | 7/28 [00:01<00:04, 4.33it/s]
29%|██▊ | 8/28 [00:01<00:04, 4.32it/s]
32%|███▏ | 9/28 [00:02<00:04, 4.31it/s]
36%|███▌ | 10/28 [00:02<00:04, 4.30it/s]
39%|███▉ | 11/28 [00:02<00:03, 4.30it/s]
43%|████▎ | 12/28 [00:02<00:03, 4.29it/s]
46%|████▋ | 13/28 [00:02<00:03, 4.29it/s]
50%|█████ | 14/28 [00:03<00:03, 4.29it/s]
54%|█████▎ | 15/28 [00:03<00:03, 4.29it/s]
57%|█████▋ | 16/28 [00:03<00:02, 4.29it/s]
61%|██████ | 17/28 [00:03<00:02, 4.29it/s]
64%|██████▍ | 18/28 [00:04<00:02, 4.29it/s]
68%|██████▊ | 19/28 [00:04<00:02, 4.29it/s]
71%|███████▏ | 20/28 [00:04<00:01, 4.29it/s]
75%|███████▌ | 21/28 [00:04<00:01, 4.29it/s]
79%|███████▊ | 22/28 [00:05<00:01, 4.29it/s]
82%|████████▏ | 23/28 [00:05<00:01, 4.29it/s]
86%|████████▌ | 24/28 [00:05<00:00, 4.29it/s]
89%|████████▉ | 25/28 [00:05<00:00, 4.29it/s]
93%|█████████▎| 26/28 [00:06<00:00, 4.29it/s]
96%|█████████▋| 27/28 [00:06<00:00, 4.29it/s]
100%|██████████| 28/28 [00:06<00:00, 4.29it/s]
100%|██████████| 28/28 [00:06<00:00, 4.32it/s]
Total safe images: 1 out of 1