Generate realistic images with the RealVisXL_V4.0 model hosted on HuggingFace. RealVisXL 4.0 is a highly advanced image generation AI model designed for photorealistic outputs. It’s built on the Stable Diffusion XL (SDXL) architecture and fine-tuned to create images with exceptional detail and realism.Documentation Index
Fetch the complete documentation index at: https://docs.edgeimpulse.com/llms.txt
Use this file to discover all available pages before exploring further.
Getting Started
Steps
- In your Edge Impulse project, choose Data acquisition > Synthetic data.
-
Select the ‘Huggingface RealVisXL_4.0 Synthetic Image Generator’ block, fill in your prompt and label, and hit Generate data.
You need a HuggingFace API Key/Access Token. See below to create one and set the permissions.
- Your synthetic data will show on the right side, for quick evaluation of your prompt.

Generate an Access Token in Hugging Face
See https://huggingface.co/docs/hub/en/security-tokens for more information. To create an Access Token in the Hugging Face web interface, click on your avatar (top-right corner) and select Settings. Navigate to the Access Token view (left menu) and click on New token. Add a Name and for the Type use the “Fine-grained (custom)” option. Copy the newly generated Access Token Finally, add the following permissions:- Make calls to the serverless Inference API
- Make calls to Inference Endpoints

Limitations and warnings
- The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.
- The model can produce NSFW (Not Safe For Work) images!