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: "Painting of the orange cat Otto von Garfield, Count of Bismarck-Schönhausen, Duke of Lauenburg, Minister-President of Prussia. Depicted wearing a Prussian Pickelhaube and eating his favorite meal - lasagna.",
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": "Painting of the orange cat Otto von Garfield, Count of Bismarck-Schönhausen, Duke of Lauenburg, Minister-President of Prussia. Depicted wearing a Prussian Pickelhaube and eating his favorite meal - lasagna.",
"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": "Painting of the orange cat Otto von Garfield, Count of Bismarck-Schönhausen, Duke of Lauenburg, Minister-President of Prussia. Depicted wearing a Prussian Pickelhaube and eating his favorite meal - lasagna.",
"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:57.347044Z",
"created_at": "2024-03-04T00:46:47.287081Z",
"data_removed": false,
"error": null,
"id": "64wpt4dbhhrqorsrmzvph35jxm",
"input": {
"eta": 0.3,
"prompt": "Painting of the orange cat Otto von Garfield, Count of Bismarck-Schönhausen, Duke of Lauenburg, Minister-President of Prussia. Depicted wearing a Prussian Pickelhaube and eating his favorite meal - lasagna.",
"negative_prompt": "",
"num_inference_steps": 16
},
"logs": "Using seed: 44028\n 0%| | 0/16 [00:00<?, ?it/s]\n 6%|▋ | 1/16 [00:00<00:01, 8.94it/s]\n 12%|█▎ | 2/16 [00:00<00:01, 8.85it/s]\n 19%|█▉ | 3/16 [00:00<00:01, 8.83it/s]\n 25%|██▌ | 4/16 [00:00<00:01, 8.82it/s]\n 31%|███▏ | 5/16 [00:00<00:01, 8.83it/s]\n 38%|███▊ | 6/16 [00:00<00:01, 8.85it/s]\n 44%|████▍ | 7/16 [00:00<00:01, 8.85it/s]\n 50%|█████ | 8/16 [00:00<00:00, 8.86it/s]\n 56%|█████▋ | 9/16 [00:01<00:00, 8.86it/s]\n 62%|██████▎ | 10/16 [00:01<00:00, 8.86it/s]\n 69%|██████▉ | 11/16 [00:01<00:00, 8.86it/s]\n 75%|███████▌ | 12/16 [00:01<00:00, 8.86it/s]\n 81%|████████▏ | 13/16 [00:01<00:00, 8.86it/s]\n 88%|████████▊ | 14/16 [00:01<00:00, 8.85it/s]\n 94%|█████████▍| 15/16 [00:01<00:00, 8.84it/s]\n100%|██████████| 16/16 [00:01<00:00, 8.86it/s]\n100%|██████████| 16/16 [00:01<00:00, 8.85it/s]",
"metrics": {
"predict_time": 4.030744,
"total_time": 10.059963
},
"output": "https://replicate.delivery/pbxt/tFWf0eSkcGpVE0lNjM23tSXrHrV6TOfUFAjLYOa89oQBgZ5kA/out.png",
"started_at": "2024-03-04T00:46:53.316300Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/64wpt4dbhhrqorsrmzvph35jxm",
"cancel": "https://api.replicate.com/v1/predictions/64wpt4dbhhrqorsrmzvph35jxm/cancel"
},
"version": "b84384a91c526c4d0e7aeb8ced7de4132775cbe2a7be1b64231b6e143207e95d"
}
Using seed: 44028
0%| | 0/16 [00:00<?, ?it/s]
6%|▋ | 1/16 [00:00<00:01, 8.94it/s]
12%|█▎ | 2/16 [00:00<00:01, 8.85it/s]
19%|█▉ | 3/16 [00:00<00:01, 8.83it/s]
25%|██▌ | 4/16 [00:00<00:01, 8.82it/s]
31%|███▏ | 5/16 [00:00<00:01, 8.83it/s]
38%|███▊ | 6/16 [00:00<00:01, 8.85it/s]
44%|████▍ | 7/16 [00:00<00:01, 8.85it/s]
50%|█████ | 8/16 [00:00<00:00, 8.86it/s]
56%|█████▋ | 9/16 [00:01<00:00, 8.86it/s]
62%|██████▎ | 10/16 [00:01<00:00, 8.86it/s]
69%|██████▉ | 11/16 [00:01<00:00, 8.86it/s]
75%|███████▌ | 12/16 [00:01<00:00, 8.86it/s]
81%|████████▏ | 13/16 [00:01<00:00, 8.86it/s]
88%|████████▊ | 14/16 [00:01<00:00, 8.85it/s]
94%|█████████▍| 15/16 [00:01<00:00, 8.84it/s]
100%|██████████| 16/16 [00:01<00:00, 8.86it/s]
100%|██████████| 16/16 [00:01<00:00, 8.85it/s]