typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": true,
"guidance_scale": 3,
"height": 1024,
"image": "https://replicate.delivery/pbxt/MSscG4DTsvrlJML6XfFd1U3JbuCjDm3rOB42qijufEEmkDok/1967-Centennial-3.jpg",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "png",
"output_quality": 80,
"prompt": "A tram TATRAT3 running a street. A vintage photo. 60s",
"prompt_strength": 0.5,
"width": 1024
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_TF1**********************************
This is your API token. Keep it to yourself.
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: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
go_fast: true,
guidance_scale: 3,
height: 1024,
image: "https://replicate.delivery/pbxt/MSscG4DTsvrlJML6XfFd1U3JbuCjDm3rOB42qijufEEmkDok/1967-Centennial-3.jpg",
lora_scale: 1,
megapixels: "1",
model: "dev",
num_inference_steps: 28,
num_outputs: 1,
output_format: "png",
output_quality: 80,
prompt: "A tram TATRAT3 running a street. A vintage photo. 60s",
prompt_strength: 0.5,
width: 1024
}
}
);
// 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=r8_TF1**********************************
This is your API token. Keep it to yourself.
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={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": True,
"guidance_scale": 3,
"height": 1024,
"image": "https://replicate.delivery/pbxt/MSscG4DTsvrlJML6XfFd1U3JbuCjDm3rOB42qijufEEmkDok/1967-Centennial-3.jpg",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "png",
"output_quality": 80,
"prompt": "A tram TATRAT3 running a street. A vintage photo. 60s",
"prompt_strength": 0.5,
"width": 1024
}
)
# 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=r8_TF1**********************************
This is your API token. Keep it to yourself.
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": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": true,
"guidance_scale": 3,
"height": 1024,
"image": "https://replicate.delivery/pbxt/MSscG4DTsvrlJML6XfFd1U3JbuCjDm3rOB42qijufEEmkDok/1967-Centennial-3.jpg",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "png",
"output_quality": 80,
"prompt": "A tram TATRAT3 running a street. A vintage photo. 60s",
"prompt_strength": 0.5,
"width": 1024
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "11jh7179wxrme0cmwvs8s07sac",
"model": "rinatkurmaev/flux-dev-lora-tatra-t3",
"version": "25b2bc71bd11c42a9e7ce2f91995ded93cc12f1f23d2cbb7fff77f3da1bb65c4",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": true,
"guidance_scale": 3,
"height": 1024,
"image": "https://replicate.delivery/pbxt/MSscG4DTsvrlJML6XfFd1U3JbuCjDm3rOB42qijufEEmkDok/1967-Centennial-3.jpg",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "png",
"output_quality": 80,
"prompt": "A tram TATRAT3 running a street. A vintage photo. 60s",
"prompt_strength": 0.5,
"width": 1024
},
"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",
"output": [
"https://replicate.delivery/xezq/0T2XbpF6XIozKFQVXuyK6SDJUCEylI3dbvRFNr9796twcVDF/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-02-08T19:04:26.855Z",
"started_at": "2025-02-08T19:04:28.463381Z",
"completed_at": "2025-02-08T19:04:34.624198Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/11jh7179wxrme0cmwvs8s07sac/cancel",
"get": "https://api.replicate.com/v1/predictions/11jh7179wxrme0cmwvs8s07sac",
"stream": "https://stream.replicate.com/v1/files/bcwr-wxzog3oitk6lzknsulpfsm5tasaj6v6tyiujja5iittmletpftra",
"web": "https://replicate.com/p/11jh7179wxrme0cmwvs8s07sac"
},
"metrics": {
"predict_time": 6.160816626,
"total_time": 7.769198
}
}
