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.
lightweight-ai /model1:50ba509b
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 lightweight-ai/model1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lightweight-ai/model1:50ba509b1ab55f8c169b3098c14c2b9a54c614bf8108e7c494cba8f3e5f1bc36",
{
input: {
seed: 7019597644749028000,
width: 1024,
height: 640,
prompt: "Solo, A Young man blonde hair green chaket whith hood and grey pants and black boots and green and blue eyes the chaket is broken and exposed the abs, lineart\nBRAKE \nin street of big city post-apocalyptic , morning time , destroyed buildings, abandoned cars, debris on the street\nIlustration high quality, detailed background, 8k",
lora_name: "Siesta",
lora_scale: 0.9,
num_outputs: 1,
output_format: "png",
output_quality: 100,
prompt_strength: 0.8,
num_inference_steps: 4
}
}
);
// 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 lightweight-ai/model1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lightweight-ai/model1:50ba509b1ab55f8c169b3098c14c2b9a54c614bf8108e7c494cba8f3e5f1bc36",
input={
"seed": 7019597644749028000,
"width": 1024,
"height": 640,
"prompt": "Solo, A Young man blonde hair green chaket whith hood and grey pants and black boots and green and blue eyes the chaket is broken and exposed the abs, lineart\nBRAKE \nin street of big city post-apocalyptic , morning time , destroyed buildings, abandoned cars, debris on the street\nIlustration high quality, detailed background, 8k",
"lora_name": "Siesta",
"lora_scale": 0.9,
"num_outputs": 1,
"output_format": "png",
"output_quality": 100,
"prompt_strength": 0.8,
"num_inference_steps": 4
}
)
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 lightweight-ai/model1 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": "lightweight-ai/model1:50ba509b1ab55f8c169b3098c14c2b9a54c614bf8108e7c494cba8f3e5f1bc36",
"input": {
"seed": 7019597644749028000,
"width": 1024,
"height": 640,
"prompt": "Solo, A Young man blonde hair green chaket whith hood and grey pants and black boots and green and blue eyes the chaket is broken and exposed the abs, lineart\\nBRAKE \\nin street of big city post-apocalyptic , morning time , destroyed buildings, abandoned cars, debris on the street\\nIlustration high quality, detailed background, 8k",
"lora_name": "Siesta",
"lora_scale": 0.9,
"num_outputs": 1,
"output_format": "png",
"output_quality": 100,
"prompt_strength": 0.8,
"num_inference_steps": 4
}
}' \
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-11-12T10:15:31.406522Z",
"created_at": "2024-11-12T10:15:25.371000Z",
"data_removed": false,
"error": null,
"id": "ndnza27kqdrj40ck3zfanjydgm",
"input": {
"seed": 7019597644749028000,
"width": 1024,
"height": 640,
"prompt": "Solo, A Young man blonde hair green chaket whith hood and grey pants and black boots and green and blue eyes the chaket is broken and exposed the abs, lineart\nBRAKE \nin street of big city post-apocalyptic , morning time , destroyed buildings, abandoned cars, debris on the street\nIlustration high quality, detailed background, 8k",
"lora_name": "Siesta",
"lora_scale": 0.9,
"num_outputs": 1,
"output_format": "png",
"output_quality": 100,
"prompt_strength": 0.8,
"num_inference_steps": 4
},
"logs": "Using seed: 7019597644749028000\nPrompt: Solo, A Young man blonde hair green chaket whith hood and grey pants and black boots and green and blue eyes the chaket is broken and exposed the abs, lineart\nBRAKE\nin street of big city post-apocalyptic , morning time , destroyed buildings, abandoned cars, debris on the street\nIlustration high quality, detailed background, 8k\ntxt2img mode\nDownloading LoRA weights from - safetensor URL: https://sg-model-store.s3.ap-northeast-2.amazonaws.com/System/Lora/Siesta/v2.0/Siesta.safetensors\nLoading LoRA took: 4.25 seconds\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:01, 2.80it/s]\n 50%|█████ | 2/4 [00:00<00:00, 3.16it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 3.03it/s]\n100%|██████████| 4/4 [00:01<00:00, 2.97it/s]\n100%|██████████| 4/4 [00:01<00:00, 2.99it/s]",
"metrics": {
"predict_time": 6.027365585,
"total_time": 6.035522
},
"output": [
"https://replicate.delivery/yhqm/1VU3pyvqOkpWL11I85BixlEBuz5pdby4LPwJtAIVY7xwcD8E/out-0.png"
],
"started_at": "2024-11-12T10:15:25.379156Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/qoxq-h7tlvzphfaj6dhwv4jp2mvcgjmmhcyfnaoyehabmccj3bqr2q3ea",
"get": "https://api.replicate.com/v1/predictions/ndnza27kqdrj40ck3zfanjydgm",
"cancel": "https://api.replicate.com/v1/predictions/ndnza27kqdrj40ck3zfanjydgm/cancel"
},
"version": "50ba509b1ab55f8c169b3098c14c2b9a54c614bf8108e7c494cba8f3e5f1bc36"
}
Using seed: 7019597644749028000
Prompt: Solo, A Young man blonde hair green chaket whith hood and grey pants and black boots and green and blue eyes the chaket is broken and exposed the abs, lineart
BRAKE
in street of big city post-apocalyptic , morning time , destroyed buildings, abandoned cars, debris on the street
Ilustration high quality, detailed background, 8k
txt2img mode
Downloading LoRA weights from - safetensor URL: https://sg-model-store.s3.ap-northeast-2.amazonaws.com/System/Lora/Siesta/v2.0/Siesta.safetensors
Loading LoRA took: 4.25 seconds
0%| | 0/4 [00:00<?, ?it/s]
25%|██▌ | 1/4 [00:00<00:01, 2.80it/s]
50%|█████ | 2/4 [00:00<00:00, 3.16it/s]
75%|███████▌ | 3/4 [00:00<00:00, 3.03it/s]
100%|██████████| 4/4 [00:01<00:00, 2.97it/s]
100%|██████████| 4/4 [00:01<00:00, 2.99it/s]