Flux Kontext Lora | Text to Image
Generate images from text prompts using Flux Kontext with optional LoRA weights. Features adjustable generation speed via acceleration modes.
Quick Start
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-kontext-lora-text-to-image",
"version": "0.0.1",
"input": {
"prompt": "A mystical forest clearing with bioluminescent mushrooms and fireflies",
"image_size": "landscape_4_3",
"num_images": 1,
"guidance_scale": 2.5,
"num_inference_steps": 30,
"output_format": "png"
}
}'
Parameters
| Parameter |
Type |
Default |
Description |
acceleration |
string |
none |
Generation speed. Options: none, regular, high |
enable_safety_checker |
boolean |
true |
If set to true, the safety checker will be enabled |
guidance_scale |
number |
2.5 |
CFG scale controlling prompt adherence |
image_size |
string |
landscape_4_3 |
Size of the generated image. Options: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9 |
loras |
array |
false |
The LoRAs to use for image generation with custom weights |
num_images |
integer |
1 |
The number of images to generate |
num_inference_steps |
integer |
30 |
The number of inference steps to perform |
output_format |
string |
png |
Output format. Options: jpeg, png |
prompt |
string |
(empty) |
The prompt to generate the image with |
seed |
integer |
(empty) |
Random seed for reproducible generation |
Output
Examples
Fantasy Art with LoRA
{
"model": "flux-kontext-lora-text-to-image",
"version": "0.0.1",
"input": {
"prompt": "An epic dragon perched on a crumbling castle tower at sunset",
"image_size": "landscape_16_9",
"loras": [{"path": "https://example.com/fantasy-lora.safetensors", "scale": 0.85}],
"guidance_scale": 3.0,
"num_inference_steps": 30,
"output_format": "png"
}
}
Fast Product Mockup
{
"model": "flux-kontext-lora-text-to-image",
"version": "0.0.1",
"input": {
"prompt": "A sleek smartphone mockup on a marble desk with plants in soft studio lighting",
"image_size": "square_hd",
"acceleration": "high",
"guidance_scale": 2.5,
"num_inference_steps": 20,
"seed": 77
}
}
Related Models
Documentation
1---2name: flux-kontext-lora-text-to-image3description: Generate images from text using Flux Kontext with LoRA support. Trigger: Use when the user wants to create images using Flux Kontext, or requests 'flux kontext', 'kontext text to image', or 'generate image with kontext lora'.4---56# Flux Kontext Lora | Text to Image78Generate images from text prompts using Flux Kontext with optional LoRA weights. Features adjustable generation speed via acceleration modes.910## Quick Start1112```bash13curl -X POST https://api.eachlabs.ai/v1/prediction \14 -H "Content-Type: application/json" \15 -H "X-API-Key: $EACHLABS_API_KEY" \16 -d '{17 "model": "flux-kontext-lora-text-to-image",18 "version": "0.0.1",19 "input": {20 "prompt": "A mystical forest clearing with bioluminescent mushrooms and fireflies",21 "image_size": "landscape_4_3",22 "num_images": 1,23 "guidance_scale": 2.5,24 "num_inference_steps": 30,25 "output_format": "png"26 }27 }'28```2930## Parameters3132| Parameter | Type | Default | Description |33|-----------|------|---------|-------------|34| `acceleration` | string | `none` | Generation speed. Options: `none`, `regular`, `high` |35| `enable_safety_checker` | boolean | `true` | If set to true, the safety checker will be enabled |36| `guidance_scale` | number | `2.5` | CFG scale controlling prompt adherence |37| `image_size` | string | `landscape_4_3` | Size of the generated image. Options: `square_hd`, `square`, `portrait_4_3`, `portrait_16_9`, `landscape_4_3`, `landscape_16_9` |38| `loras` | array | `false` | The LoRAs to use for image generation with custom weights |39| `num_images` | integer | `1` | The number of images to generate |40| `num_inference_steps` | integer | `30` | The number of inference steps to perform |41| `output_format` | string | `png` | Output format. Options: `jpeg`, `png` |42| `prompt` | string | (empty) | The prompt to generate the image with |43| `seed` | integer | (empty) | Random seed for reproducible generation |4445## Output4647- **Type:** image4849## Examples5051### Fantasy Art with LoRA52```json53{54 "model": "flux-kontext-lora-text-to-image",55 "version": "0.0.1",56 "input": {57 "prompt": "An epic dragon perched on a crumbling castle tower at sunset",58 "image_size": "landscape_16_9",59 "loras": [{"path": "https://example.com/fantasy-lora.safetensors", "scale": 0.85}],60 "guidance_scale": 3.0,61 "num_inference_steps": 30,62 "output_format": "png"63 }64}65```6667### Fast Product Mockup68```json69{70 "model": "flux-kontext-lora-text-to-image",71 "version": "0.0.1",72 "input": {73 "prompt": "A sleek smartphone mockup on a marble desk with plants in soft studio lighting",74 "image_size": "square_hd",75 "acceleration": "high",76 "guidance_scale": 2.5,77 "num_inference_steps": 20,78 "seed": 7779 }80}81```8283## Related Models8485- [Juggernaut Flux Lora](../juggernaut-flux-lora/SKILL.md) - Flux-based image generation with LoRA86- [Flux Krea Lora Image to Image](../flux-krea-lora-image-to-image/SKILL.md) - Image-to-image with LoRA87- [Seedream V4 Text to Image](../seedream-v4-text-to-image/SKILL.md) - Text-to-image generation8889## Documentation9091- [EachLabs API Docs](https://docs.eachlabs.ai)