About FLUX.2 Klein Base 9B LoRA
FLUX.2 Klein Base 9B LoRA edit takes a prompt, one to three image_urls and up to three loras, typically in 30 to 75 seconds.
Call it with the model name black-forest-labs/flux-2-klein-base-9b-lora/edit on POST /jobs/createTask, from $0.0312.
Introduction
FLUX.2 Klein Base 9B LoRA Image editing changes one to three source images from a written instruction on Black Forest Labs' undistilled FLUX.2 [klein] Base 9B, with up to three of your own LoRA files loaded. Keep the source shape with auto or pick one of nine shapes at 1k or 2k.
Choose a mode by starting material
| What you have | Mode |
|---|---|
| a written description and a LoRA | FLUX.2 Klein Base 9B LoRA Text to image |
| one to three images to change | FLUX.2 Klein Base 9B LoRA Image editing |
Key features
Same person, new place
An office portrait became a linen shirt and a watering can in a fern house, silver hair and stubble intact.
LoRAs on real photos
A film-still or analog LoRA sets the grade of an edit.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | The shape of the frame: wide, square or tall. auto · 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 21:9 · 9:21 · Default: auto |
image_urls | Yes | Photos to edit or combine. Say in the prompt what each one adds. |
loras | No | Add LoRA weights compatible with this model to guide its style or character. Default: [] |
prompt | Yes | Describe what you want to make. |
resolution | No | Choose an available output size. 1k · 2k · Default: 1k |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per image |
|---|---|
| Standard | $0.0312 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
Testing a LoRA on real photos
See how a LoRA you trained on Base treats real people and places, with their faces, before you build a series on it.
Wardrobe and location changes
Change outfit and setting in one pass while keeping the person, for lookbooks, mood boards and character references.
Prompt guide & pro tips
Protect first, then change
Name what must stay, such as face, hair, expression and pose, then the change: garment, place and light. Short, concrete instructions work best, and the result keeps the first source's shape unless you pick a ratio.
Watch strong LoRAs
An anatomy LoRA at scale 1 replaced the framing and the person in one of our tests. Start around 0.6 on edits and raise it only while the face still matches the source.
Expect about half a minute
Edits took about 30 seconds at 1k and close to a minute at 2k in our tests. Work at 1k with auto while you settle the instruction, then pick a ratio and 2k for the final.
API quick start
Call the FLUX.2 Klein Base 9B LoRA API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model black-forest-labs/flux-2-klein-base-9b-lora/edit and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "black-forest-labs/flux-2-klein-base-9b-lora/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_urls": [
"https://media.popnow.ai/influencer/examples/marco.webp"
],
"aspect_ratio": "auto",
"resolution": "1k"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
About the FLUX.2 Klein Base 9B LoRA Edit Image endpoint
List what must stay (face, hair, stubble) before the new scene so identity is preserved.
Base produces softer, more natural light than the distilled build, which suits film-grade restyles.
aspect_ratio auto keeps the first image's shape at about one megapixel.
For LoRA-strength comparisons, keep the prompt, reference images, seed and other settings fixed. Review the outputs rather than assuming exact pixel reproduction.
Edits typically run slower than on the distilled build, so for interactive tools prefer the distilled endpoint and keep Base for final or evaluation runs.
For LoRA authors, a useful evaluation set is three edits of the same portrait into different scenes, each run with and without the LoRA on a fixed seed.
FLUX.2 Klein Base 9B LoRA API questions
How much does the FLUX.2 Klein Base 9B LoRA API cost?
FLUX.2 Klein Base 9B LoRA starts at $0.0312 per image with Edit Image, its lowest-priced task. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What are the limits of the FLUX.2 Klein Base 9B LoRA · Edit Image API?
Resolutions: 1K · 2K; Aspect ratios: auto · 1:1 · 16:9 · 9:16 · 4:3 · 3:4 +4; Reference images: 3; Prompt length (characters): 5,000; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.