typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance": 3,
"lora": "prithivMLmods/Flux-Long-Toon-LoRA",
"lora_scale": 1,
"megapixels": "1",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "jpg",
"output_quality": 80,
"prompt": "Long toons, a close-up of a cartoon characters face is featured in a vibrant red backdrop. The characters head is adorned with a gray hoodie, a red t-shirt, and a pair of pink earbuds. His eyes, a nose, and mustache are adorned with tiny white dots, adding a pop of color to the scene. His hair is a mix of black and gray, while his ears are a darker shade of pink.",
"prompt_strength": 0.8,
"seed": 0,
"speed_mode": "Extra Juiced π₯"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_1pB**********************************
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 prunaai/flux.1-dev-lora using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"prunaai/flux.1-dev-lora:19048f659cedeb72d7bbf6a3c4ee8fc79998e2c3b440ba489b44ac028489e8b1",
{
input: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
guidance: 3,
lora: "prithivMLmods/Flux-Long-Toon-LoRA",
lora_scale: 1,
megapixels: "1",
num_inference_steps: 28,
num_outputs: 1,
output_format: "jpg",
output_quality: 80,
prompt: "Long toons, a close-up of a cartoon characters face is featured in a vibrant red backdrop. The characters head is adorned with a gray hoodie, a red t-shirt, and a pair of pink earbuds. His eyes, a nose, and mustache are adorned with tiny white dots, adding a pop of color to the scene. His hair is a mix of black and gray, while his ears are a darker shade of pink.",
prompt_strength: 0.8,
seed: 0,
speed_mode: "Extra Juiced π₯"
}
}
);
// 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_1pB**********************************
This is your API token. Keep it to yourself.
import replicate
Run prunaai/flux.1-dev-lora using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"prunaai/flux.1-dev-lora:19048f659cedeb72d7bbf6a3c4ee8fc79998e2c3b440ba489b44ac028489e8b1",
input={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance": 3,
"lora": "prithivMLmods/Flux-Long-Toon-LoRA",
"lora_scale": 1,
"megapixels": "1",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "jpg",
"output_quality": 80,
"prompt": "Long toons, a close-up of a cartoon characters face is featured in a vibrant red backdrop. The characters head is adorned with a gray hoodie, a red t-shirt, and a pair of pink earbuds. His eyes, a nose, and mustache are adorned with tiny white dots, adding a pop of color to the scene. His hair is a mix of black and gray, while his ears are a darker shade of pink.",
"prompt_strength": 0.8,
"seed": 0,
"speed_mode": "Extra Juiced π₯"
}
)
# 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_1pB**********************************
This is your API token. Keep it to yourself.
Run prunaai/flux.1-dev-lora 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": "prunaai/flux.1-dev-lora:19048f659cedeb72d7bbf6a3c4ee8fc79998e2c3b440ba489b44ac028489e8b1",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance": 3,
"lora": "prithivMLmods/Flux-Long-Toon-LoRA",
"lora_scale": 1,
"megapixels": "1",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "jpg",
"output_quality": 80,
"prompt": "Long toons, a close-up of a cartoon characters face is featured in a vibrant red backdrop. The characters head is adorned with a gray hoodie, a red t-shirt, and a pair of pink earbuds. His eyes, a nose, and mustache are adorned with tiny white dots, adding a pop of color to the scene. His hair is a mix of black and gray, while his ears are a darker shade of pink.",
"prompt_strength": 0.8,
"seed": 0,
"speed_mode": "Extra Juiced π₯"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicateβs HTTP API reference docs.
{
"id": "ya0ms3bbsdrma0cqs8dtmz7f50",
"model": "prunaai/flux.1-dev-lora",
"version": "19048f659cedeb72d7bbf6a3c4ee8fc79998e2c3b440ba489b44ac028489e8b1",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance": 3,
"lora": "prithivMLmods/Flux-Long-Toon-LoRA",
"lora_scale": 1,
"megapixels": "1",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "jpg",
"output_quality": 80,
"prompt": "Long toons, a close-up of a cartoon characters face is featured in a vibrant red backdrop. The characters head is adorned with a gray hoodie, a red t-shirt, and a pair of pink earbuds. His eyes, a nose, and mustache are adorned with tiny white dots, adding a pop of color to the scene. His hair is a mix of black and gray, while his ears are a darker shade of pink.",
"prompt_strength": 0.8,
"seed": 0,
"speed_mode": "Extra Juiced π₯"
},
"logs": "Loading LoRAs took 0.000s\n 0%| | 0/28 [00:00<?, ?it/s]\n 54%|ββββββ | 15/28 [00:01<00:01, 10.55it/s]\n100%|ββββββββββ| 28/28 [00:01<00:00, 14.67it/s]\nImage generation took 2.114s\nImage saving took 0.006s",
"output": [
"https://replicate.delivery/xezq/ixSFHQQBelX3MKrVweXg5vyCAayFilzcBJYzJB5KFys2Yp8UA/output_0_0.jpeg"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-02T07:48:04.171Z",
"started_at": "2025-07-02T07:48:04.180015Z",
"completed_at": "2025-07-02T07:48:06.304359Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/ya0ms3bbsdrma0cqs8dtmz7f50/cancel",
"get": "https://api.replicate.com/v1/predictions/ya0ms3bbsdrma0cqs8dtmz7f50",
"stream": "https://stream.replicate.com/v1/files/bcwr-wiibutcjvy6oy2cznwr6zp2wceryrojvgxeq6cab4htgna2vc7za",
"web": "https://replicate.com/p/ya0ms3bbsdrma0cqs8dtmz7f50"
},
"metrics": {
"predict_time": 2.124343155,
"total_time": 2.133359
}
}