Qwen-Image-Edit-2511 face-swap endpoint
Custom server for HF Inference Endpoints. Loads Qwen/Qwen-Image-Edit-2511 (fp16) + the
NSFW LoRA (ScottzillaSystems/qwen-image-edit-plus-nsfw-lora @ 0.5) and exposes a /edit
API that takes a frame + optional face-reference and returns the edited frame.
Endpoint settings
- Type: Custom server (Docker)
- Repository:
jameskernedy/qwen-edit-2511-server(this repo) - Framework: custom
- GPU: A100 80 GB (us-east-1)
- Visibility: Private
- Env:
LORA_SCALE=0.5,HF_TOKEN(for the model pull)
API
GET /health->{"status":"ok","model_ready":bool,"log":...}POST /editbody:image: base64 JPEG (the video frame to edit)ref_image: base64 JPEG (the nov_fung face reference) — omit for no-face/body framesprompt: edit instructionwidth: 816,height: 464,steps: 12,seed: int- ->
{"ok":true,"ms":...,"image":"<base64 JPEG>"}
The model loads in the background on startup; /edit blocks (up to 20 min) until it's ready,
so the endpoint comes up fast and the first requests just wait for the pull + load.