Generate Image
Plugin ID: generate_image
Description
The Generate Image tool uses AI to create stunning images from your imagination. Simply describe what you want to see, and watch the AI bring it to life. With support for multiple providers, customizable aspect ratios, and advanced model options, this tool enables powerful image generation capabilities for any creative workflow.
Cost Information
Cost: 4 credits
PixelML Cost: Based on the selected model pricing
Input Parameters
provider
string
Yes
"Runware"
The AI provider to use for image generation. Options: Runware, Gemini, Gemini 2.5 Flash Image
prompt
string
Yes
-
What you wish to see in the output image. A strong, descriptive prompt clearly defining elements, colors, and subjects leads to better results.
negative_prompt
string
Yes
-
A description of what you do NOT wish to see in the output image. Helps refine and improve generation quality.
aspect_ratio
string
No
"9:16_HD"
The aspect ratio of the generated image. Options: 1:1, 3:4, 4:3, 9:16, 16:9, and HD/FHD variants
model_id
string
No
null
The specific model ID to use for image generation (Runware only). Allows selection of specialized models for different styles.
lora
array
No
null
Array of LoRA (Low-Rank Adaptation) models to apply for style customization (Runware only). Enables fine-tuned artistic styles.
Aspect Ratio Options
1:1
1:1_HD
1:1_FHD
Square images, social media posts
3:4
3:4_HD
3:4_FHD
Portrait orientation, mobile content
4:3
4:3_HD
4:3_FHD
Landscape orientation, presentations
9:16
9:16_HD
9:16_FHD
Vertical videos, mobile stories
16:9
16:9_HD
16:9_FHD
Widescreen, desktop wallpapers
Output
image
string
The generated image as a media URL that can be downloaded or displayed
content
string
Raw content returned by the model (e.g., additional information from Gemini). May be null.
How It Works
Provider Selection: Choose between Runware, Gemini, or Gemini 2.5 Flash Image based on your needs
Prompt Processing: The AI analyzes your descriptive prompt and negative prompt
Model Application: If using Runware, custom model IDs and LoRA adaptations are applied
Image Generation: The AI creates an image matching your specifications
Quality Optimization: The system optimizes the output based on the selected aspect ratio and provider capabilities
Use Cases
Creative Design: Generate artwork, illustrations, and digital art
Marketing Materials: Create unique visuals for campaigns and social media
Content Creation: Produce images for blogs, articles, and presentations
Product Visualization: Generate mockups and concept art
Social Media: Create eye-catching posts and stories
Educational Content: Illustrate concepts and ideas visually
Game Development: Generate assets, characters, and environments
Example Usage
Basic Image Generation
Provider: Runware
Prompt: "A serene mountain landscape at sunset with a crystal clear lake reflecting orange and pink clouds"
Negative Prompt: "people, buildings, cars, pollution, blur"
Aspect Ratio: 16:9_HD
Artistic Style with LoRA
Provider: Runware
Prompt: "A futuristic cyberpunk city with neon lights and flying cars"
Negative Prompt: "low quality, blurry, distorted"
Aspect Ratio: 9:16_FHD
Model ID: "custom-sci-fi-model"
LoRA: ["cyberpunk-style", "neon-enhancement"]
Portrait Generation
Provider: Gemini
Prompt: "Professional headshot of a confident business woman in modern office setting, natural lighting"
Negative Prompt: "cartoon, anime, low resolution, bad anatomy"
Aspect Ratio: 3:4_HD
Provider Comparison
Runware
Advanced customization, LoRA support, model selection
Professional artwork, specific styles
Gemini
High quality, natural understanding
Photorealistic images, complex scenes
Gemini 2.5 Flash Image
Fast generation, good quality
Quick iterations, content creation
Tips for Best Results
Write Detailed Prompts: Include specific details about style, lighting, colors, and composition
Use Effective Negative Prompts: Specify unwanted elements to improve output quality
Choose the Right Provider: Select based on your quality needs and customization requirements
Experiment with Aspect Ratios: Match the ratio to your intended use case
Leverage LoRA Models: Use LoRA adaptations for consistent artistic styles (Runware)
Iterate and Refine: Generate multiple versions and refine prompts based on results
Prompt Engineering Guide
Effective Prompt Structure
[Subject] + [Style] + [Lighting] + [Composition] + [Quality modifiers]
Example: "Portrait of a wise old wizard, fantasy art style, dramatic lighting, close-up composition, highly detailed, masterpiece quality"
Negative Prompt Best Practices
Include technical issues: "blurry, low quality, distorted, artifacts"
Specify unwanted content: "text, watermarks, signatures"
Avoid unwanted styles: "cartoon, anime" (if seeking photorealism)
Limitations
Provider Dependencies: Available features depend on the selected provider
Generation Time: Complex images may take longer to generate
Style Consistency: Multiple generations of the same prompt may vary
Content Restrictions: Some providers may have content policy limitations
Resolution Limits: Maximum resolution depends on aspect ratio and provider
LoRA Availability: Custom models and LoRA only available with Runware provider
Privacy & Compliance
Generated images are created based solely on your prompts
No personal data is used in the generation process
Complies with AI provider content policies and usage guidelines
Users are responsible for ensuring generated content respects copyright and usage rights
Generated images should not be used to create misleading or harmful content
Respects intellectual property and avoids generating copyrighted characters or logos
Error Handling
Common error scenarios:
Missing Required Fields: Returns error if prompt or negative_prompt are not provided
Invalid Aspect Ratio: Returns error for unsupported aspect ratio values
Provider Unavailable: Returns error if selected provider is temporarily unavailable
Invalid Model ID: Returns error for non-existent model IDs (Runware)
LoRA Not Found: Returns error for invalid LoRA model specifications (Runware)
Content Policy Violation: Returns error if prompts violate provider content policies
Generation Failed: Returns error if the AI cannot generate an image from the provided prompts
Last updated
Was this helpful?