计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
flux-2-lora【效率与协作】Flux 2 | Text to Image Lora. Generate images using LoRA weights for specialized styles. Triggers: text to image, flux, lora, fine-tuned, style generation
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate images from text prompts with up to 3 LoRA weights for specialized style control. Supports URL, HuggingFace, and other LoRA sources.
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-2-lora",
"version": "0.0.1",
"input": {
"prompt": "a mystical forest with glowing mushrooms, fantasy art",
"loras": [{"path": "https://example.com/fantasy-lora.safetensors", "scale": 0.8}],
"image_size": "square_hd",
"guidance_scale": 2.5
}
}'
| Parameter | Type | Default | Description |
|---|---|---|---|
| acceleration | string | none | The acceleration level to use. enum: none, regular, high |
| enable_prompt_expansion | boolean | false | If set to true, the prompt will be expanded for better results. |
| enable_safety_checker | boolean | true | If set to true, the safety checker will be enabled. |
| guidance_scale | number | 2.5 | Guidance Scale controls how closely the model follows your prompt. |
| image_size | string | square_hd | The size of the generated image. enum: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9 |
| loras | array | List of LoRA weights to apply (maximum 3). URL, HuggingFace repo, or other sources. | |
| num_images | integer | 1 | The number of images to generate. |
| num_inference_steps | integer | 28 | The number of inference steps to perform. |
| output_format | string | png | The format of the generated image. enum: jpeg, png, webp |
| prompt | string | The prompt to generate an image from. | |
| seed | integer | The seed to use for the generation. |
Single LoRA generation:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-2-lora",
"version": "0.0.1",
"input": {
"prompt": "professional headshot, studio lighting, clean background",
"loras": [{"path": "https://example.com/portrait-lora.safetensors", "scale": 0.9}],
"image_size": "portrait_4_3",
"output_format": "jpeg",
"num_inference_steps": 30
}
}'
Multi-LoRA with acceleration:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-2-lora",
"version": "0.0.1",
"input": {
"prompt": "vintage car on a coastal highway, golden hour",
"loras": [
{"path": "https://example.com/vintage-lora.safetensors", "scale": 0.7},
{"path": "https://example.com/automotive-lora.safetensors", "scale": 0.6}
],
"acceleration": "high",
"image_size": "landscape_16_9",
"num_images": 3,
"seed": 42
}
}'