1. Quick start
Install SGLang with diffusion support by following the SGLang Diffusion installation guide, then start the server and send an edit request. The request returns a base64 PNG; the command above writes it tooutput.png.
The server keeps the model defaults of 40 steps and guidance 4.0, and picks the
output size from the input image’s aspect ratio.
2. Model capabilities
JoyAI-Image-Edit from JD edits one input image from a text instruction. A Qwen3-VL encoder reads the image and the instruction together, so the model handles edits that depend on where things are: moving an object into a marked region, rotating an object to a named view, or changing the camera angle while keeping the scene. Choose it when the edit is spatial rather than stylistic. The spatial modes work best with the prompt templates below. One GPU needs about 59 GiB of memory, so plan for an 80 GB-class card or larger.3. Deployment details
On two GPUs the recommended layout is CFG parallelism: the conditional and unconditional branches run on separate GPUs, and each GPU holds a full copy of the model. On H200 it halves the request time and was faster than Ulysses sequence parallelism on the same two GPUs. Both two-GPU layouts change floating-point rounding, so a fixed seed gives a visually equivalent image that is not bit-identical to the one-GPU output.
Measured with
sglang serve on SGLang main at 385262cabbae1: median of three warmed
/v1/images/edits requests with a fixed input image, prompt, and seed; the time
is the full HTTP request, and memory is the nvidia-smi peak. The command builder marks other hardware and GPU
counts as unverified.
See the CLI reference for the remaining server flags.
4. Request examples
4.1 Offline generation
Command
4.2 Spatial editing prompts
JoyAI-Image-Edit was trained with three spatial prompt patterns. Keep the wording close to these templates.4.3 OpenAI Python client
Example
