Image Generation Models
Image generation models let Xagent create and modify images from text prompts. They power the generate_image and edit_image tools.
Generation vs. Understanding
Image generation models create images. Analysing or reading existing images (OCR, chart analysis) is handled by Vision LLMs, not image generation models.
Supported Providers
| Provider | Models | Abilities |
|---|---|---|
| OpenAI & compatible | gpt-image-1 and compatible | generate + edit |
| DashScope (Alibaba Cloud) | qwen-image | generate (can support edit) |
| Gemini (Google) | gemini-3-pro-preview-image | generate only |
| Xinference | Stable Diffusion variants | configurable (default generate, supports edit) |
Editing support
Not every model supports editing. Gemini image models support generation only — use generate_image. DashScope editing accepts JPG/PNG/BMP/TIFF/WEBP up to 10MB.
Configuration
- Add an image generation provider under Models and enter credentials.
- Configure parameters: image size (e.g. 1024×1024), response format (
urlorb64_json), and number of images. - Set the model's abilities — generate, edit, or both.
Usage Examples
User: "Create a promotional poster for a coffee shop"
Xagent: [uses generate_image] -> saves image to workspace
User: "Change the color scheme to warm tones"
Xagent: [uses edit_image] -> modifies existing imageSecurity & Privacy
Generated images are saved to the task workspace. Review your provider's content policy and data-retention terms, and confirm you have rights to the generated content.