About FLUX.2 Klein 9B LoRA
FLUX.2 Klein 9B LoRA edit takes a prompt, one to three image_urls and up to three loras, typically in about 16 seconds.
Call it with the model name black-forest-labs/flux-2-klein-9b-lora/edit on POST /jobs/createTask, from $0.0252.
Introduction
FLUX.2 Klein 9B LoRA Image editing changes one to three source images from a written instruction on Black Forest Labs' step-distilled FLUX.2 [klein] 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 9B LoRA Text to image |
| one to three images to change | FLUX.2 Klein 9B LoRA Image editing |
Key features
Same person, new scene
In our tests the face and hair carried through changes of outfit and place: a man on a park bench in a hoodie came back on a car park roof at dusk in an open-collar shirt, still clearly the same person.
Up to three sources
Two head-and-shoulders portraits taken apart became one couple at a lit fountain, each keeping their face. With two or three sources, faces and hair can drift a little, so check each person before you use the result.
LoRAs on edits
A film or analog LoRA sets the grade of the edited picture.
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.0252 |
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
Wardrobe and location changes
Move a person into a new place and outfit in one pass while keeping their likeness, for lookbooks, mood boards and character sheets.
Putting people together
Combine two or three portraits into one scene, then restyle the result with a LoRA so the series matches.
Fast retouch rounds
At about ten seconds per edit you can try several instructions and LoRA strengths on the same photo and keep the best version, instead of settling for the first attempt.
Prompt guide & pro tips
Protect first, then change
Start the instruction with what must stay the same, such as face, hair and expression, then describe the change in concrete terms: the garment, the place and the light. Short, specific instructions held faces better than long lists in our tests.
Give each source a role
With several images, say what each one brings: the woman from the first image, the man from the second, the room from the third. The order in your prompt should match the upload order.
Lower a LoRA that changes faces
If the person stops looking like the source, take the LoRA scale down by 0.2 and run the same seed again. Anatomy LoRAs are the usual cause; style LoRAs rarely move a face.
API quick start
Call the FLUX.2 Klein 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-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-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 9B LoRA Edit Image endpoint
Put "keep his face and hair" or similar before the change so identity survives the recast.
Two portraits can become one scene when each is named in the prompt.
aspect_ratio auto keeps the first image's shape at about one megapixel; set a ratio explicitly for other shapes.
Start LoRA strength at 0.8 to 1 and step down by 0.2 if faces distort.
FLUX.2 Klein 9B LoRA API questions
How much does the FLUX.2 Klein 9B LoRA API cost?
FLUX.2 Klein 9B LoRA starts at $0.0252 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 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.