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.
jakedahn /flux-latentpop:c5e4432e
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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run jakedahn/flux-latentpop using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jakedahn/flux-latentpop:c5e4432e01d30a523f9ebf1af1ad9f7ce82adc6709ec3061a817d53ff3bb06cc",
{
input: {
model: "dev",
prompt: "screenprint tshirt design, a happy cat holding a sign that says \"I LOVE REPLICATE\", LNTP illustration style",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 2.5,
output_quality: 90,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 20
}
}
);
// 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 jakedahn/flux-latentpop using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jakedahn/flux-latentpop:c5e4432e01d30a523f9ebf1af1ad9f7ce82adc6709ec3061a817d53ff3bb06cc",
input={
"model": "dev",
"prompt": "screenprint tshirt design, a happy cat holding a sign that says \"I LOVE REPLICATE\", LNTP illustration style",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 2.5,
"output_quality": 90,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 20
}
)
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 jakedahn/flux-latentpop 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": "jakedahn/flux-latentpop:c5e4432e01d30a523f9ebf1af1ad9f7ce82adc6709ec3061a817d53ff3bb06cc",
"input": {
"model": "dev",
"prompt": "screenprint tshirt design, a happy cat holding a sign that says \\"I LOVE REPLICATE\\", LNTP illustration style",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 2.5,
"output_quality": 90,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 20
}
}' \
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-09-25T22:04:30.262889Z",
"created_at": "2024-09-25T22:04:04.682000Z",
"data_removed": false,
"error": null,
"id": "0g92prkys9rm20cj5cv8qenjr0",
"input": {
"model": "dev",
"prompt": "screenprint tshirt design, a happy cat holding a sign that says \"I LOVE REPLICATE\", LNTP illustration style",
"lora_scale": 1,
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 2.5,
"output_quality": 90,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 20,
"disable_safety_checker": false
},
"logs": "Using seed: 4485\nPrompt: screenprint tshirt design, a happy cat holding a sign that says \"I LOVE REPLICATE\", LNTP illustration style\n[!] txt2img mode\nUsing dev model\nLoaded LoRAs in 8.77s\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:05, 3.51it/s]\n 10%|█ | 2/20 [00:00<00:04, 3.97it/s]\n 15%|█▌ | 3/20 [00:00<00:04, 3.74it/s]\n 20%|██ | 4/20 [00:01<00:04, 3.64it/s]\n 25%|██▌ | 5/20 [00:01<00:04, 3.59it/s]\n 30%|███ | 6/20 [00:01<00:03, 3.56it/s]\n 35%|███▌ | 7/20 [00:01<00:03, 3.55it/s]\n 40%|████ | 8/20 [00:02<00:03, 3.53it/s]\n 45%|████▌ | 9/20 [00:02<00:03, 3.53it/s]\n 50%|█████ | 10/20 [00:02<00:02, 3.52it/s]\n 55%|█████▌ | 11/20 [00:03<00:02, 3.52it/s]\n 60%|██████ | 12/20 [00:03<00:02, 3.51it/s]\n 65%|██████▌ | 13/20 [00:03<00:01, 3.51it/s]\n 70%|███████ | 14/20 [00:03<00:01, 3.51it/s]\n 75%|███████▌ | 15/20 [00:04<00:01, 3.51it/s]\n 80%|████████ | 16/20 [00:04<00:01, 3.51it/s]\n 85%|████████▌ | 17/20 [00:04<00:00, 3.51it/s]\n 90%|█████████ | 18/20 [00:05<00:00, 3.50it/s]\n 95%|█████████▌| 19/20 [00:05<00:00, 3.50it/s]\n100%|██████████| 20/20 [00:05<00:00, 3.50it/s]\n100%|██████████| 20/20 [00:05<00:00, 3.54it/s]",
"metrics": {
"predict_time": 14.983668764,
"total_time": 25.580889
},
"output": [
"https://replicate.delivery/yhqm/6oe5Mae5xNrptUvEdwdWLxKkiEIWdPpgfJd44JkXSmUdXHBnA/out-0.webp"
],
"started_at": "2024-09-25T22:04:15.279220Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/0g92prkys9rm20cj5cv8qenjr0",
"cancel": "https://api.replicate.com/v1/predictions/0g92prkys9rm20cj5cv8qenjr0/cancel"
},
"version": "c5e4432e01d30a523f9ebf1af1ad9f7ce82adc6709ec3061a817d53ff3bb06cc"
}
Using seed: 4485
Prompt: screenprint tshirt design, a happy cat holding a sign that says "I LOVE REPLICATE", LNTP illustration style
[!] txt2img mode
Using dev model
Loaded LoRAs in 8.77s
0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:05, 3.51it/s]
10%|█ | 2/20 [00:00<00:04, 3.97it/s]
15%|█▌ | 3/20 [00:00<00:04, 3.74it/s]
20%|██ | 4/20 [00:01<00:04, 3.64it/s]
25%|██▌ | 5/20 [00:01<00:04, 3.59it/s]
30%|███ | 6/20 [00:01<00:03, 3.56it/s]
35%|███▌ | 7/20 [00:01<00:03, 3.55it/s]
40%|████ | 8/20 [00:02<00:03, 3.53it/s]
45%|████▌ | 9/20 [00:02<00:03, 3.53it/s]
50%|█████ | 10/20 [00:02<00:02, 3.52it/s]
55%|█████▌ | 11/20 [00:03<00:02, 3.52it/s]
60%|██████ | 12/20 [00:03<00:02, 3.51it/s]
65%|██████▌ | 13/20 [00:03<00:01, 3.51it/s]
70%|███████ | 14/20 [00:03<00:01, 3.51it/s]
75%|███████▌ | 15/20 [00:04<00:01, 3.51it/s]
80%|████████ | 16/20 [00:04<00:01, 3.51it/s]
85%|████████▌ | 17/20 [00:04<00:00, 3.51it/s]
90%|█████████ | 18/20 [00:05<00:00, 3.50it/s]
95%|█████████▌| 19/20 [00:05<00:00, 3.50it/s]
100%|██████████| 20/20 [00:05<00:00, 3.50it/s]
100%|██████████| 20/20 [00:05<00:00, 3.54it/s]