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.
Ожидание

$0.013за запуск·~76 / $1

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

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

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).
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.
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.
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate |
| width | No | Output width in pixels (default: 1024) |
| height | No | Output height in pixels (default: 1024) |
| loras | No | List of LoRA adapters to apply |
| seed | No | Random seed for reproducibility (-1 for random) |
Each LoRA in the loras array has:
| Item | Cost |
|---|---|
| Per image | $0.013 |
Simple flat-rate pricing regardless of image size or LoRA count.
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.
# 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].// 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# 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 outputFlux 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.
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.
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.
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.
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.
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.