```bash
optimum-cli export onnx --model stabilityai/stable-diffusion-xl-base-1.0 --task stable-diffusion-xl sd_xl_onnx/
```  
SDXL in the ONNX format is supported for text-to-image and image-to-image.