Vidu Q3 और Q3 Pro मॉडल पर 50% छूट · केवल WaveSpeedAI | 20 मई – 2 जून

Flux 2 Klein 4B Text to Image LoRA

wavespeed-ai /

FLUX.2 [klein] 4B with LoRA support is a compact 4-billion-parameter text-to-image model that delivers fast generation with quality results and LoRA customization. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

lora-support
Input
width
height
1024 × 1024 px
Range: 256 - 1536
If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Idle

elegant woman sitting on the front of a yacht, flowing ivory chiffon gown with long sleeves and high neck, soft pleats, cinched waist, fabric blowing in the wind, cinematic fashion photography, moody overcast sky, dramatic mountains and cliffs in the background, lake or sea setting, calm luxury atmosphere, natural makeup, gold statement earrings, dark hair in a low loose updo, editorial Vogue style, shallow depth of field, soft natural light, muted colors, ultra realistic, high detail, 85mm lens

$0.013per run·~76 / $1

ExamplesView all

elegant woman sitting on the front of a yacht, flowing ivory chiffon gown with long sleeves and high neck, soft pleats, cinched waist, fabric blowing in the wind, cinematic fashion photography, moody overcast sky, dramatic mountains and cliffs in the background, lake or sea setting, calm luxury atmosphere, natural makeup, gold statement earrings, dark hair in a low loose updo, editorial Vogue style, shallow depth of field, soft natural light, muted colors, ultra realistic, high detail, 85mm lens

elegant woman sitting on the front of a yacht, flowing ivory chiffon gown with long sleeves and high neck, soft pleats, cinched waist, fabric blowing in the wind, cinematic fashion photography, moody overcast sky, dramatic mountains and cliffs in the background, lake or sea setting, calm luxury atmosphere, natural makeup, gold statement earrings, dark hair in a low loose updo, editorial Vogue style, shallow depth of field, soft natural light, muted colors, ultra realistic, high detail, 85mm lens

Luxury brand editorial photograph, identical composition and color mood, deep olive-green fabric drapery background with soft vertical folds, same tone and texture, theatrical studio setting, a white-gloved hand from below holding a round brushed metal serving tray, perfectly centered, on the tray a minimalist arrangement of classic Cinnabon cinnamon rolls, warm golden-brown dough, thick cream cheese icing, subtle steam, above the tray an elegant female hand with dark red manicure and delicate ring gently reaching down to take one cinnamon roll, frozen refined gesture, identical lighting direction, soft cinematic shadows, muted luxury color palette of olive green, cream, brown and silver, high-end fashion brand aesthetic, museum-like stillness, realistic photography, no illustration, no CGI, no cartoon, vertical composition

Luxury brand editorial photograph, identical composition and color mood, deep olive-green fabric drapery background with soft vertical folds, same tone and texture, theatrical studio setting, a white-gloved hand from below holding a round brushed metal serving tray, perfectly centered, on the tray a minimalist arrangement of classic Cinnabon cinnamon rolls, warm golden-brown dough, thick cream cheese icing, subtle steam, above the tray an elegant female hand with dark red manicure and delicate ring gently reaching down to take one cinnamon roll, frozen refined gesture, identical lighting direction, soft cinematic shadows, muted luxury color palette of olive green, cream, brown and silver, high-end fashion brand aesthetic, museum-like stillness, realistic photography, no illustration, no CGI, no cartoon, vertical composition

a snowboarder carving through powder, leaving behind an arc of white on the pristine surface of deep blue snow. award-winning photography, in the style of realistic photography.

a snowboarder carving through powder, leaving behind an arc of white on the pristine surface of deep blue snow. award-winning photography, in the style of realistic photography.

a photograph in the style of Annie Leibowitz powerful 30 year old businessman in a thick black gabardine baggy deconstructed Yohji Yamoto suit with red pinstripes, white shirt with round collare and a thick short crimson satin tie in a top floor Art Deco style Office on the Empire State Building, decorated in a palette revolving around #7852A9 by David Hicks. All wood is black ebony and all lamps have modernist round glass shades in complementary tetradic yellow or green. The silk carpeting is in a complementary emerald shade with a psychedelic orchid leaf print --no distortion, fabric lampshades

a photograph in the style of Annie Leibowitz powerful 30 year old businessman in a thick black gabardine baggy deconstructed Yohji Yamoto suit with red pinstripes, white shirt with round collare and a thick short crimson satin tie in a top floor Art Deco style Office on the Empire State Building, decorated in a palette revolving around #7852A9 by David Hicks. All wood is black ebony and all lamps have modernist round glass shades in complementary tetradic yellow or green. The silk carpeting is in a complementary emerald shade with a psychedelic orchid leaf print --no distortion, fabric lampshades

Core Theme: A divine close-up of Galadriel, the Elven Queen from "The Lord of the Rings," set in an elven sanctuary in a dark forest at night, combining elegance, purity, and solemn divinity. Character Details: Faithfully recreating Galadriel’s image long golden curls, a white, flowing elven robe (with soft, draping folds), elven-style headband accessory; hands raised in a solemn gesture, emanating a gentle white glow, with a serene and ethereal expression, fully conveying the divine aura of elven royalty. Scene Elements: A dimly lit forest at night, with a deep blue night sky as the background, surrounded by trees and ferns, creating a tranquil and secluded woodland atmosphere. Lighting and Mood: Cold blue nighttime tones as the base, with the character emitting warm white light to create a soft contrast between light and shadow; the light is hazy and envelops the divine presence, producing a solemn, ethereal, and sacred mood. Art Style: Movie-level realistic texture inspired by "The Lord of the Rings," in a fantastical epic cinematic style, with ultra-detailed rendering (robe textures, hair gloss, light diffusion), delicate realistic brushwork, medium-close-up perspective (highlighting the Elven Queen’s divinity and elegance).

Core Theme: A divine close-up of Galadriel, the Elven Queen from "The Lord of the Rings," set in an elven sanctuary in a dark forest at night, combining elegance, purity, and solemn divinity. Character Details: Faithfully recreating Galadriel’s image long golden curls, a white, flowing elven robe (with soft, draping folds), elven-style headband accessory; hands raised in a solemn gesture, emanating a gentle white glow, with a serene and ethereal expression, fully conveying the divine aura of elven royalty. Scene Elements: A dimly lit forest at night, with a deep blue night sky as the background, surrounded by trees and ferns, creating a tranquil and secluded woodland atmosphere. Lighting and Mood: Cold blue nighttime tones as the base, with the character emitting warm white light to create a soft contrast between light and shadow; the light is hazy and envelops the divine presence, producing a solemn, ethereal, and sacred mood. Art Style: Movie-level realistic texture inspired by "The Lord of the Rings," in a fantastical epic cinematic style, with ultra-detailed rendering (robe textures, hair gloss, light diffusion), delicate realistic brushwork, medium-close-up perspective (highlighting the Elven Queen’s divinity and elegance).

Related Models

README

FLUX.2 Klein 4B Text-to-Image LoRA

FLUX.2 Klein 4B Text-to-Image LoRA is a lightweight yet powerful text-to-image generation model with full LoRA support. Describe your vision in text, optionally apply custom LoRA adapters for personalized styles — all with fast generation and affordable pricing.

Why Choose This?

  • High-quality generation Generate detailed, high-fidelity images from text descriptions with strong prompt adherence.

  • LoRA support Apply custom LoRA adapters for personalized styles, characters, or visual aesthetics.

  • Flexible sizing Custom width and height controls for any aspect ratio.

  • Prompt Enhancer Built-in tool to automatically improve your prompts for better results.

  • Lightweight and fast 4B parameter model optimized for quick turnaround at affordable pricing.

Parameters

ParameterRequiredDescription
promptYesText description of the image you want to generate
widthNoOutput width in pixels (default: 1024)
heightNoOutput height in pixels (default: 1024)
lorasNoList of LoRA adapters to apply
seedNoRandom seed for reproducibility (-1 for random)

LoRA Format

Each LoRA in the loras array has:

  • path (required) — URL to the LoRA weights file
  • scale (optional) — Weight multiplier, default 1

How to Use

  1. Write your prompt — describe the image including subject, style, lighting, and mood.
  2. Set size — adjust width and height for your desired dimensions.
  3. Add LoRAs (optional) — click "+ Add Item" to include custom LoRA adapters.
  4. Set seed — use -1 for random, or specify a number for reproducibility.
  5. Run — submit and download the generated image.

Pricing

ItemCost
Per image$0.013

Simple flat-rate pricing regardless of image size or LoRA count.

Best Use Cases

  • Custom Character Generation — Apply character LoRAs for consistent identity.
  • Style Personalization — Use style LoRAs for unique visual aesthetics.
  • Brand Content — Create on-brand visuals with trained LoRA styles.
  • Rapid Prototyping — Fast, affordable generation for creative iteration.
  • Batch Generation — Low cost enables large-scale image production.

Pro Tips

  • Be specific in your prompts — include subject, style, lighting, colors, and atmosphere.
  • Start with LoRA scale 1.0 and adjust based on results.
  • Combine multiple LoRAs for hybrid styles (e.g., character + art style).
  • Use the same seed to compare different prompts or LoRA combinations.
  • If your LoRA uses trigger words, include them in your prompt.

Notes

  • LoRAs can be stacked for combined effects.
  • For best results, use LoRAs trained on FLUX-compatible models.
  • Processing speed is optimized for quick turnaround.

Related Models

Accessibility:This website uses AI models provided by third parties.

Flux 2 Klein 4b Text To Image Lora API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-klein-4b/text-to-image-lora with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Flux 2 Klein 4b Text To Image Lora below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-klein-4b/text-to-image-lora" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "size": "1024*1024",
    "seed": -1,
    "enable_sync_mode": false,
    "enable_base64_output": false
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("wavespeed-ai/flux-2-klein-4b/text-to-image-lora", {
        "prompt": "A cinematic shot of a city at sunset, soft golden light",
        "size": "1024*1024",
        "seed": -1,
        "enable_sync_mode": false,
        "enable_base64_output": false
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "wavespeed-ai/flux-2-klein-4b/text-to-image-lora",
    {
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "size": "1024*1024",
    "seed": -1,
    "enable_sync_mode": false,
    "enable_base64_output": false
}
)

print(output["outputs"][0])  # → URL of the generated output

Flux 2 Klein 4b Text To Image Lora API — Frequently asked questions

What is the Flux 2 Klein 4b Text To Image Lora API?

Flux 2 Klein 4b Text To Image Lora is a WaveSpeedAI model for AI inference, exposed as a REST API on WaveSpeedAI. FLUX.2 [klein] 4B with LoRA support is a compact 4-billion-parameter text-to-image model that delivers fast generation with quality results and LoRA customization. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Flux 2 Klein 4b Text To Image Lora API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/wavespeed-ai/flux-2-klein-4b-text-to-image-lora.

How much does Flux 2 Klein 4b Text To Image Lora cost per run?

Flux 2 Klein 4b Text To Image Lora starts at $0.013 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Flux 2 Klein 4b Text To Image Lora accept?

Key inputs: `prompt`, `size`, `seed`, `enable_base64_output`, `enable_sync_mode`, `loras`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/wavespeed-ai/flux-2-klein-4b-text-to-image-lora.

How long does Flux 2 Klein 4b Text To Image Lora take to generate?

Average end-to-end generation time on WaveSpeedAI is around 5 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.

Can I use Flux 2 Klein 4b Text To Image Lora outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (WaveSpeedAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.