Image editing API · Available

FLUX.2 Klein Edit API in Europe

Instruction-based editing through the OpenAI-compatible /v1/images/edits endpoint, served from hardware AxForge owns in Sweden. Send an image and a sentence (swap the jacket, replace the sky, remove the crowd) and get the edit back in seconds. Zero prompt retention.

eu-se-1 · Stockholm api.axforge.ai/v1 €0.06 / edit flux-2-klein-edit.axforge.ai
Use FLUX.2 Klein Talk to an engineer Create an account and your key is in the console. 3M free tokens every 30 days with every new account.

Specifications

What is served

ModelFLUX.2 Klein 4B: instruction-based editing with multi-reference support
API model nameflux2-klein-4b
EndpointPOST /v1/images/edits
InputSource image(s) (base64 or data URL) + a plain-language instruction
Typical editsClothing and color swaps, sky and background replacement, object removal or addition, product-shot restyling
Text in imagesA generation job: regenerate with ERNIE Image Turbo, built for dense, legible in-image text
LicenseApache 2.0 (open weights, 4B variant)
Quantizationfp8
HardwareNVIDIA DGX Spark (GB10, 128 GB unified memory), owned and operated by AxForge
RegionStockholm, Sweden (eu-se-1), pinned on the key; region and machine shown in the console
Pricing€0.06 / edit (launch pricing)

Picked in a same-source, same-instruction bake-off on our own hardware: near-parity with the previous edit model on visual edits, at three times the speed and a third of the memory. Image generation runs on ERNIE Image Turbo at €0.05 per image.

Performance

What to expect

Edits are seconds-scale: a 4-step distilled model, faster than a full generation. Treat the call as asynchronous with a sensible client timeout. We haven't published our own tuned timing numbers yet.

Quickstart

One POST per edit

# your API key, from API Keys
export AXFORGE_API_KEY="YOUR_KEY"

# photo.png → edited.png
IMG=$(base64 < photo.png | tr -d '\n')
printf '{"model":"flux2-klein-4b","prompt":"replace the grey sky with a clear summer evening","image":"data:image/png;base64,%s"}' "$IMG" > edit.json
curl --max-time 300 https://api.axforge.ai/v1/images/edits \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d @edit.json \
  | sed -n 's/.*"b64_json":"\([^"]*\)".*/\1/p' | base64 -d > edited.png
Images: sizes, seeds, editing

Data & privacy

Zero prompt retention

Images and prompts are processed in memory in Sweden, not written to disk, not logged, not retained, and never used to train anything. We keep only request metadata (token counts, timestamps, status) for billing and operations. The full policy is at axforge.ai/privacy.

FAQ

Image editing API: common questions

What can the editing API change in a picture?

The classic photoshop-style requests, from a plain-language instruction: swap clothes or colors on a person, replace a sky or background, remove or add objects, restyle a product shot. Send the source image plus one sentence. Multiple reference images are supported.

Can it change text inside an image?

Text belongs to the generation model: regenerate with ERNIE Image Turbo, which is built for dense, legible in-image text. Keep Klein for the visual work: objects, backgrounds, clothing, style.

How fast is an edit on your hardware?

Edits are seconds-scale: a 4-step distilled model, faster than a full generation. We haven't published our own tuned timing numbers yet.

What does the image editing API cost?

€0.06 per edit (launch pricing). No subscription, no minimum. For committed volume, talk to an engineer.

Is FLUX.2 Klein open for commercial use?

The 4B model we serve is Apache 2.0, fully open for commercial use. The larger 9B variant carries a non-commercial license; we do not use it.

Are my images or prompts used for training?

No. Images and prompts are processed in memory in Sweden, never persisted or used for training. See the privacy policy. This makes the API a fit for GDPR-sensitive workloads.

Ready to build on EU inference?

Get API access Talk to an engineer

Explore

All models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms