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.
rinatkurmaev /flux-dev-lora-tatra-t3:25b2bc71
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 rinatkurmaev/flux-dev-lora-tatra-t3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"rinatkurmaev/flux-dev-lora-tatra-t3:25b2bc71bd11c42a9e7ce2f91995ded93cc12f1f23d2cbb7fff77f3da1bb65c4",
{
input: {
image: "https://replicate.delivery/pbxt/MSscG4DTsvrlJML6XfFd1U3JbuCjDm3rOB42qijufEEmkDok/1967-Centennial-3.jpg",
model: "dev",
width: 1024,
height: 1024,
prompt: "A tram TATRAT3 running a street. A vintage photo. 60s",
go_fast: true,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "png",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.5,
extra_lora_scale: 1,
num_inference_steps: 28
}
}
);
// 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 rinatkurmaev/flux-dev-lora-tatra-t3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"rinatkurmaev/flux-dev-lora-tatra-t3:25b2bc71bd11c42a9e7ce2f91995ded93cc12f1f23d2cbb7fff77f3da1bb65c4",
input={
"image": "https://replicate.delivery/pbxt/MSscG4DTsvrlJML6XfFd1U3JbuCjDm3rOB42qijufEEmkDok/1967-Centennial-3.jpg",
"model": "dev",
"width": 1024,
"height": 1024,
"prompt": "A tram TATRAT3 running a street. A vintage photo. 60s",
"go_fast": True,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.5,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
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 rinatkurmaev/flux-dev-lora-tatra-t3 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": "rinatkurmaev/flux-dev-lora-tatra-t3:25b2bc71bd11c42a9e7ce2f91995ded93cc12f1f23d2cbb7fff77f3da1bb65c4",
"input": {
"image": "https://replicate.delivery/pbxt/MSscG4DTsvrlJML6XfFd1U3JbuCjDm3rOB42qijufEEmkDok/1967-Centennial-3.jpg",
"model": "dev",
"width": 1024,
"height": 1024,
"prompt": "A tram TATRAT3 running a street. A vintage photo. 60s",
"go_fast": true,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.5,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
}' \
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": "2025-02-08T19:04:34.624198Z",
"created_at": "2025-02-08T19:04:26.855000Z",
"data_removed": false,
"error": null,
"id": "11jh7179wxrme0cmwvs8s07sac",
"input": {
"image": "https://replicate.delivery/pbxt/MSscG4DTsvrlJML6XfFd1U3JbuCjDm3rOB42qijufEEmkDok/1967-Centennial-3.jpg",
"model": "dev",
"width": 1024,
"height": 1024,
"prompt": "A tram TATRAT3 running a street. A vintage photo. 60s",
"go_fast": true,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.5,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "Img2img and inpainting not supported with fast fp8 inference; will run in bf16\nfree=28152046182400\nDownloading weights\n2025-02-08T19:04:28Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpc9zp4coz/weights url=https://replicate.delivery/xezq/5wg4NzY5IOIuMZ4bhf8BTSUhf8hq4vj2AWECTkhWETqANDNUA/trained_model.tar\n2025-02-08T19:04:31Z | INFO | [ Complete ] dest=/tmp/tmpc9zp4coz/weights size=\"215 MB\" total_elapsed=2.675s url=https://replicate.delivery/xezq/5wg4NzY5IOIuMZ4bhf8BTSUhf8hq4vj2AWECTkhWETqANDNUA/trained_model.tar\nDownloaded weights in 2.70s\nLoaded LoRAs in 3.27s\nUsing seed: 60731\nPrompt: A tram TATRAT3 running a street. A vintage photo. 60s\n[!] Resizing input image from 720x480 to 720x480\n[!] img2img mode\n 0%| | 0/14 [00:00<?, ?it/s]\n 7%|▋ | 1/14 [00:00<00:10, 1.26it/s]\n 14%|█▍ | 2/14 [00:00<00:04, 2.54it/s]\n 21%|██▏ | 3/14 [00:01<00:02, 3.78it/s]\n 29%|██▊ | 4/14 [00:01<00:02, 4.89it/s]\n 36%|███▌ | 5/14 [00:01<00:01, 5.85it/s]\n 43%|████▎ | 6/14 [00:01<00:01, 6.64it/s]\n 50%|█████ | 7/14 [00:01<00:00, 7.25it/s]\n 57%|█████▋ | 8/14 [00:01<00:00, 7.72it/s]\n 64%|██████▍ | 9/14 [00:01<00:00, 8.07it/s]\n 71%|███████▏ | 10/14 [00:01<00:00, 8.33it/s]\n 79%|███████▊ | 11/14 [00:01<00:00, 8.51it/s]\n 86%|████████▌ | 12/14 [00:02<00:00, 8.64it/s]\n 93%|█████████▎| 13/14 [00:02<00:00, 8.73it/s]\n100%|██████████| 14/14 [00:02<00:00, 8.80it/s]\n100%|██████████| 14/14 [00:02<00:00, 6.23it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 6.160816626,
"total_time": 7.769198
},
"output": [
"https://replicate.delivery/xezq/0T2XbpF6XIozKFQVXuyK6SDJUCEylI3dbvRFNr9796twcVDF/out-0.png"
],
"started_at": "2025-02-08T19:04:28.463381Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-wxzog3oitk6lzknsulpfsm5tasaj6v6tyiujja5iittmletpftra",
"get": "https://api.replicate.com/v1/predictions/11jh7179wxrme0cmwvs8s07sac",
"cancel": "https://api.replicate.com/v1/predictions/11jh7179wxrme0cmwvs8s07sac/cancel"
},
"version": "25b2bc71bd11c42a9e7ce2f91995ded93cc12f1f23d2cbb7fff77f3da1bb65c4"
}
Img2img and inpainting not supported with fast fp8 inference; will run in bf16
free=28152046182400
Downloading weights
2025-02-08T19:04:28Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpc9zp4coz/weights url=https://replicate.delivery/xezq/5wg4NzY5IOIuMZ4bhf8BTSUhf8hq4vj2AWECTkhWETqANDNUA/trained_model.tar
2025-02-08T19:04:31Z | INFO | [ Complete ] dest=/tmp/tmpc9zp4coz/weights size="215 MB" total_elapsed=2.675s url=https://replicate.delivery/xezq/5wg4NzY5IOIuMZ4bhf8BTSUhf8hq4vj2AWECTkhWETqANDNUA/trained_model.tar
Downloaded weights in 2.70s
Loaded LoRAs in 3.27s
Using seed: 60731
Prompt: A tram TATRAT3 running a street. A vintage photo. 60s
[!] Resizing input image from 720x480 to 720x480
[!] img2img mode
0%| | 0/14 [00:00<?, ?it/s]
7%|▋ | 1/14 [00:00<00:10, 1.26it/s]
14%|█▍ | 2/14 [00:00<00:04, 2.54it/s]
21%|██▏ | 3/14 [00:01<00:02, 3.78it/s]
29%|██▊ | 4/14 [00:01<00:02, 4.89it/s]
36%|███▌ | 5/14 [00:01<00:01, 5.85it/s]
43%|████▎ | 6/14 [00:01<00:01, 6.64it/s]
50%|█████ | 7/14 [00:01<00:00, 7.25it/s]
57%|█████▋ | 8/14 [00:01<00:00, 7.72it/s]
64%|██████▍ | 9/14 [00:01<00:00, 8.07it/s]
71%|███████▏ | 10/14 [00:01<00:00, 8.33it/s]
79%|███████▊ | 11/14 [00:01<00:00, 8.51it/s]
86%|████████▌ | 12/14 [00:02<00:00, 8.64it/s]
93%|█████████▎| 13/14 [00:02<00:00, 8.73it/s]
100%|██████████| 14/14 [00:02<00:00, 8.80it/s]
100%|██████████| 14/14 [00:02<00:00, 6.23it/s]
Total safe images: 1 out of 1