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: "Beautiful man, bubblegum pink, lemon yellow, minty blue, futuristic, high-detail, epic composition, watercolor.",
negative_prompt: "",
num_inference_steps: 8
}
}
);
// 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": "Beautiful man, bubblegum pink, lemon yellow, minty blue, futuristic, high-detail, epic composition, watercolor.",
"negative_prompt": "",
"num_inference_steps": 8
}
)
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": "Beautiful man, bubblegum pink, lemon yellow, minty blue, futuristic, high-detail, epic composition, watercolor.",
"negative_prompt": "",
"num_inference_steps": 8
}
}' \
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:44:15.887759Z",
"created_at": "2024-03-04T00:42:34.331268Z",
"data_removed": false,
"error": null,
"id": "eo4t32dbtfdc3ch4kctog64wem",
"input": {
"eta": 0.3,
"prompt": "Beautiful man, bubblegum pink, lemon yellow, minty blue, futuristic, high-detail, epic composition, watercolor.",
"negative_prompt": "",
"num_inference_steps": 8
},
"logs": "Using seed: 33644\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:01, 4.32it/s]\n 25%|██▌ | 2/8 [00:00<00:00, 6.23it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 7.22it/s]\n 50%|█████ | 4/8 [00:00<00:00, 7.81it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 8.17it/s]\n 75%|███████▌ | 6/8 [00:00<00:00, 8.40it/s]\n 88%|████████▊ | 7/8 [00:00<00:00, 8.57it/s]\n100%|██████████| 8/8 [00:01<00:00, 8.68it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.88it/s]",
"metrics": {
"predict_time": 3.359364,
"total_time": 101.556491
},
"output": "https://replicate.delivery/pbxt/hBEZiLkIkzLtAdngk7BajefyCTCIrdmLkoDiSJn7g8e8aZ5kA/out.png",
"started_at": "2024-03-04T00:44:12.528395Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/eo4t32dbtfdc3ch4kctog64wem",
"cancel": "https://api.replicate.com/v1/predictions/eo4t32dbtfdc3ch4kctog64wem/cancel"
},
"version": "b84384a91c526c4d0e7aeb8ced7de4132775cbe2a7be1b64231b6e143207e95d"
}
Using seed: 33644
0%| | 0/8 [00:00<?, ?it/s]
12%|█▎ | 1/8 [00:00<00:01, 4.32it/s]
25%|██▌ | 2/8 [00:00<00:00, 6.23it/s]
38%|███▊ | 3/8 [00:00<00:00, 7.22it/s]
50%|█████ | 4/8 [00:00<00:00, 7.81it/s]
62%|██████▎ | 5/8 [00:00<00:00, 8.17it/s]
75%|███████▌ | 6/8 [00:00<00:00, 8.40it/s]
88%|████████▊ | 7/8 [00:00<00:00, 8.57it/s]
100%|██████████| 8/8 [00:01<00:00, 8.68it/s]
100%|██████████| 8/8 [00:01<00:00, 7.88it/s]