Skip to content

AionUi Image Generation Tool Model Configuration Guide

VeryLiu edited this page Sep 6, 2025 · 1 revision

AionUi Image Generation Tool Model Configuration Guide

This guide will help you configure various image generation models:

  1. Gemini Official 2.5 Flash Image Preview Model Configuration
  2. OpenRouter Platform Paid Image Model Configuration
  3. Model Selection and Usage Recommendations

English | ็ฎ€ไฝ“ไธญๆ–‡


1. Gemini Official Image Model Configuration (Recommended)

1.1 Get Gemini API Key

  1. Visit Google AI Studio: https://aistudio.google.com/
  2. Log in with your Google account.
  3. Create a new API Key in the API Keys page.

Important Note: Gemini 2.5 Flash Image Preview provides free usage quota. Please check Google AI Studio's latest policy for specific limits.

1.2 Bind Gemini in AionUi

  1. Open AionUi โ†’ Settings โ†’ Model Settings.
  2. Add new model, select "Google" as the platform.
  3. Enter the Gemini API Key and save.

Configure Large Model Example

1.3 Configure Gemini Image Model

  1. Open AionUi โ†’ Settings โ†’ Tools Setting โ†’ Image Generation.
  2. Select a Gemini model that supports image generation from the Google platform.
  3. Confirm the model supports image generation functionality and save the configuration.

Set Tool Large Model Example


2. OpenRouter Platform Image Model Configuration

2.1 Get OpenRouter API Key

  1. Visit https://openrouter.ai/ and register/login using Google, GitHub, or email.
  2. Open the Keys page: https://openrouter.ai/keys.
  3. Click "Create Key", name your key (e.g., "AionUi"), and copy and save the generated key (only displayed once).

Create API Key Example

Important Note: OpenRouter has discontinued free image models and requires purchasing credits to use paid models.

2.2 Bind OpenRouter in AionUi

  1. Open AionUi โ†’ Settings โ†’ Model Settings.
  2. Add new model, select "OpenRouter" as the platform.
  3. Paste the API Key copied from the previous step into the key input field and save.

2.3 Configure Image Model

  1. Open AionUi โ†’ Settings โ†’ Tools Setting โ†’ Image Generation.
  2. In the model selection, choose models with image generation capabilities from the OpenRouter platform:
    • Look for models containing keywords like image, dall-e, midjourney, stable-diffusion, flux
    • Select image generation models that suit your needs
    • Pay attention to model pricing and usage limits

3. Verify Successful Configuration

  1. Return to chat and select a model that supports tool calls to start a new session.
  2. Input "What tools do you have?" and you should see a tool list containing image-generation. Tool List Example
  3. Try sending a simple image generation command, such as: "Generate a 1024ร—1024 blue neon cyberpunk city night view" to verify. Image Generation Test Example

4. Common Issues

4.1 Model Selection Recommendations

In the image generation tool settings, you need to select an image model. Choose the appropriate model based on your needs:

  • Free Usage: Recommended Gemini 2.5 Flash Image Preview
  • Creative Design: Choose models that support high-quality image generation (such as DALL-E series, Midjourney, etc.)
  • Fast Generation: Choose models with faster generation speed (such as Flux series, Gemini image models, etc.)

Cost Considerations:

  • Completely Free: Choose Gemini official models
  • Sufficient Budget: Choose commercial image generation models for best quality
  • Balanced Cost-Performance: Choose cost-effective image generation models

4.2 Configuration Issues

  • Invalid API Key: Check if the key is correctly copied and activated
  • Model Unavailable: Confirm the model name is correct and platform configuration is correct
  • Generation Failed: Check network connection and ensure sufficient account balance

4.3 Usage Issues

  • Tools Not Displayed: Confirm image model is properly configured, restart AionUi and try again
  • Poor Generation Quality: Try adjusting prompt descriptions or switch to other image models
  • Slow Generation Speed: Choose models with faster generation speed or check network connection

4.4 Platform Support Information

Currently, AionUi supports image generation models from Gemini and OpenRouter platforms. We are continuously developing support for more platforms, including ModelScope, Hugging Face, and other open-source model platforms. Stay tuned!


5. Reference Links

  • OpenRouter: https://openrouter.ai/ | https://openrouter.ai/models
  • Google AI Studio: https://aistudio.google.com/
  • AionUi Official Documentation: Check the latest configuration instructions

๐Ÿš€ AionUi AI Use Case Library

Welcome to the AionUi AI Use Case Library! This collection shows you how to use AI to solve everyday work problems, making complex tasks simple and efficient.


โš™๏ธ Setup & Integration


๐ŸŽฏ Main Scenarios

๐Ÿ“ File Management

๐Ÿ“Š Excel Smart Processing

๐Ÿ” Smart Information Gathering

๐Ÿ“š Local Knowledge Base Application

โ“ AI Learning Assistant

โœ๏ธ Writing & Content Creation


๐ŸŒ Language Switch


๐Ÿ”— Quick Start

  1. ๐ŸŒŸ What is AionUi
  2. ๐Ÿš€ Getting Started
  3. ๐Ÿ’ก Pro Tips
Clone this wiki locally