Back to Comparison Hub/Text to Image with LoRA [Klein 9B] Pricing
Text to Image

Text to Image with LoRA [Klein 9B] API Pricing

Flux-2-Klein-9B Text-to-Image with LoRA combines the higher-fidelity Klein 9B base with custom LoRA adapters for richer textures and lighting under a chosen style. Ideal for premium stylized illustrations, branded character art, and polished marketing visuals.

Savings Alert17% ↓Cheaper than Fal.ai

About Text to Image with LoRA [Klein 9B]

Flux-2-Klein-9B Text-to-Image with LoRA pairs the higher-fidelity Klein 9B base model with custom LoRA adapters, delivering richer textures, lighting, and composition under your chosen style. It is the right pick when you need premium stylized illustrations, polished marketing visuals, or character art where detail retention matters as much as the LoRA's signature look. Like the 4B variant, you can stack up to three LoRAs per generation, each with its own `scale` weight, and pick from a flexible set of aspect ratios. The model is optimized to keep the LoRA's stylistic cues intact while still benefiting from the 9B base's stronger prompt adherence.

Interactive Savings Calculator

Estimate monthly API spend and compare absolute developer savings.

Monthly API Generations10,000 runs
50025,00050,00075,000100,000+
MuAPI Monthly Cost

$250.00

$0.025 per generation
Fal.ai Cost

$300.00

Not available
Estimated Monthly Savings$50.00
Annual Savings$600.00

Detailed Pricing Breakdown

ProviderEstimated RateNotes
muapiapp$0.025 per generationFlat per-image price for the 9B LoRA variant, regardless of LoRA count.
Fal.aiNot availableFlux-2 Klein 9B with LoRA is not generally available on Fal.ai at the time of writing.
ReplicateNot availableFlux-2 Klein 9B with LoRA is not generally available on Replicate at the time of writing.

Developer Integration Snippets

1import requests 2import time 3import json 4 5api_key = "YOUR_API_KEY" 6url = "https://api.muapi.ai/workflow/run/flux-2-klein-9b-text-to-image-lora" 7 8def poll_for_result(run_id): 9 url = f"https://api.muapi.ai/workflow/run/{run_id}/api-outputs" 10 headers = { 11 "Content-Type": "application/json", 12 "x-api-key": f"{api_key}", 13 } 14 while True: 15 response = requests.get(url, headers=headers) 16 result = response.json() 17 18 if result['status'] == 'completed': 19 return json.loads(result['outputs']) 20 21 if result['status'] == 'failed': 22 raise Exception(result.get('error', 'Generation failed')) 23 24 time.sleep(5) 25 26data = { 27 "schemas": { 28 "input_data": { 29 "x-order-properties": [ 30 "prompt", 31 "lora_list", 32 "aspect_ratio" 33 ], 34 "type": "object", 35 "properties": { 36 "prompt": { 37 "examples": [ 38 "A regal fantasy queen on a crystal throne, ornate crown, ethereal lighting, cinematic detail." 39 ], 40 "description": "Text prompt describing the image.", 41 "type": "string", 42 "title": "Prompt", 43 "name": "prompt" 44 }, 45 "lora_list": { 46 "examples": [ 47 { 48 "path": "https://huggingface.co/example/lora/resolve/main/lora.safetensors", 49 "scale": 1 50 } 51 ], 52 "title": "LoRA List", 53 "name": "lora_list", 54 "type": "array", 55 "items": { 56 "type": "object", 57 "properties": { 58 "path": { 59 "type": "string", 60 "format": "url", 61 "title": "Path", 62 "name": "path", 63 "description": "URL or path to the LoRA weights." 64 }, 65 "scale": { 66 "type": "number", 67 "title": "Scale", 68 "name": "scale", 69 "description": "The LoRA weight multiplier. Default value: 1", 70 "minValue": 0, 71 "maxValue": 4, 72 "step": 0.01, 73 "default": 1 74 } 75 } 76 }, 77 "description": "Up to 3 LoRA adapters to apply during generation.", 78 "maxItems": 3 79 }, 80 "aspect_ratio": { 81 "enum": [ 82 "16:9", 83 "9:16", 84 "1:1", 85 "3:4", 86 "4:3", 87 "21:9", 88 "9:21" 89 ], 90 "title": "Aspect Ratio", 91 "name": "aspect_ratio", 92 "type": "string", 93 "description": "The aspect ratio of the generated image", 94 "default": "1:1" 95 } 96 }, 97 "title": "BaseInput", 98 "required": [ 99 "prompt" 100 ], 101 "endpoint_url": "flux-2-klein-9b-text-to-image-lora" 102 }, 103 "output_data": { 104 "x-fal-order-properties": [ 105 "image" 106 ], 107 "type": "object", 108 "properties": { 109 "video": { 110 "examples": [ 111 "https://d3adwkbyhxyrtq.cloudfront.net/webassets/videomodels/flux-2-klein-9b.jpeg" 112 ], 113 "description": "The generated image", 114 "title": "Image", 115 "comparison": false 116 } 117 }, 118 "title": "Flux2Klein9BT2ILora", 119 "required": [ 120 "image" 121 ] 122 } 123 } 124} 125 126headers = { 127 "Content-Type": "application/json", 128 "x-api-key": f"{api_key}", 129} 130 131response = requests.post(url, json=data, headers=headers) 132 133result = response.json() 134print("Queued:", result) 135 136outputs = poll_for_result(result["run_id"]) 137print("Completed:", outputs) 138

Model FAQ

Ready to scale your production?

Get instant access to developer keys. Integrate high-speed dynamic models in minutes with our robust SDKs.