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

ProviderModelsAbilities
OpenAI & compatiblegpt-image-1 and compatiblegenerate + edit
DashScope (Alibaba Cloud)qwen-imagegenerate (can support edit)
Gemini (Google)gemini-3-pro-preview-imagegenerate only
XinferenceStable Diffusion variantsconfigurable (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

  1. Add an image generation provider under Models and enter credentials.
  2. Configure parameters: image size (e.g. 1024×1024), response format (url or b64_json), and number of images.
  3. 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 image

Security & 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.

Next Steps