Model reference · open weights
sd-xl-alternative-bases is an open-weight image model from benjamin-paine. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | benjamin-paine |
|---|---|
| Type | Image models |
| Task | Text→image |
| Runs with | diffusers |
| Released | 2023-10-18 |
| Popularity | 1k downloads / month |
| Licence | Open weights |
About
This repository contains alternative or tuned versions of Stable Diffusion XL Base 1.0 in .safetensors format.
This file contains the weights of sd_xl_base_1.0.safetensors, merged with the weights of sdxl_vae.safetensors from MadeByOllin's SDXL FP16 VAE repository.
This file contains the weights of sd_xl_base_1.0_fp16_vae.safetensors merged with the weights from diffusers/stable-diffusion-xl-1.0-inpainting-0.1.
Using the .safetensors files here, you can calculate an inpainting model using the formula A + (B - C), where:
A is sd_xl_base_1.0_inpainting_0.1.safetensorsB is your fine-tuned checkpointC is sd_xl_base_1.0_fp16_vae.safetensorsUsing ENFUGUE's Web UI:
You must specifically use the two files present in this repository for this to work. The Diffusers team trained XL Inpainting using FP16 XL VAE, so using a different XL base will result in an incorrect delta being applied to the inpainting checkpoint, and the resulting VAE will be nonsensical.
The model is intended for research purposes only. Possible research areas and tasks include
The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
From the published model card. Full card on the HuggingFace links in the sidebar.
How it works
Using it via the API
Once AxForge deploys sd-xl-alternative-bases for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (sd-xl-alternative-bases below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/images/generations \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"sd-xl-alternative-bases","prompt":"a red bicycle","size":"1024x1024"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.