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.
justmalhar /flux-thumbnails:42799c2b
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 justmalhar/flux-thumbnails using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"justmalhar/flux-thumbnails:42799c2b58e0a6ca82d3a1d90f655f6386542e325d2017e3256b092189f567b8",
{
input: {
model: "dev",
prompt: "Thumbnail in the style of TOK, A map of the Korean Sophie with yellow barbed wire around it, text \"security\" in black on top and red for North Korea border saying that escape is no longer possible. Text below says \" replicate north korea . The word ' No Way' written at bottom right corner, text under small sign reading \"may be\". In white color font underneath showing South Sea to the south and Japan to west side of archipelago , aerial view of sea level to show water between two countries. colorful. Realistic. High resolution. --ar 128:61 —ar 16:9",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 4,
aspect_ratio: "16:9",
output_format: "webp",
guidance_scale: 3.5,
output_quality: 100,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 50
}
}
);
// 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 justmalhar/flux-thumbnails using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"justmalhar/flux-thumbnails:42799c2b58e0a6ca82d3a1d90f655f6386542e325d2017e3256b092189f567b8",
input={
"model": "dev",
"prompt": "Thumbnail in the style of TOK, A map of the Korean Sophie with yellow barbed wire around it, text \"security\" in black on top and red for North Korea border saying that escape is no longer possible. Text below says \" replicate north korea . The word ' No Way' written at bottom right corner, text under small sign reading \"may be\". In white color font underneath showing South Sea to the south and Japan to west side of archipelago , aerial view of sea level to show water between two countries. colorful. Realistic. High resolution. --ar 128:61 —ar 16:9",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 4,
"aspect_ratio": "16:9",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 50
}
)
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 justmalhar/flux-thumbnails 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": "justmalhar/flux-thumbnails:42799c2b58e0a6ca82d3a1d90f655f6386542e325d2017e3256b092189f567b8",
"input": {
"model": "dev",
"prompt": "Thumbnail in the style of TOK, A map of the Korean Sophie with yellow barbed wire around it, text \\"security\\" in black on top and red for North Korea border saying that escape is no longer possible. Text below says \\" replicate north korea . The word \' No Way\' written at bottom right corner, text under small sign reading \\"may be\\". In white color font underneath showing South Sea to the south and Japan to west side of archipelago , aerial view of sea level to show water between two countries. colorful. Realistic. High resolution. --ar 128:61 —ar 16:9",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 4,
"aspect_ratio": "16:9",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 50
}
}' \
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-08-22T09:47:19.155955Z",
"created_at": "2024-08-22T09:46:12.945000Z",
"data_removed": false,
"error": null,
"id": "zbpzkgdya5rm60chf5xawh0bq4",
"input": {
"model": "dev",
"prompt": "Thumbnail in the style of TOK, A map of the Korean Sophie with yellow barbed wire around it, text \"security\" in black on top and red for North Korea border saying that escape is no longer possible. Text below says \" replicate north korea . The word ' No Way' written at bottom right corner, text under small sign reading \"may be\". In white color font underneath showing South Sea to the south and Japan to west side of archipelago , aerial view of sea level to show water between two countries. colorful. Realistic. High resolution. --ar 128:61 —ar 16:9",
"lora_scale": 1,
"num_outputs": 4,
"aspect_ratio": "16:9",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 100,
"num_inference_steps": 50
},
"logs": "Using seed: 12479\nPrompt: Thumbnail in the style of TOK, A map of the Korean Sophie with yellow barbed wire around it, text \"security\" in black on top and red for North Korea border saying that escape is no longer possible. Text below says \" replicate north korea . The word ' No Way' written at bottom right corner, text under small sign reading \"may be\". In white color font underneath showing South Sea to the south and Japan to west side of archipelago , aerial view of sea level to show water between two countries. colorful. Realistic. High resolution. --ar 128:61 —ar 16:9\ntxt2img mode\nUsing dev model\nLoading LoRA weights\nEnsuring enough disk space...\nFree disk space: 9649564880896\nDownloading weights\n2024-08-22T09:46:17Z | INFO | [ Initiating ] chunk_size=150M dest=/src/weights-cache/97c19f42324058f7 url=https://replicate.delivery/yhqm/vLH3ZJVEeJ3SBanDU1Gp7nR3JZrYaIrLNMsIY7oD29jinXqJA/trained_model.tar\n2024-08-22T09:46:18Z | INFO | [ Complete ] dest=/src/weights-cache/97c19f42324058f7 size=\"172 MB\" total_elapsed=1.452s url=https://replicate.delivery/yhqm/vLH3ZJVEeJ3SBanDU1Gp7nR3JZrYaIrLNMsIY7oD29jinXqJA/trained_model.tar\nb''\nDownloaded weights in 1.487677812576294 seconds\nLoRA weights loaded successfully\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['color font underneath showing south sea to the south and japan to west side of archipelago, aerial view of sea level to show water between two countries. colorful. realistic. high resolution. -- ar 1 2 8 : 6 1 — ar 1 6 : 9', 'color font underneath showing south sea to the south and japan to west side of archipelago, aerial view of sea level to show water between two countries. colorful. realistic. high resolution. -- ar 1 2 8 : 6 1 — ar 1 6 : 9', 'color font underneath showing south sea to the south and japan to west side of archipelago, aerial view of sea level to show water between two countries. colorful. realistic. high resolution. -- ar 1 2 8 : 6 1 — ar 1 6 : 9', 'color font underneath showing south sea to the south and japan to west side of archipelago, aerial view of sea level to show water between two countries. colorful. realistic. high resolution. -- ar 1 2 8 : 6 1 — ar 1 6 : 9']\n 0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:00<00:48, 1.00it/s]\n 4%|▍ | 2/50 [00:01<00:41, 1.15it/s]\n 6%|▌ | 3/50 [00:02<00:43, 1.08it/s]\n 8%|▊ | 4/50 [00:03<00:43, 1.05it/s]\n 10%|█ | 5/50 [00:04<00:43, 1.03it/s]\n 12%|█▏ | 6/50 [00:05<00:43, 1.02it/s]\n 14%|█▍ | 7/50 [00:06<00:42, 1.01it/s]\n 16%|█▌ | 8/50 [00:07<00:41, 1.01it/s]\n 18%|█▊ | 9/50 [00:08<00:40, 1.01it/s]\n 20%|██ | 10/50 [00:09<00:39, 1.01it/s]\n 22%|██▏ | 11/50 [00:10<00:38, 1.00it/s]\n 24%|██▍ | 12/50 [00:11<00:37, 1.00it/s]\n 26%|██▌ | 13/50 [00:12<00:36, 1.00it/s]\n 28%|██▊ | 14/50 [00:13<00:35, 1.00it/s]\n 30%|███ | 15/50 [00:14<00:34, 1.00it/s]\n 32%|███▏ | 16/50 [00:15<00:33, 1.00it/s]\n 34%|███▍ | 17/50 [00:16<00:32, 1.00it/s]\n 36%|███▌ | 18/50 [00:17<00:31, 1.00it/s]\n 38%|███▊ | 19/50 [00:18<00:30, 1.00it/s]\n 40%|████ | 20/50 [00:19<00:30, 1.00s/it]\n 42%|████▏ | 21/50 [00:20<00:29, 1.00s/it]\n 44%|████▍ | 22/50 [00:21<00:28, 1.00s/it]\n 46%|████▌ | 23/50 [00:22<00:27, 1.00s/it]\n 48%|████▊ | 24/50 [00:23<00:26, 1.00s/it]\n 50%|█████ | 25/50 [00:24<00:25, 1.00s/it]\n 52%|█████▏ | 26/50 [00:25<00:24, 1.01s/it]\n 54%|█████▍ | 27/50 [00:26<00:23, 1.00s/it]\n 56%|█████▌ | 28/50 [00:27<00:22, 1.01s/it]\n 58%|█████▊ | 29/50 [00:28<00:21, 1.00s/it]\n 60%|██████ | 30/50 [00:29<00:20, 1.01s/it]\n 62%|██████▏ | 31/50 [00:30<00:19, 1.00s/it]\n 64%|██████▍ | 32/50 [00:31<00:18, 1.00s/it]\n 66%|██████▌ | 33/50 [00:32<00:17, 1.00s/it]\n 68%|██████▊ | 34/50 [00:33<00:16, 1.00s/it]\n 70%|███████ | 35/50 [00:34<00:15, 1.00s/it]\n 72%|███████▏ | 36/50 [00:35<00:14, 1.00s/it]\n 74%|███████▍ | 37/50 [00:36<00:13, 1.00s/it]\n 76%|███████▌ | 38/50 [00:37<00:12, 1.00s/it]\n 78%|███████▊ | 39/50 [00:38<00:11, 1.01s/it]\n 80%|████████ | 40/50 [00:39<00:10, 1.00s/it]\n 82%|████████▏ | 41/50 [00:40<00:09, 1.01s/it]\n 84%|████████▍ | 42/50 [00:41<00:08, 1.01s/it]\n 86%|████████▌ | 43/50 [00:42<00:07, 1.01s/it]\n 88%|████████▊ | 44/50 [00:43<00:06, 1.01s/it]\n 90%|█████████ | 45/50 [00:44<00:05, 1.01s/it]\n 92%|█████████▏| 46/50 [00:45<00:04, 1.01s/it]\n 94%|█████████▍| 47/50 [00:46<00:03, 1.01s/it]\n 96%|█████████▌| 48/50 [00:47<00:02, 1.01s/it]\n 98%|█████████▊| 49/50 [00:48<00:01, 1.01s/it]\n100%|██████████| 50/50 [00:49<00:00, 1.01s/it]\n100%|██████████| 50/50 [00:49<00:00, 1.00it/s]",
"metrics": {
"predict_time": 61.697797044,
"total_time": 66.210955
},
"output": [
"https://replicate.delivery/yhqm/JK4W5oHrHxauNJyVpgfiAcAYYyA3qhZX7Wv1ne5CeTZNZXqmA/out-0.webp",
"https://replicate.delivery/yhqm/4KCUgLRulKKeBCd4ex6LAT7hPlxFXgIOUrfykzKsEIaMZXqmA/out-1.webp",
"https://replicate.delivery/yhqm/qBMR1fxGVh3eepidqPlgBp19jjNvs9cU6Fiz93aoSbqMZXqmA/out-2.webp",
"https://replicate.delivery/yhqm/mUoRTr4XT86dPNezdhgfE0Enf1s7RN95kAHPkAXezt4cyuUNB/out-3.webp"
],
"started_at": "2024-08-22T09:46:17.458158Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/zbpzkgdya5rm60chf5xawh0bq4",
"cancel": "https://api.replicate.com/v1/predictions/zbpzkgdya5rm60chf5xawh0bq4/cancel"
},
"version": "42799c2b58e0a6ca82d3a1d90f655f6386542e325d2017e3256b092189f567b8"
}
Using seed: 12479
Prompt: Thumbnail in the style of TOK, A map of the Korean Sophie with yellow barbed wire around it, text "security" in black on top and red for North Korea border saying that escape is no longer possible. Text below says " replicate north korea . The word ' No Way' written at bottom right corner, text under small sign reading "may be". In white color font underneath showing South Sea to the south and Japan to west side of archipelago , aerial view of sea level to show water between two countries. colorful. Realistic. High resolution. --ar 128:61 —ar 16:9
txt2img mode
Using dev model
Loading LoRA weights
Ensuring enough disk space...
Free disk space: 9649564880896
Downloading weights
2024-08-22T09:46:17Z | INFO | [ Initiating ] chunk_size=150M dest=/src/weights-cache/97c19f42324058f7 url=https://replicate.delivery/yhqm/vLH3ZJVEeJ3SBanDU1Gp7nR3JZrYaIrLNMsIY7oD29jinXqJA/trained_model.tar
2024-08-22T09:46:18Z | INFO | [ Complete ] dest=/src/weights-cache/97c19f42324058f7 size="172 MB" total_elapsed=1.452s url=https://replicate.delivery/yhqm/vLH3ZJVEeJ3SBanDU1Gp7nR3JZrYaIrLNMsIY7oD29jinXqJA/trained_model.tar
b''
Downloaded weights in 1.487677812576294 seconds
LoRA weights loaded successfully
The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['color font underneath showing south sea to the south and japan to west side of archipelago, aerial view of sea level to show water between two countries. colorful. realistic. high resolution. -- ar 1 2 8 : 6 1 — ar 1 6 : 9', 'color font underneath showing south sea to the south and japan to west side of archipelago, aerial view of sea level to show water between two countries. colorful. realistic. high resolution. -- ar 1 2 8 : 6 1 — ar 1 6 : 9', 'color font underneath showing south sea to the south and japan to west side of archipelago, aerial view of sea level to show water between two countries. colorful. realistic. high resolution. -- ar 1 2 8 : 6 1 — ar 1 6 : 9', 'color font underneath showing south sea to the south and japan to west side of archipelago, aerial view of sea level to show water between two countries. colorful. realistic. high resolution. -- ar 1 2 8 : 6 1 — ar 1 6 : 9']
0%| | 0/50 [00:00<?, ?it/s]
2%|▏ | 1/50 [00:00<00:48, 1.00it/s]
4%|▍ | 2/50 [00:01<00:41, 1.15it/s]
6%|▌ | 3/50 [00:02<00:43, 1.08it/s]
8%|▊ | 4/50 [00:03<00:43, 1.05it/s]
10%|█ | 5/50 [00:04<00:43, 1.03it/s]
12%|█▏ | 6/50 [00:05<00:43, 1.02it/s]
14%|█▍ | 7/50 [00:06<00:42, 1.01it/s]
16%|█▌ | 8/50 [00:07<00:41, 1.01it/s]
18%|█▊ | 9/50 [00:08<00:40, 1.01it/s]
20%|██ | 10/50 [00:09<00:39, 1.01it/s]
22%|██▏ | 11/50 [00:10<00:38, 1.00it/s]
24%|██▍ | 12/50 [00:11<00:37, 1.00it/s]
26%|██▌ | 13/50 [00:12<00:36, 1.00it/s]
28%|██▊ | 14/50 [00:13<00:35, 1.00it/s]
30%|███ | 15/50 [00:14<00:34, 1.00it/s]
32%|███▏ | 16/50 [00:15<00:33, 1.00it/s]
34%|███▍ | 17/50 [00:16<00:32, 1.00it/s]
36%|███▌ | 18/50 [00:17<00:31, 1.00it/s]
38%|███▊ | 19/50 [00:18<00:30, 1.00it/s]
40%|████ | 20/50 [00:19<00:30, 1.00s/it]
42%|████▏ | 21/50 [00:20<00:29, 1.00s/it]
44%|████▍ | 22/50 [00:21<00:28, 1.00s/it]
46%|████▌ | 23/50 [00:22<00:27, 1.00s/it]
48%|████▊ | 24/50 [00:23<00:26, 1.00s/it]
50%|█████ | 25/50 [00:24<00:25, 1.00s/it]
52%|█████▏ | 26/50 [00:25<00:24, 1.01s/it]
54%|█████▍ | 27/50 [00:26<00:23, 1.00s/it]
56%|█████▌ | 28/50 [00:27<00:22, 1.01s/it]
58%|█████▊ | 29/50 [00:28<00:21, 1.00s/it]
60%|██████ | 30/50 [00:29<00:20, 1.01s/it]
62%|██████▏ | 31/50 [00:30<00:19, 1.00s/it]
64%|██████▍ | 32/50 [00:31<00:18, 1.00s/it]
66%|██████▌ | 33/50 [00:32<00:17, 1.00s/it]
68%|██████▊ | 34/50 [00:33<00:16, 1.00s/it]
70%|███████ | 35/50 [00:34<00:15, 1.00s/it]
72%|███████▏ | 36/50 [00:35<00:14, 1.00s/it]
74%|███████▍ | 37/50 [00:36<00:13, 1.00s/it]
76%|███████▌ | 38/50 [00:37<00:12, 1.00s/it]
78%|███████▊ | 39/50 [00:38<00:11, 1.01s/it]
80%|████████ | 40/50 [00:39<00:10, 1.00s/it]
82%|████████▏ | 41/50 [00:40<00:09, 1.01s/it]
84%|████████▍ | 42/50 [00:41<00:08, 1.01s/it]
86%|████████▌ | 43/50 [00:42<00:07, 1.01s/it]
88%|████████▊ | 44/50 [00:43<00:06, 1.01s/it]
90%|█████████ | 45/50 [00:44<00:05, 1.01s/it]
92%|█████████▏| 46/50 [00:45<00:04, 1.01s/it]
94%|█████████▍| 47/50 [00:46<00:03, 1.01s/it]
96%|█████████▌| 48/50 [00:47<00:02, 1.01s/it]
98%|█████████▊| 49/50 [00:48<00:01, 1.01s/it]
100%|██████████| 50/50 [00:49<00:00, 1.01s/it]
100%|██████████| 50/50 [00:49<00:00, 1.00it/s]