FLUX.2 [klein] 9B

FLUX.2 [klein] 9B is a 4-step distilled image generation and editing model designed for sub-second inference without sacrificing visual quality. It unifies text-to-image and advanced editing workflows in a single model, making it suitable for interactive applications, real-time previews, and latency-critical production use.
![FLUX.2 [klein] 9B](https://assets.runware.ai/covers/bfl-flux-2-klein-9b.jpg)
Complete technical specification for integration
Ready-to-use code snippets for common workflows
Bioluminescent Tidal Market Bazaar

A sprawling nighttime market built on interlinked wooden docks over a glowing bioluminescent tidal lagoon, lantern canopies made of translucent shells, merchants selling glass fish, sea-silk fabrics, coral instruments, and luminous spices, diverse travelers in weathered cloaks and pearl jewelry, shallow water beneath the planks glowing turquoise and violet, distant stilt houses climbing into mist, giant moon low on the horizon, cinematic perspective, intricate small details, layered depth, reflections on wet wood, atmospheric haze, elegant color harmony, fantastical coastal worldbuilding, painterly realism, crisp focal subjects, dynamic crowd arrangement, premium concept art quality
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:400@2',
positivePrompt: 'A sprawling nighttime market built on interlinked wooden docks over a glowing bioluminescent tidal lagoon, lantern canopies made of translucent shells, merchants selling glass fish, sea-silk fabrics, coral instruments, and luminous spices, diverse travelers in weathered cloaks and pearl jewelry, shallow water beneath the planks glowing turquoise and violet, distant stilt houses climbing into mist, giant moon low on the horizon, cinematic perspective, intricate small details, layered depth, reflections on wet wood, atmospheric haze, elegant color harmony, fantastical coastal worldbuilding, painterly realism, crisp focal subjects, dynamic crowd arrangement, premium concept art quality',
negativePrompt: 'blurry, low detail, flat lighting, oversaturated, washed out, text, watermark, logo, frame, cropped subject, duplicate people, malformed hands, extra limbs, deformed faces, bad anatomy, noisy background',
width: 1344,
height: 768,
seed: 58145,
steps: 4,
CFGScale: 3.5
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:400@2",
"positivePrompt": "A sprawling nighttime market built on interlinked wooden docks over a glowing bioluminescent tidal lagoon, lantern canopies made of translucent shells, merchants selling glass fish, sea-silk fabrics, coral instruments, and luminous spices, diverse travelers in weathered cloaks and pearl jewelry, shallow water beneath the planks glowing turquoise and violet, distant stilt houses climbing into mist, giant moon low on the horizon, cinematic perspective, intricate small details, layered depth, reflections on wet wood, atmospheric haze, elegant color harmony, fantastical coastal worldbuilding, painterly realism, crisp focal subjects, dynamic crowd arrangement, premium concept art quality",
"negativePrompt": "blurry, low detail, flat lighting, oversaturated, washed out, text, watermark, logo, frame, cropped subject, duplicate people, malformed hands, extra limbs, deformed faces, bad anatomy, noisy background",
"width": 1344,
"height": 768,
"seed": 58145,
"steps": 4,
"CFGScale": 3.5
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "c222a90b-d76d-4940-bc37-abef1c89b7c6",
"model": "runware:400@2",
"positivePrompt": "A sprawling nighttime market built on interlinked wooden docks over a glowing bioluminescent tidal lagoon, lantern canopies made of translucent shells, merchants selling glass fish, sea-silk fabrics, coral instruments, and luminous spices, diverse travelers in weathered cloaks and pearl jewelry, shallow water beneath the planks glowing turquoise and violet, distant stilt houses climbing into mist, giant moon low on the horizon, cinematic perspective, intricate small details, layered depth, reflections on wet wood, atmospheric haze, elegant color harmony, fantastical coastal worldbuilding, painterly realism, crisp focal subjects, dynamic crowd arrangement, premium concept art quality",
"negativePrompt": "blurry, low detail, flat lighting, oversaturated, washed out, text, watermark, logo, frame, cropped subject, duplicate people, malformed hands, extra limbs, deformed faces, bad anatomy, noisy background",
"width": 1344,
"height": 768,
"seed": 58145,
"steps": 4,
"CFGScale": 3.5
}
]'runware run runware:400@2 \
positivePrompt="A sprawling nighttime market built on interlinked wooden docks over a glowing bioluminescent tidal lagoon, lantern canopies made of translucent shells, merchants selling glass fish, sea-silk fabrics, coral instruments, and luminous spices, diverse travelers in weathered cloaks and pearl jewelry, shallow water beneath the planks glowing turquoise and violet, distant stilt houses climbing into mist, giant moon low on the horizon, cinematic perspective, intricate small details, layered depth, reflections on wet wood, atmospheric haze, elegant color harmony, fantastical coastal worldbuilding, painterly realism, crisp focal subjects, dynamic crowd arrangement, premium concept art quality" \
negativePrompt="blurry, low detail, flat lighting, oversaturated, washed out, text, watermark, logo, frame, cropped subject, duplicate people, malformed hands, extra limbs, deformed faces, bad anatomy, noisy background" \
width=1344 \
height=768 \
seed=58145 \
steps=4 \
CFGScale=3.5{
"taskType": "imageInference",
"taskUUID": "c222a90b-d76d-4940-bc37-abef1c89b7c6",
"model": "runware:400@2",
"positivePrompt": "A sprawling nighttime market built on interlinked wooden docks over a glowing bioluminescent tidal lagoon, lantern canopies made of translucent shells, merchants selling glass fish, sea-silk fabrics, coral instruments, and luminous spices, diverse travelers in weathered cloaks and pearl jewelry, shallow water beneath the planks glowing turquoise and violet, distant stilt houses climbing into mist, giant moon low on the horizon, cinematic perspective, intricate small details, layered depth, reflections on wet wood, atmospheric haze, elegant color harmony, fantastical coastal worldbuilding, painterly realism, crisp focal subjects, dynamic crowd arrangement, premium concept art quality",
"negativePrompt": "blurry, low detail, flat lighting, oversaturated, washed out, text, watermark, logo, frame, cropped subject, duplicate people, malformed hands, extra limbs, deformed faces, bad anatomy, noisy background",
"width": 1344,
"height": 768,
"seed": 58145,
"steps": 4,
"CFGScale": 3.5
}{
"taskType": "imageInference",
"taskUUID": "c222a90b-d76d-4940-bc37-abef1c89b7c6",
"imageUUID": "6682275d-af37-43c9-812a-25c6c03faf87",
"imageURL": "https://im.runware.ai/image/os/a05d22/ws/2/ii/6682275d-af37-43c9-812a-25c6c03faf87.jpg",
"seed": 58145,
"cost": 0.00078
}