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 /tcs-sdxl-lora:b84384a9
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run cjwbw/tcs-sdxl-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cjwbw/tcs-sdxl-lora:b84384a91c526c4d0e7aeb8ced7de4132775cbe2a7be1b64231b6e143207e95d",
{
input: {
eta: 0.3,
prompt: "closeup portrait of 1 Persian princess, royal clothing, makeup, jewelry, wind-blown long hair, symmetric, desert, sands, dusty and foggy, sand storm, winds bokeh, depth of field, centered.",
negative_prompt: "",
num_inference_steps: 16
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", 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 cjwbw/tcs-sdxl-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cjwbw/tcs-sdxl-lora:b84384a91c526c4d0e7aeb8ced7de4132775cbe2a7be1b64231b6e143207e95d",
input={
"eta": 0.3,
"prompt": "closeup portrait of 1 Persian princess, royal clothing, makeup, jewelry, wind-blown long hair, symmetric, desert, sands, dusty and foggy, sand storm, winds bokeh, depth of field, centered.",
"negative_prompt": "",
"num_inference_steps": 16
}
)
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/tcs-sdxl-lora 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/tcs-sdxl-lora:b84384a91c526c4d0e7aeb8ced7de4132775cbe2a7be1b64231b6e143207e95d",
"input": {
"eta": 0.3,
"prompt": "closeup portrait of 1 Persian princess, royal clothing, makeup, jewelry, wind-blown long hair, symmetric, desert, sands, dusty and foggy, sand storm, winds bokeh, depth of field, centered.",
"negative_prompt": "",
"num_inference_steps": 16
}
}' \
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": "2024-03-04T00:46:08.955857Z",
"created_at": "2024-03-04T00:46:04.880508Z",
"data_removed": false,
"error": null,
"id": "vnyeu3lbnammj4sqjoxjlo35yq",
"input": {
"eta": 0.3,
"prompt": "closeup portrait of 1 Persian princess, royal clothing, makeup, jewelry, wind-blown long hair, symmetric, desert, sands, dusty and foggy, sand storm, winds bokeh, depth of field, centered.",
"negative_prompt": "",
"num_inference_steps": 16
},
"logs": "Using seed: 39033\n 0%| | 0/16 [00:00<?, ?it/s]\n 6%|▋ | 1/16 [00:00<00:01, 9.01it/s]\n 12%|█▎ | 2/16 [00:00<00:01, 8.93it/s]\n 19%|█▉ | 3/16 [00:00<00:01, 8.88it/s]\n 25%|██▌ | 4/16 [00:00<00:01, 8.88it/s]\n 31%|███▏ | 5/16 [00:00<00:01, 8.88it/s]\n 38%|███▊ | 6/16 [00:00<00:01, 8.86it/s]\n 44%|████▍ | 7/16 [00:00<00:01, 8.84it/s]\n 50%|█████ | 8/16 [00:00<00:00, 8.84it/s]\n 56%|█████▋ | 9/16 [00:01<00:00, 8.84it/s]\n 62%|██████▎ | 10/16 [00:01<00:00, 8.82it/s]\n 69%|██████▉ | 11/16 [00:01<00:00, 8.81it/s]\n 75%|███████▌ | 12/16 [00:01<00:00, 8.81it/s]\n 81%|████████▏ | 13/16 [00:01<00:00, 8.81it/s]\n 88%|████████▊ | 14/16 [00:01<00:00, 8.82it/s]\n 94%|█████████▍| 15/16 [00:01<00:00, 8.82it/s]\n100%|██████████| 16/16 [00:01<00:00, 8.83it/s]\n100%|██████████| 16/16 [00:01<00:00, 8.84it/s]",
"metrics": {
"predict_time": 4.032461,
"total_time": 4.075349
},
"output": "https://replicate.delivery/pbxt/XxcqFfQLJCwXekEZH9Ef4hoSMxmXM1nR9d7cMxvqE8se8yyJB/out.png",
"started_at": "2024-03-04T00:46:04.923396Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/vnyeu3lbnammj4sqjoxjlo35yq",
"cancel": "https://api.replicate.com/v1/predictions/vnyeu3lbnammj4sqjoxjlo35yq/cancel"
},
"version": "b84384a91c526c4d0e7aeb8ced7de4132775cbe2a7be1b64231b6e143207e95d"
}
Using seed: 39033
0%| | 0/16 [00:00<?, ?it/s]
6%|▋ | 1/16 [00:00<00:01, 9.01it/s]
12%|█▎ | 2/16 [00:00<00:01, 8.93it/s]
19%|█▉ | 3/16 [00:00<00:01, 8.88it/s]
25%|██▌ | 4/16 [00:00<00:01, 8.88it/s]
31%|███▏ | 5/16 [00:00<00:01, 8.88it/s]
38%|███▊ | 6/16 [00:00<00:01, 8.86it/s]
44%|████▍ | 7/16 [00:00<00:01, 8.84it/s]
50%|█████ | 8/16 [00:00<00:00, 8.84it/s]
56%|█████▋ | 9/16 [00:01<00:00, 8.84it/s]
62%|██████▎ | 10/16 [00:01<00:00, 8.82it/s]
69%|██████▉ | 11/16 [00:01<00:00, 8.81it/s]
75%|███████▌ | 12/16 [00:01<00:00, 8.81it/s]
81%|████████▏ | 13/16 [00:01<00:00, 8.81it/s]
88%|████████▊ | 14/16 [00:01<00:00, 8.82it/s]
94%|█████████▍| 15/16 [00:01<00:00, 8.82it/s]
100%|██████████| 16/16 [00:01<00:00, 8.83it/s]
100%|██████████| 16/16 [00:01<00:00, 8.84it/s]