Theme
Create Task lucataco/flux-dev-lora
POST
https://www.kkiai.com/replicate/v1/predictions
Official Documentation: https://replicate.com/lucataco/flux-dev-lora
Request Parameters
Authorization
Add the Authorization parameter to the Header, with the value being the Token concatenated after Bearer
Example: Authorization: Bearer ********************
Header Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
Authorization | string | Optional | Bearer {{YOUR_API_KEY}} |
Body Parameters (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
version | string | Optional | |
input | object | Optional | |
└ prompt | string | Required | |
└ hf_lora | string | Optional | URL from HF, Replicate, CivitAI or LoRA. Example: alvdansen/frosting_lane_flux |
└ lora_scale | number | Optional | Scale of LoRA weight. Default: 0.8. |
└ num_outputs | integer | Optional | Number of images to output. Default: 1. Min: 1, Max: 4. |
└ aspect_ratio | string | Optional | Aspect ratio of generated image. Default: "1:1". |
└ output_format | string | Optional | Format of output image. Default: "webp". |
└ guidance_scale | number | Optional | Guidance strength. Default: 3.5. Min: 0, Max: 10. |
└ output_quality | integer | Optional | Quality when saving output image, range 0 to 100. 100 is best quality, 0 is lowest quality. Not applicable to .png output. Default: 80. |
└ prompt_strength | number | Optional | Prompt strength (or denoising strength) when using image-to-image. 1.0 corresponds to completely destroying information in the image. Default: 0.8. |
└ num_inference_steps | integer | Optional | Number of inference steps. Default: 28. Min: 1, Max: 50. |
Request Example
json
{
"version": "lucataco/flux-dev-lora:091495765fa5ef2725a175a57b276ec30dc9d39c22d30410f2ede68a3eab66b3",
"input": {
"prompt": "a beautiful castle frstingln illustration",
"hf_lora": "alvdansen/frosting_lane_flux",
"lora_scale": 0.8,
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"num_inference_steps": 28
}
}cURL Example
bash
curl --location --request POST 'https://www.kkiai.com/replicate/v1/predictions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"version": "lucataco/flux-dev-lora:091495765fa5ef2725a175a57b276ec30dc9d39c22d30410f2ede68a3eab66b3",
"input": {
"prompt": "a beautiful castle frstingln illustration",
"hf_lora": "alvdansen/frosting_lane_flux",
"lora_scale": 0.8,
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"num_inference_steps": 28
}
}'Response
🟢 200 Success
Response Body
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Required | |
model | string | Required | |
version | string | Required | |
input | object | Required | |
└ aspect_ratio | string | Required | |
└ input_image | string | Required | |
└ output_format | string | Required | |
└ prompt | string | Required | |
└ prompt_upsampling | boolean | Required | |
└ safety_tolerance | integer | Required | |
logs | string | Required | |
output | null | Required | |
data_removed | boolean | Required | |
error | null | Required | |
status | string | Required | |
created_at | string | Required | |
urls | object | Required | |
└ cancel | string | Required | |
└ get | string | Required | |
└ stream | string | Required | |
└ web | string | Required |
Response Example
json
{
"id": "c9zn270jk1rj00crans8m6ssjc",
"model": "lucataco/flux-dev-lora",
"version": "091495765fa5ef2725a175a57b276ec30dc9d39c22d30410f2ede68a3eab66b3",
"input": {
"aspect_ratio": "1:1",
"guidance_scale": 3.5,
"hf_lora": "alvdansen/frosting_lane_flux",
"lora_scale": 0.8,
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a beautiful castle frstingln illustration",
"prompt_strength": 0.8
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-07-29T09:09:55.992Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/c9zn270jk1rj00crans8m6ssjc/cancel",
"get": "https://api.replicate.com/v1/predictions/c9zn270jk1rj00crans8m6ssjc",
"stream": "https://stream.replicate.com/v1/files/qoxq-37kfnrolbp7l2vy5f2ffduf6vyqye4savtprvsiikqzpcjbuejfa",
"web": "https://replicate.com/p/c9zn270jk1rj00crans8m6ssjc"
}
}