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:edc047cd
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:edc047cdeea08443ecd29dddc6b91c11d64345b50f198c00cdb360cb83daf525",
{
input: {
width: 640,
height: 1024,
prompt: "A mixed-media collage of a man in a sleek, modern suit. His face is partially obscured by torn newspaper clippings and splashes of paint, creating a layered effect that contrasts his polished appearance with the chaotic background.",
lora_name: "AzureAtlas",
lora_scale: 1,
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:edc047cdeea08443ecd29dddc6b91c11d64345b50f198c00cdb360cb83daf525",
input={
"width": 640,
"height": 1024,
"prompt": "A mixed-media collage of a man in a sleek, modern suit. His face is partially obscured by torn newspaper clippings and splashes of paint, creating a layered effect that contrasts his polished appearance with the chaotic background.",
"lora_name": "AzureAtlas",
"lora_scale": 1,
"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:edc047cdeea08443ecd29dddc6b91c11d64345b50f198c00cdb360cb83daf525",
"input": {
"width": 640,
"height": 1024,
"prompt": "A mixed-media collage of a man in a sleek, modern suit. His face is partially obscured by torn newspaper clippings and splashes of paint, creating a layered effect that contrasts his polished appearance with the chaotic background.",
"lora_name": "AzureAtlas",
"lora_scale": 1,
"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-12T09:35:36.070397Z",
"created_at": "2024-11-12T09:35:32.487000Z",
"data_removed": false,
"error": null,
"id": "eg0eyq3ggxrj20ck3yxbfsndjr",
"input": {
"width": 640,
"height": 1024,
"prompt": "A mixed-media collage of a man in a sleek, modern suit. His face is partially obscured by torn newspaper clippings and splashes of paint, creating a layered effect that contrasts his polished appearance with the chaotic background.",
"lora_name": "AzureAtlas",
"lora_scale": 1,
"num_outputs": 1,
"output_format": "png",
"output_quality": 100,
"prompt_strength": 0.8,
"num_inference_steps": 4
},
"logs": "Using seed: 30707\nPrompt: A mixed-media collage of a man in a sleek, modern suit. His face is partially obscured by torn newspaper clippings and splashes of paint, creating a layered effect that contrasts his polished appearance with the chaotic background.\ntxt2img mode\nDownloading LoRA weights from - safetensor URL: https://sg-model-store.s3.ap-northeast-2.amazonaws.com/System/Lora/AzureAtlas/v0.5/AzureAtlasv0.5.safetensors\nLoading LoRA took: 1.76 seconds\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:01, 2.89it/s]\n 50%|█████ | 2/4 [00:00<00:00, 3.33it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 3.12it/s]\n100%|██████████| 4/4 [00:01<00:00, 3.03it/s]\n100%|██████████| 4/4 [00:01<00:00, 3.07it/s]",
"metrics": {
"predict_time": 3.534660921,
"total_time": 3.583397
},
"output": [
"https://replicate.delivery/yhqm/WPGMBrUdHcoeD6EfZMyrAfkuORFmwNeJuWAF3e3wAufMaTD8E/out-0.png"
],
"started_at": "2024-11-12T09:35:32.535736Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/qoxq-7e6ip3ryhikjmocjr7vx7ajhfsesgrrvageplgh4xeb3ng474dka",
"get": "https://api.replicate.com/v1/predictions/eg0eyq3ggxrj20ck3yxbfsndjr",
"cancel": "https://api.replicate.com/v1/predictions/eg0eyq3ggxrj20ck3yxbfsndjr/cancel"
},
"version": "edc047cdeea08443ecd29dddc6b91c11d64345b50f198c00cdb360cb83daf525"
}
Using seed: 30707
Prompt: A mixed-media collage of a man in a sleek, modern suit. His face is partially obscured by torn newspaper clippings and splashes of paint, creating a layered effect that contrasts his polished appearance with the chaotic background.
txt2img mode
Downloading LoRA weights from - safetensor URL: https://sg-model-store.s3.ap-northeast-2.amazonaws.com/System/Lora/AzureAtlas/v0.5/AzureAtlasv0.5.safetensors
Loading LoRA took: 1.76 seconds
0%| | 0/4 [00:00<?, ?it/s]
25%|██▌ | 1/4 [00:00<00:01, 2.89it/s]
50%|█████ | 2/4 [00:00<00:00, 3.33it/s]
75%|███████▌ | 3/4 [00:00<00:00, 3.12it/s]
100%|██████████| 4/4 [00:01<00:00, 3.03it/s]
100%|██████████| 4/4 [00:01<00:00, 3.07it/s]